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:
- 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; - 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, ifion_exchangeis set, the friction of the ions on the gas (IonExchangewith the frequencyion_friction_rate * n_iand the window-averaged ion velocity); - the plasma’s
Nis 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
| Name | Description |
|---|---|
CoupledRecord | What a coupled run records once per window. |
GasCoupledDriftFluid | A 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
| Name | Type | Description |
|---|---|---|
time | list[float] | The time at the end of each window (s). |
anode_current | list[float] | The electron current density into the anode, mean over y (A/m^2). |
ionized | list[float] | The argon atoms the plasma ionized in each window, per m^2 of target
(integrated along x, averaged along y). |
returned | list[float] | The argon atoms the target returned in each window, per m^2 of target. |
gas_minimum | list[float] | The smallest argon density over the domain (m^-3). |
gas_mean | list[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
| Name | Type | Default | Description |
|---|---|---|---|
plasma | DriftFluid2D | required | The drift-fluid model. Its refill_rate is set to 0: the gas model refills. |
gas | GasDynamics | required | The 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). |
window | float | required | The splitting interval (s). |
return_ions | bool | True | Return the ions that reach the target as argon atoms from the left wall. |
ion_exchange | bool | False | Add the friction of the ions on the gas. |
cfl | float | 0.4 | The Courant number of the plasma steps. |
cflattributeclass attributeinstance attribute#
cfl: float = 0.4gasattributeinstance attribute#
gas: GasDynamicsion_exchangeattributeclass attributeinstance attribute#
ion_exchange: bool = Falseplasmaattributeinstance attribute#
plasma: DriftFluid2Drecordattributeclass attributeinstance attribute#
record: CoupledRecord = field(default_factory=CoupledRecord)return_ionsattributeclass attributeinstance attribute#
return_ions: bool = Truewindowattributeinstance attribute#
window: floatadvancemethod#
def advance(state: DriftFluid2DState) -> DriftFluid2DStateOne window: the plasma, then the gas with the plasma’s averages, then N.
Numerics
sink
return
exchange
gas
Order of accuracy: 1.
Assumptions:
- Lie splitting on windows : the plasma with the gas frozen except its own depletion, then the gas with the plasma’s window averages
- the gas time (, the refill through the gap) long against ; sources sampled at the end of each plasma step
- the gas grid is the plasma’s along , with one cell or the plasma’s cells along (one cell: -averaged sources, ion velocity weighted by )
gas_numbermethod#
def gas_number() -> np.ndarrayThe argon number density of the gas model on the plasma’s grid (m^-3).
ionizationmethod#
def ionization(state: DriftFluid2DState) -> np.ndarrayThe 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.ndarrayThe ion flux into the target along y, n_i max(-v_x, 0) of the first cell.
with_gasmethod#
def with_gas(state: DriftFluid2DState) -> DriftFluid2DStatestate with its gas density replaced by the gas model’s.