4.1.2.3. equilibrator_api.phased_compound¶
inherit from equilibrator_cache.models.compound.Compound an add phases.
4.1.2.3.1. Module Contents¶
-
class
equilibrator_api.phased_compound.Condition(phase: str, abundance: equilibrator_api.ureg.Quantity = None)[source]¶ Bases:
objectA class for defining the conditions of a compound.
I.e. the phase and the abundance.
-
property
standard_abundance(self) → equilibrator_api.ureg.Quantity[source]¶ Return the standard abundance in this phase.
-
property
physiolical_abundance(self) → equilibrator_api.ureg.Quantity[source]¶ Return the default physiological abundance in this phase.
-
property
dimensionality(self) → 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_abundance(self) → float[source]¶ Return the log of the ratio between given and std abundances.
-
property
-
class
equilibrator_api.phased_compound.PhasedCompound(compound: equilibrator_cache.Compound, condition: equilibrator_api.phased_compound.Condition = None)[source]¶ Bases:
objectA class that combines a equilibrator_api Compound and a Condition.
-
static
get_default(compound: equilibrator_cache.Compound) → equilibrator_api.phased_compound.Condition[source]¶ Get the default phase of a compound.
- Parameters
compound – a Compound
- Returns
the default phase
-
property
ln_abundance(self) → float[source]¶ Return the log of the abundance (for thermodynamic calculations).
-
property
ln_physiological_abundance(self) → float[source]¶ Return the log of the default physiological abundance.
-
get_stored_standard_dgf_prime(self, 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(self) → 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)
-
get_stored_microspecie(self) → MicroSpecie[source]¶ Get the stored microspecies (from the PHASED_COMPOUND_DICT).
- Returns
The MicroSpecie namedtuple with the stored formation energy,
or None if this compound has no stored value at this phase.
-
static