Skip to content
Projects

carafe.gas_coupling

The drift fluid and the gas dynamics together: depletion and refill from a gas model.

DriftFluid2D carries the neutral gas as a density N that ionization depletes and that relaxes to its fill value at a fixed refill_rate: a placeholder for the gas flow and the sputter wind. GasCoupledDriftFluid replaces that relaxation by GasDynamics, the compressible argon (and metal) gas in front of the target, by operator splitting on windows of length window:

  1. the plasma advances over the window with the gas density of the gas model, depleting it by its own ionization (depletion) but with no refill;
  2. the gas model advances over the same window with the plasma’s ionization averaged over it as a sink of argon (atoms removed per m^3 and s), the ions that reach the target returned as argon atoms from the target wall (gas_return_flux), and, if ion_exchange is set, the friction of the ions on the gas (IonExchange with the frequency ion_friction_rate * n_i and the window-averaged ion velocity);
  3. the plasma’s N is set to the argon number density of the gas model.

The gas model’s axis is the plasma’s x (the target, i.e. the cathode, at x = 0), with the same length and number of cells; its y has either the plasma’s cells or one cell (then the plasma’s sources are averaged along y and its N is uniform along y). The gas model’s boundaries are the user’s: a wall at the target (the left end) is needed for the return of the ions, a reservoir (Boundary.inflow) at the right end is the refill.

The splitting is first order in window; the gas time (the depletion time 1 / (k_iz n_e) and the refill through the gap, tens of microseconds in a DC magnetron, microseconds at HiPIMS density) has to be long against it. The ionization, the ion flux to the target and the ion velocity are sampled at the end of every plasma step and weighted with its length.

Classes

NameDescription
CoupledRecordWhat a coupled run records once per window.
GasCoupledDriftFluidA DriftFluid2D whose neutral gas is a GasDynamics model; see the module docstring.

CoupledRecordclassdataclass#

class CoupledRecord(time: list[float] = list(), anode_current: list[float] = list(), ionized: list[float] = list(), returned: list[float] = list(), gas_minimum: list[float] = list(), gas_mean: list[float] = list())

What a coupled run records once per window.

Attributes

NameTypeDescription
timelist[float]The time at the end of each window (s).
anode_currentlist[float]The electron current density into the anode, mean over y (A/m^2).
ionizedlist[float]The argon atoms the plasma ionized in each window, per m^2 of target (integrated along x, averaged along y).
returnedlist[float]The argon atoms the target returned in each window, per m^2 of target.
gas_minimumlist[float]The smallest argon density over the domain (m^-3).
gas_meanlist[float]The mean argon density (m^-3).

anode_currentattributeclass attributeinstance attribute#

anode_current: list[float] = field(default_factory=list)

gas_meanattributeclass attributeinstance attribute#

gas_mean: list[float] = field(default_factory=list)

gas_minimumattributeclass attributeinstance attribute#

gas_minimum: list[float] = field(default_factory=list)

ionizedattributeclass attributeinstance attribute#

ionized: list[float] = field(default_factory=list)

returnedattributeclass attributeinstance attribute#

returned: list[float] = field(default_factory=list)

timeattributeclass attributeinstance attribute#

time: list[float] = field(default_factory=list)

as_arraysmethod#

def as_arrays() -> dict[str, np.ndarray]

The records as arrays.

GasCoupledDriftFluidclassdataclass#

class GasCoupledDriftFluid(plasma: DriftFluid2D, gas: GasDynamics, window: float, return_ions: bool = True, ion_exchange: bool = False, cfl: float = 0.4, record: CoupledRecord = CoupledRecord())

A DriftFluid2D whose neutral gas is a GasDynamics model; see the module docstring.

Parameters

NameTypeDefaultDescription
plasmaDriftFluid2DrequiredThe drift-fluid model. Its refill_rate is set to 0: the gas model refills.
gasGasDynamicsrequiredThe gas model, of the plasma’s length and nx, with cells_y 1 or the plasma’s ny, its state set (e.g. GasDynamics.set_uniform).
windowfloatrequiredThe splitting interval (s).
return_ionsboolTrueReturn the ions that reach the target as argon atoms from the left wall.
ion_exchangeboolFalseAdd the friction of the ions on the gas.
cflfloat0.4The Courant number of the plasma steps.

cflattributeclass attributeinstance attribute#

cfl: float = 0.4

gasattributeinstance attribute#

gas: GasDynamics

ion_exchangeattributeclass attributeinstance attribute#

ion_exchange: bool = False

plasmaattributeinstance attribute#

plasma: DriftFluid2D

recordattributeclass attributeinstance attribute#

record: CoupledRecord = field(default_factory=CoupledRecord)

return_ionsattributeclass attributeinstance attribute#

return_ions: bool = True

windowattributeinstance attribute#

window: float

advancemethod#

def advance(state: DriftFluid2DState) -> DriftFluid2DState

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

Numerics

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 of accuracy: 1.

Assumptions:

  • 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)

gas_numbermethod#

def gas_number() -> np.ndarray

The argon number density of the gas model on the plasma’s grid (m^-3).

ionizationmethod#

def ionization(state: DriftFluid2DState) -> np.ndarray

The ionization rate k_iz(T_e) N n_e of state (m^-3 s^-1).

runmethod#

def run(state: DriftFluid2DState, duration: float) -> tuple[DriftFluid2DState, GasState]

Advance by duration (a whole number of windows, rounded up); the final states.

target_ion_fluxmethodstaticmethod#

def target_ion_flux(state: DriftFluid2DState) -> np.ndarray

The ion flux into the target along y, n_i max(-v_x, 0) of the first cell.

with_gasmethod#

def with_gas(state: DriftFluid2DState) -> DriftFluid2DState

state with its gas density replaced by the gas model’s.