6.1.2.3. equilibrator_api.phased_compound
inherit from equilibrator_cache.models.compound.Compound an add phases.
6.1.2.3.1. Module Contents
- class equilibrator_api.phased_compound.Condition(phase: str, abundance: equilibrator_api.ureg.Quantity = None)[source]
Bases:
object
A class for defining the conditions of a compound.
I.e. the phase and the abundance.
- property standard_abundance: equilibrator_api.ureg.Quantity[source]
Return the standard abundance in this phase.
- property physiolical_abundance: equilibrator_api.ureg.Quantity[source]
Return the default physiological abundance in this phase.
- property dimensionality: str[source]
Return the dimensionality of the abundance in this phase.
E.g. [concentration] for aqueous phase, or [pressure] for gas phase. :return: the dimensionality in this phase, or None if abundance is fixed.
- property ln_physiological_abundance: float[source]
Return the log of the ratio between phys and std abundances.
- class equilibrator_api.phased_compound.PhasedCompound(compound: equilibrator_cache.Compound, condition: Condition = None)[source]
Bases:
object
A class that combines an equilibrator_api Compound and a Condition.
- property ln_abundance: float[source]
Return the log of the abundance (for thermodynamic calculations).
- property ln_physiological_abundance: float[source]
Return the log of the default physiological abundance.
- reset_abundance(physiological: bool = False) None [source]
Reset the abundance to standard abundance.
- Param:
physiological: bool Whether to reset to physiological conditions (e.g. 1 mM) or standard conditions otherwise (i.e. 1 M)
- get_stored_standard_dgf_prime(p_h: equilibrator_api.ureg.Quantity, ionic_strength: equilibrator_api.ureg.Quantity, temperature: equilibrator_api.ureg.Quantity, p_mg: equilibrator_api.ureg.Quantity) equilibrator_api.ureg.Quantity [source]
Return the stored formation energy of this phased compound.
Only if it exists, otherwise return None (and we will use component-contribution later to get the reaction energy).
- Parameters:
p_h –
ionic_strength –
temperature –
p_mg –
- Returns:
standard_dgf_prime (in kJ/mol)
- get_stored_standard_dgf() equilibrator_api.ureg.Quantity [source]
Return the stored formation energy of this phased compound.
Only if it exists, otherwise return None (and we will use component-contribution later to get the reaction energy).
- Returns:
standard_dgf (in kJ/mol)
- class equilibrator_api.phased_compound.Proton(compound: equilibrator_cache.Compound)[source]
Bases:
PhasedCompound
A class specifically for protons.
- class equilibrator_api.phased_compound.RedoxCarrier(compound: equilibrator_cache.Compound, potential: equilibrator_api.ureg.Quantity | None = None)[source]
Bases:
PhasedCompound
A class specifically for redox carriers (with a given potential).
- property ln_abundance: float[source]
Return the log of the abundance (for thermodynamic calculations).
- property ln_physiological_abundance: float[source]
Return the log of the default physiological abundance.