Skip to content
Projects

Gas and drift fluid

The equations of carafe.gas_coupling, declared on the code that implements them and checked by the tests.

advance

functionsource

One window: the plasma, then the gas with the plasma's averages, then N.

sink
Sg=1Δ∫tt+Δkiz(Te) Nne dtS_g = \frac{1}{\Delta}\int_{t}^{t + \Delta} k_\mathrm{iz}(T_e)\,N n_e\,dt
return
Φreturn=1Δ∫tt+Δnimax⁡(−vi,x,0)∣x0 dt\Phi_\mathrm{return} = \frac{1}{\Delta}\int_{t}^{t + \Delta} n_i \max(-v_{i,x}, 0)\big|_{x_0}\,dt
exchange
νgi=kfr nˉi,uˉi=∫nivi dt∫ni dt\nu_{gi} = k_\mathrm{fr}\,\bar n_i, \qquad \bar{\mathbf u}_i = \frac{\int n_i\mathbf v_i\,dt}{\int n_i\,dt}
gas
N(t+Δ)=ρg(t+Δ)mgN(t + \Delta) = \frac{\rho_g(t + \Delta)}{m_g}
Order
1
Assumes
  • Lie splitting on windows Δ\Delta: the plasma with the gas frozen except its own depletion, then the gas with the plasma's window averages
  • the gas time (1/(kizne)1/(k_\mathrm{iz} n_e), the refill through the gap) long against Δ\Delta; sources sampled at the end of each plasma step
  • the gas grid is the plasma's along xx, with one cell or the plasma's cells along yy (one cell: yy-averaged sources, ion velocity weighted by nin_i)