MFC
Exascale flow solver
Loading...
Searching...
No Matches
m_chemistry.fpp.f90 File Reference

Contains module m_chemistry. More...

Go to the source code of this file.

Modules

module  m_chemistry
 Multi-species chemistry interface for thermodynamic properties, reaction rates, and transport coefficients.

Functions/Subroutines

subroutine m_chemistry::compute_viscosity_and_inversion (t_l, ys_l, t_r, ys_r, re_l, re_r)
 Compute mixture viscosities for left and right states and invert them for use as reciprocal Reynolds numbers.
subroutine m_chemistry::s_compute_transport_dt_re (pres, rho, t, ys, re)
 Effective Reynolds numbers 1/(rho*D) from the largest local transport diffusivity D – mu/rho with viscous, and lambda/(rho*cv) and the mixture-averaged diffusivities of the species present with chem_paramsdiffusion – so the viscous dt limit (dx^2*rho*Re) tracks the transport actually integrated, summed over the num_dims directions.
subroutine m_chemistry::s_compute_q_t_sf (q_t_sf, q_cons_vf, bounds)
 Initialize the temperature field from conservative variables by inverting the energy equation.
subroutine m_chemistry::s_compute_t_from_primitives (q_t_sf, q_prim_vf, bounds)
 Compute the temperature field from primitive variables using the ideal gas law and mixture molecular weight.
subroutine m_chemistry::s_compute_chemistry_reaction_flux (rhs_vf, q_cons_qp, q_t_sf, q_prim_qp, bounds, track_stiff)
 Add chemical reaction source terms to the species transport RHS using net production rates.
subroutine m_chemistry::s_chemistry_reaction_substep (q_cons_vf, q_t_sf, dtime, bounds)
 Operator-split integration of the reaction source with an alpha-QSS (Mott quasi-steady-state) reactor. Called after the flow update: each cell's constant-(rho, e) reactor is advanced over dtime with chem_paramsreaction_substeps predictor-corrector sub-steps – or, when adap_substeps = T, an adaptive count nsub clamped to [reaction_substeps, reaction_substeps_max] and sized once per rank from the rank's stiffest cell – updating the species partial densities and temperature in place. Mixture density, momentum, and total energy are unchanged (reactions convert chemical to thermal energy at fixed internal energy). The alpha-QSS update treats each species' destruction as a pseudo-first-order loss, so it is stable for stiff ignition where an explicit source would overshoot and diverge, and relaxes to the correct chemical equilibrium rather than over-heating. Reaction is split from the flow update at first order (Lie-Trotter), and each sub-step renormalizes the mass fractions to sum to one (which does not strictly conserve elemental composition).
pure real(wp) function m_chemistry::f_qss_alpha (r)
 alpha-QSS weight for a sub-step with dt*(loss rate) = r. (1 - alpha)*r < 1 for every r >= 0, so a step from non-negative mass fractions with non-negative production stays non-negative.
subroutine m_chemistry::s_compute_chemistry_diffusion_flux (idir, q_prim_qp, flux_src_flat, irx, iry, irz, q_t_sf, ib_marks, wall_a, ib_mode)
 Compute species mass diffusion fluxes at cell interfaces using mixture-averaged diffusivities.
real(wp) function m_chemistry::f_property_temperature (t, p, mw, rho, ib_marks, x, y, z)
 Temperature the diffusion properties of cell (x, y, z) are evaluated at: q_T_sf's value T, except in an immersed-body cell, where T is the conduction temperature (m_ibm) and the cell's own state temperature p W/(rho R) is used.
logical function m_chemistry::f_flux_wall_face (x, y, z, offsets, ib_marks, wall_a)
 Whether the face between cell (x, y, z) and its neighbour at + offsets is a flux-wall face (ib_flux_wall): one side is an immersed-body cell with a wall area share.

Variables

type(int_bounds_info) m_chemistry::isc1
type(int_bounds_info) m_chemistry::isc2
type(int_bounds_info) m_chemistry::isc3
real(wp) m_chemistry::chem_loss_max = 0._wp
 Largest species loss rate (1/s) of the explicit reaction source since last reset: a bound on the Jacobian spectral radius.
real(wp), parameter m_chemistry::y_floor_stiff = 1.e-16_wp

Detailed Description

Contains module m_chemistry.

Author
Henry Le Berre hberr.nosp@m.e3@g.nosp@m.atech.nosp@m..edu

Definition in file m_chemistry.fpp.f90.