CE_atmodeller#
- exo_skryer.vert_chem.CE_atmodeller(p_lay: Array, T_lay: Array, params: Dict[str, Array], nlay: int) Dict[str, Array][source]#
Compute chemical equilibrium profiles using the
atmodellerbackend.- Parameters:
- p_lay
ndarray, shape (nlay,) Layer pressures. In the forward model this is typically in dyne cm⁻² and is converted internally to bar for the solver.
- T_lay
ndarray, shape (nlay,) Layer temperatures in Kelvin.
- paramsdict[str,
ndarray] Chemical abundance parameters containing:
M_to_HfloatMetallicity relative to solar in dex.
C_to_OfloatCarbon-to-oxygen ratio (dimensionless).
- nlayint
Number of atmospheric layers. Used to broadcast mass constraints and initial guess to shape
(nlay, ...).
- p_lay
- Returns:
- vmr_laydict[str,
ndarray] Dictionary mapping bare species names (e.g.
'H2O','CH4') to VMR profiles with shape(nlay,).
- vmr_laydict[str,
Notes
H and He abundances are fixed at solar values and are not scaled by metallicity. All other elements present in the species network (C, N, O, Na, K) are scaled by
10 ** M_to_H; carbon is further set byC_to_O * O.