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.
- class equilibrator_api.phased_compound.PhasedCompound(compound: equilibrator_cache.Compound, condition: Condition = None)[source]¶
Bases:
object
A class that combines a equilibrator_api Compound and a Condition.
- static get_default(compound: equilibrator_cache.Compound) Condition [source]¶
Get the default phase of a compound.
- Parameters
compound – a Compound
- Returns
the default phase
- 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.
- 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: Optional[equilibrator_api.ureg.Quantity] = None)[source]¶
Bases:
PhasedCompound
A class specifically for redox carriers (with a given potential).
- 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]¶
Get the standard formation ΔG’.
- property ln_abundance float [source]¶
Return the log of the abundance (for thermodynamic calculations).