VPStandardStateTP.h Source File#
VPStandardStateTP.h
Go to the documentation of this file.
Header file for class ThermoPhase, the base class for phases with thermodynamic properties,...
A map of string keys to values whose type can vary at runtime.
Definition AnyMap.h:427
Virtual base class for a species with a pressure dependent standard state.
Definition PDSS.h:140
virtual bool addSpecies(shared_ptr< Species > spec)
Add a Species to this Phase.
Definition Phase.cpp:701
Base class for a phase with thermodynamic properties.
Definition ThermoPhase.h:390
This is a filter class for ThermoPhase that implements some preparatory steps for efficiently handlin...
Definition VPStandardStateTP.h:44
double m_Plast_ss
The last pressure at which the Standard State thermodynamic properties were calculated at.
Definition VPStandardStateTP.h:250
int standardStateConvention() const override
This method returns the convention used in specification of the standard state, of which there are cu...
Definition VPStandardStateTP.cpp:31
double pressure() const override
Returns the current pressure of the phase.
Definition VPStandardStateTP.h:118
vector< double > m_g0_RT
Vector containing the species reference Gibbs functions at T = m_tlast and P = p_ref.
Definition VPStandardStateTP.h:269
bool isCompressible() const override
Return whether phase represents a compressible substance.
Definition VPStandardStateTP.h:53
vector< double > m_sss_R
Vector containing the species Standard State entropies at T = m_tlast and P = m_plast.
Definition VPStandardStateTP.h:292
void installPDSS(size_t k, unique_ptr< PDSS > &&pdss)
Install a PDSS object for species k
Definition VPStandardStateTP.cpp:225
void getSpeciesParameters(const string &name, AnyMap &speciesNode) const override
Get phase-specific parameters of a Species object such that an identical one could be reconstructed a...
Definition VPStandardStateTP.cpp:155
void getEntropy_R(double *sr) const override
Get the array of nondimensional Entropy functions for the standard state species at the current T and...
Definition VPStandardStateTP.cpp:52
vector< double > m_h0_RT
Vector containing the species reference enthalpies at T = m_tlast and P = p_ref.
Definition VPStandardStateTP.h:261
virtual void _updateStandardStateThermo() const
Updates the standard state thermodynamic functions at the current T and P of the solution.
Definition VPStandardStateTP.cpp:259
void getGibbs_ref(double *g) const override
Returns the vector of the Gibbs function of the reference state at the current temperature of the sol...
Definition VPStandardStateTP.cpp:111
void getStandardChemPotentials(double *mu) const override
Get the array of chemical potentials at unit activity for the species at their standard states at the...
Definition VPStandardStateTP.cpp:38
void getCp_R(double *cpr) const override
Get the nondimensional Heat Capacities at constant pressure for the species standard states at the cu...
Definition VPStandardStateTP.cpp:80
void initThermo() override
Initialize the ThermoPhase object after all species have been set up.
Definition VPStandardStateTP.cpp:142
void setPressure(double p) override
Set the internally stored pressure (Pa) at constant temperature and composition.
Definition VPStandardStateTP.cpp:194
vector< unique_ptr< PDSS > > m_PDSS_storage
Storage for the PDSS objects for the species.
Definition VPStandardStateTP.h:257
void getStandardVolumes_ref(double *vol) const override
Get the molar volumes of the species reference states at the current T and P_ref of the solution.
Definition VPStandardStateTP.cpp:136
vector< double > m_gss_RT
Vector containing the species Standard State Gibbs functions at T = m_tlast and P = m_plast.
Definition VPStandardStateTP.h:288
double m_Tlast_ss
The last temperature at which the standard state thermodynamic properties were calculated at.
Definition VPStandardStateTP.h:246
void getPureGibbs(double *gpure) const override
Get the Gibbs functions for the standard state of the species at the current T and P of the solution.
Definition VPStandardStateTP.cpp:64
void getEnthalpy_RT(double *hrt) const override
Get the nondimensional Enthalpy functions for the species at their standard states at the current T a...
Definition VPStandardStateTP.cpp:46
vector< double > m_cpss_R
Vector containing the species Standard State constant pressure heat capacities at T = m_tlast and P =...
Definition VPStandardStateTP.h:284
double m_maxTemp
The maximum temperature at which data for all species is valid.
Definition VPStandardStateTP.h:242
void getEntropy_R_ref(double *er) const override
Returns the vector of nondimensional entropies of the reference state at the current temperature of t...
Definition VPStandardStateTP.cpp:124
void setTemperature(const double temp) override
Set the temperature of the phase.
Definition VPStandardStateTP.cpp:188
double minTemp(size_t k=npos) const override
Minimum temperature for which the thermodynamic data for the species or phase are valid.
Definition VPStandardStateTP.cpp:293
vector< double > m_s0_R
Vector containing the species reference entropies at T = m_tlast and P = p_ref.
Definition VPStandardStateTP.h:273
vector< double > m_Vss
Vector containing the species standard state volumes at T = m_tlast and P = m_plast.
Definition VPStandardStateTP.h:296
double m_minTemp
The minimum temperature at which data for all species is valid.
Definition VPStandardStateTP.h:239
void getGibbs_RT(double *grt) const override
Get the nondimensional Gibbs functions for the species in their standard states at the current T and ...
Definition VPStandardStateTP.cpp:58
vector< double > m_V0
Vector containing the species reference molar volumes.
Definition VPStandardStateTP.h:276
void invalidateCache() override
Invalidate any cached values which are normally updated only when a change in state is detected.
Definition VPStandardStateTP.cpp:253
void getCp_R_ref(double *cprt) const override
Returns the vector of nondimensional constant pressure heat capacities of the reference state at the ...
Definition VPStandardStateTP.cpp:130
void setState_TP(double T, double pres) override
Set the temperature and pressure at the same time.
Definition VPStandardStateTP.cpp:205
void getIntEnergy_RT(double *urt) const override
Returns the vector of nondimensional Internal Energies of the standard state species at the current T...
Definition VPStandardStateTP.cpp:71
vector< double > m_cp0_R
Vector containing the species reference constant pressure heat capacities at T = m_tlast and P = p_re...
Definition VPStandardStateTP.h:265
virtual void updateStandardStateThermo() const
Updates the standard state thermodynamic functions at the current T and P of the solution.
Definition VPStandardStateTP.cpp:285
vector< double > m_hss_RT
Vector containing the species Standard State enthalpies at T = m_tlast and P = m_plast.
Definition VPStandardStateTP.h:280
bool addSpecies(shared_ptr< Species > spec) override
Add a Species to this Phase.
Definition VPStandardStateTP.cpp:164
void getGibbs_RT_ref(double *grt) const override
Returns the vector of nondimensional Gibbs Free Energies of the reference state at the current temper...
Definition VPStandardStateTP.cpp:105
double maxTemp(size_t k=npos) const override
Maximum temperature for which the thermodynamic data for the species are valid.
Definition VPStandardStateTP.cpp:302
void getEnthalpy_RT_ref(double *hrt) const override
Returns the vector of nondimensional enthalpies of the reference state at the current temperature of ...
Definition VPStandardStateTP.cpp:99
virtual void calcDensity()
Calculate the density of the mixture using the partial molar volumes and mole fractions as input.
Definition VPStandardStateTP.cpp:200
Generated by 1.9.7