uclchem.constants#

UCLCHEM Constants Module.

This module provides access to canonical constants defined in the Fortran backend. Values are read directly from the compiled f2py_constants module to ensure Python and Fortran stay in sync without code generation.

The values in this module reflect the current compiled state of UCLCHEM. If you run MakeRates to change the network size or coolants, you must reinstall UCLCHEM for these constants to update:

  1. Run makerates: python -m uclchem.makerates.makerates user_settings.yaml

  2. Reinstall: pip install . –force-reinstall –no-deps

  3. Verify: python -c “from uclchem import constants; print(constants.n_species)”

Module Contents#

uclchem.constants.BOLTZMANN_CONSTANT_CGS = 1.38e-16[source]#
uclchem.constants.CENTIMETERS_PER_PARSEC = 3.086e+18[source]#
uclchem.constants.DVODE_STAT_NAMES = ['TRAJECTORY_INDEX', 'ISTATE', 'HU', 'HCUR', 'TCUR', 'TOLSF', 'NST', 'NFE', 'NJE', 'NQU',...[source]#
uclchem.constants.GRAVITATIONAL_CONSTANT_CGS = 6.67e-08[source]#
uclchem.constants.HYDROGEN_MASS_CGS = 1.6736e-24[source]#
uclchem.constants.NCOOLANTS[source]#
uclchem.constants.N_DVODE_STATS[source]#
uclchem.constants.N_PHYSICAL_PARAMETERS[source]#
uclchem.constants.N_SE_STATS_PER_COOLANT[source]#
uclchem.constants.N_TOTAL_LEVELS[source]#
uclchem.constants.PHYSICAL_PARAMETERS = ['Time', 'Density', 'gasTemp', 'dustTemp', 'Av', 'radfield', 'zeta', 'dstep', 'parcel_radius',...[source]#
uclchem.constants.PLANCK_CONSTANT_CGS = 6.62606896e-27[source]#
uclchem.constants.SECONDS_PER_YEAR = 31556900.0[source]#
uclchem.constants.SE_STAT_NAMES = [][source]#
uclchem.constants.SPEED_OF_LIGHT_CGS = 29979245800.0[source]#
uclchem.constants.TIMEPOINTS = 2000[source]#
uclchem.constants.ZETA_0 = 1.36e-17[source]#
uclchem.constants.default_elements_to_check: list[str] = ['H', 'N', 'C', 'O'][source]#
uclchem.constants.default_param_dictionary[source]#
uclchem.constants.msg = 'PHYSICAL_PARAMETERS length (11) does not match N_PHYSICAL_PARAMETERS from Fortran (Instance of...[source]#
uclchem.constants.n_reactions[source]#
uclchem.constants.n_species[source]#