Reaktoro  v2.11.0
A unified framework for modeling chemically reactive systems

Used to retrieve a specified property from the chemical properties of a system. More...

#include <Prop.hpp>

Public Member Functions

 Prop (const PropFn &propfn)
 Construct a Prop evaluator object with given property evaluation function.
 
auto eval (const ChemicalProps &props) -> real
 Evaluate the property with given chemical properties of the system. More...
 
auto operator() (const ChemicalProps &props) -> real
 Evaluate the property with given chemical properties of the system. More...
 

Static Public Member Functions

static auto elementAmount (const ChemicalSystem &system, const String &element) -> Prop
 Return a property function that evaluates the amount of an element in the system (in mol).
 
static auto elementAmountInPhase (const ChemicalSystem &system, const String &element, const String &phase) -> Prop
 Return a property function that evaluates the amount of an element in a phase of the system (in mol).
 
static auto elementMass (const ChemicalSystem &system, const String &element) -> Prop
 Return a property function that evaluates the mass of an element in the system (in kg).
 
static auto elementMassInPhase (const ChemicalSystem &system, const String &element, const String &phase) -> Prop
 Return a property function that evaluates the mass of an element in a phase of the system (in kg).
 
static auto speciesAmount (const ChemicalSystem &system, const String &species) -> Prop
 Return a property function that evaluates the amount of a species in the system (in mol).
 
static auto speciesMass (const ChemicalSystem &system, const String &species) -> Prop
 Return a property function that evaluates the mass of a species in the system (in kg).
 
static auto speciesMoleFraction (const ChemicalSystem &system, const String &species) -> Prop
 Return a property function that evaluates the mole fraction of a species in the system.
 
static auto speciesActivityCoefficient (const ChemicalSystem &system, const String &species) -> Prop
 Return a property function that evaluates the activity coefficient of a species in the system.
 
static auto speciesActivity (const ChemicalSystem &system, const String &species) -> Prop
 Return a property function that evaluates the activity of a species in the system.
 
static auto speciesChemicalPotential (const ChemicalSystem &system, const String &species) -> Prop
 Return a property function that evaluates the chemical potentials of a species in the system (in J/mol).
 
static auto speciesStandardVolume (const ChemicalSystem &system, const String &species) -> Prop
 Return a property function that evaluates the standard partial molar volume of a species in the system (in m3/mol).
 
static auto speciesStandardGibbsEnergy (const ChemicalSystem &system, const String &species) -> Prop
 Return a property function that evaluates the standard partial molar Gibbs energy of formation of a species in the system (in J/mol).
 
static auto speciesStandardEnthalpy (const ChemicalSystem &system, const String &species) -> Prop
 Return a property function that evaluates the standard partial molar enthalpy of formation of a species in the system (in J/mol).
 
static auto speciesStandardEntropy (const ChemicalSystem &system, const String &species) -> Prop
 Return a property function that evaluates the standard partial molar entropy of formation of a species in the system (in J/(mol*K)).
 
static auto speciesStandardInternalEnergy (const ChemicalSystem &system, const String &species) -> Prop
 Return a property function that evaluates the standard partial molar internal energy of formation of a species in the system (in J/mol).
 
static auto speciesStandardHelmholtzEnergy (const ChemicalSystem &system, const String &species) -> Prop
 Return a property function that evaluates the standard partial molar Helmholtz energy of formation of a species in the system (in J/mol).
 
static auto speciesStandardHeatCapacitiesConstP (const ChemicalSystem &system, const String &species) -> Prop
 Return a property function that evaluates the standard partial molar isobaric heat capacity of a species in the system (in J/(mol*K)).
 
static auto speciesStandardHeatCapacitiesConstV (const ChemicalSystem &system, const String &species) -> Prop
 Return a property function that evaluates the standard partial molar isochoric heat capacity of a species in the system (in J/(mol*K)).
 
static auto phaseAmount (const ChemicalSystem &system, const String &phase) -> Prop
 Return a property function that evaluates the sum of species amounts in a phase of the system (in mol).
 
static auto phaseMass (const ChemicalSystem &system, const String &phase) -> Prop
 Return a property function that evaluates the sum of species masses in a phase of the system (in kg).
 
static auto phaseVolume (const ChemicalSystem &system, const String &phase) -> Prop
 Return a property function that evaluates the volume of a phase in the system (in m3).
 
static auto phaseGibbsEnergy (const ChemicalSystem &system, const String &phase) -> Prop
 Return a property function that evaluates the Gibbs energy of formation of a phase in the system (in J).
 
static auto phaseEnthalpy (const ChemicalSystem &system, const String &phase) -> Prop
 Return a property function that evaluates the enthalpy of formation of a phase in the system (in J).
 
static auto phaseEntropy (const ChemicalSystem &system, const String &phase) -> Prop
 Return a property function that evaluates the entropy of formation of the a phase in system (in J/K).
 
static auto phaseInternalEnergy (const ChemicalSystem &system, const String &phase) -> Prop
 Return a property function that evaluates the internal energy of formation of a phase in the system (in J).
 
static auto phaseHelmholtzEnergy (const ChemicalSystem &system, const String &phase) -> Prop
 Return a property function that evaluates the Helmholtz energy of formation of a phase in the system (in J).
 
static auto temperature (const ChemicalSystem &system) -> Prop
 Return a property function that evaluates the temperature of the system (in K).
 
static auto pressure (const ChemicalSystem &system) -> Prop
 Return a property function that evaluates the pressure of the system (in Pa).
 
static auto amount (const ChemicalSystem &system) -> Prop
 Return a property function that evaluates the sum of species amounts in the system (in mol).
 
static auto mass (const ChemicalSystem &system) -> Prop
 Return a property function that evaluates the sum of species masses in the system (in kg).
 
static auto volume (const ChemicalSystem &system) -> Prop
 Return a property function that evaluates the volume of the system (in m3).
 
static auto gibbsEnergy (const ChemicalSystem &system) -> Prop
 Return a property function that evaluates the Gibbs energy of formation of the system (in J).
 
static auto enthalpy (const ChemicalSystem &system) -> Prop
 Return a property function that evaluates the enthalpy of formation of the system (in J).
 
static auto entropy (const ChemicalSystem &system) -> Prop
 Return a property function that evaluates the entropy of formation of the system (in J/K).
 
static auto internalEnergy (const ChemicalSystem &system) -> Prop
 Return a property function that evaluates the internal energy of formation of the system (in J).
 
static auto helmholtzEnergy (const ChemicalSystem &system) -> Prop
 Return a property function that evaluates the Helmholtz energy of formation of the system (in J).
 

Detailed Description

Used to retrieve a specified property from the chemical properties of a system.

Member Function Documentation

◆ eval()

auto eval ( const ChemicalProps props) -> real

Evaluate the property with given chemical properties of the system.

Parameters
propsThe already evaluated chemical properties of the system.

◆ operator()()

auto operator() ( const ChemicalProps props) -> real

Evaluate the property with given chemical properties of the system.

Parameters
propsThe already evaluated chemical properties of the system.

The documentation for this class was generated from the following file: