opencr.kinetics.radiation
Radiation trapping as an escape-factor approximation.
An optically thick line u -> l is re-absorbed on its way out of the
plasma, so only a fraction of the spontaneous emission leaves: the effective
transition probability is g A_ul with the escape factor g in [0, 1].
OpenCR applies escape factors to the spontaneous_emission reactions, from
the conditions (Conditions.escape, per line) or computed here from the
line-centre optical depth of a Doppler-broadened line over a length L,
with v_D = (2 kT / m)^(1/2) the emitters’ thermal speed at the gas
temperature (Mihalas 1978, eq. 9-6 with a Doppler profile). The escape factor
is then one of the usual approximations (ESCAPE_MODELS):
"mewe"(default):g = (2 - exp(-tau_0 / 1000)) / (1 + tau_0)(Mewe 1967, Brit. J. Appl. Phys. 18, 107), an interpolation that is right in both limits and is what most CR codes use (Yacora, Behringer’s models);"holstein-slab": Holstein’s asymptotic result for a Doppler profile,g = 1 / (tau_0 (pi ln tau_0)^(1/2)), for an infinite slab of half-thicknessL(Holstein 1947, Phys. Rev. 72, 1212);"holstein-cylinder": the same for an infinite cylinder of radiusL,g = 1.60 / (tau_0 (pi ln tau_0)^(1/2)).
Holstein’s forms hold for tau_0 >> 1; below tau_0 = e they are set
to 1. L is the characteristic absorption length (the distance to the
wall, not the full plasma size), to be chosen by the user; this is a
zero-dimensional approximation of a transport problem and is explicit about
it: no escape factor is applied unless a RadiationTrapping is given.
A self-consistent solve iterates: the escape factors depend on the lower
populations, which depend on the escape factors
(opencr.model.Model.solve_steady_state).
Attributes
| Name | Description |
|---|---|
ESCAPE_MODELS | No description. |
Classes
| Name | Description |
|---|---|
RadiationTrapping | The escape-factor configuration of a solve (see opencr.kinetics.radiation). |
Functions
| Name | Description |
|---|---|
escape_factor | Return the escape factor g(tau_0) of one of ESCAPE_MODELS. |
escape_factors | Return the escape factor of every trapped line, by reaction name. |
line_centre_optical_depth | Return tau_0 of a Doppler-broadened line over length. |
ESCAPE_MODELSattributemodule attribute#
opencr.core.conditionsView sourceESCAPE_MODELS = ('mewe', 'holstein-slab', 'holstein-cylinder')RadiationTrappingclassdataclass#
opencr.core.conditionsView sourceclass RadiationTrapping(length: float = unit_field('m'), model: str = 'mewe', lines: tuple[str, ...] | None = None, tolerance: float = 1e-06, max_iterations: int = 100)The escape-factor configuration of a solve (see opencr.kinetics.radiation).
The length takes a quantity (see the module docstring).
Attributes
| Name | Type | Description |
|---|---|---|
length | float | The absorption length L in m (the distance to the wall). |
model | str | One of ESCAPE_MODELS. |
lines | tuple[str, ...] | None | The names of the spontaneous_emission reactions to trap, or
None for all of them. |
tolerance | float | The self-consistent iteration stops when no escape factor changes by more than this. |
max_iterations | int | The limit of that iteration. |
lengthattributeclass attributeinstance attribute#
length: float = unit_field('m')linesattributeclass attributeinstance attribute#
lines: tuple[str, ...] | None = Nonemax_iterationsattributeclass attributeinstance attribute#
max_iterations: int = 100modelattributeclass attributeinstance attribute#
model: str = 'mewe'toleranceattributeclass attributeinstance attribute#
tolerance: float = 1e-06escape_factorfunction#
def escape_factor(optical_depth: float | np.ndarray, model: str = 'mewe') -> np.ndarrayReturn the escape factor g(tau_0) of one of ESCAPE_MODELS.
Numerics
mewe
holstein slab
holstein cylinder
Assumptions:
- Mewe (the default): 1 at , about for , for
- Holstein: asymptotic forms for , an infinite slab of half-thickness or a cylinder of radius ; at they jump from 1 to 0.207 (slab) and 0.332 (cylinder)
References:
- R. Mewe, Brit. J. Appl. Phys. 18, 107 (1967)
- Holstein, Phys. Rev. 72, 1212 (1947)
escape_factorsfunction#
def escape_factors(network: ReactionNetwork, populations: Mapping[str, float], trapping: RadiationTrapping, temperature: float) -> dict[str, float]Return the escape factor of every trapped line, by reaction name.
Parameters
| Name | Type | Description |
|---|---|---|
network | ReactionNetwork | The network. |
populations | Mapping[str, float] | The density of every state in m^-3. |
trapping | RadiationTrapping | The configuration. |
temperature | float | The gas (emitter) temperature in eV. |
Numerics
line
Assumptions:
- every
spontaneous_emissionofRadiationTrapping.lines(all by default) - the untrapped
Constantcoefficient (another rate model raises); the emitter’s mass
Built from:
opencr.kinetics.radiation.line_centre_optical_depthopencr.kinetics.radiation.escape_factor
line_centre_optical_depthfunction#
def line_centre_optical_depth(wavelength: float | np.ndarray, einstein_a: float | np.ndarray, weight_ratio: float | np.ndarray, lower_density: float | np.ndarray, length: float, temperature: float, mass: float) -> np.ndarrayReturn tau_0 of a Doppler-broadened line over length.
Parameters
| Name | Type | Description |
|---|---|---|
wavelength | float | np.ndarray | The line’s vacuum wavelength in nm. |
einstein_a | float | np.ndarray | A_ul in s^-1 (without any escape factor). |
weight_ratio | float | np.ndarray | g_u / g_l. |
lower_density | float | np.ndarray | n_l in m^-3. |
length | float | The absorption length L in m. |
temperature | float | The emitters’ kT in eV. |
mass | float | The emitters’ mass in kg. |
Numerics
optical depth
cross section
Assumptions:
- a Doppler-broadened line at the emitters’ temperature; no stimulated emission
- the absorption length (the distance to the wall), chosen by the user
References:
- D. Mihalas, Stellar Atmospheres, 2nd ed., W. H. Freeman (1978), eq. 9-6