Document safe power helpers for reaction-rate UDFs

Add a section to the chemistry chapter on writing rates the stiff solvers can evaluate: rates may be called with slightly out-of-bounds mass fractions and must stay finite. Describes the ChemMath helpers in mfix_chem_safe_pow.H (clamped_pow/clamped_sqrt for exponents >= 1, ramped_pow/ramped_sqrt for fractional exponents below one and negative exponents), the ramp, choosing the cutoff, the *_and_deriv forms, and an example.

Merge request reports

Loading
Loading