Source code for enkie.constants

import math

from .commons import Q

# Physical and mathematical constants.
[docs]R = Q(8.31446261815324e-3, "kJ / mol / K")
"""The gas constant."""
[docs]F = Q(96.48533212, "kC / mol")
"""The Faraday constant."""
[docs]LOG10 = math.log(10)
"""The natural logarithm of 10.""" # Default parameters.
[docs]DEFAULT_I = Q(0.2, "M")
"""Default ionic strength of a compartment."""
[docs]DEFAULT_PH = Q(7.0)
"""Default pH of a compartment."""
[docs]DEFAULT_PMG = Q(3.0)
"""Default pMg of a compartment."""
[docs]DEFAULT_PHI = Q(0, "V")
"""Default electrostatic potential of a compartment."""
[docs]DEFAULT_T = Q(298.15, "K")
"""Default temperature of the system.""" # Default numerical settings.
[docs]DEFAULT_RMSE = Q(3000, "kJ/mol")
"""Default uncertainty to use for unknown compounds and chemical groups."""
[docs]DEFAULT_SPONTANEOUS_GENES = {"s0001", "SPONTANEOUS"}
"""Default list of genes that denote spontaneous reactions."""