SingleSpeciesTP.h Source File#
SingleSpeciesTP.h
Go to the documentation of this file.
Header file for class ThermoPhase, the base class for phases with thermodynamic properties,...
The SingleSpeciesTP class is a filter class for ThermoPhase.
Definition SingleSpeciesTP.h:57
double enthalpy_mole() const override
Molar enthalpy. Units: J/kmol.
Definition SingleSpeciesTP.cpp:20
void getPartialMolarEnthalpies(double *hbar) const override
Get the species partial molar enthalpies. Units: J/kmol.
Definition SingleSpeciesTP.cpp:89
void getChemPotentials(double *mu) const override
Get the array of chemical potentials.
Definition SingleSpeciesTP.cpp:84
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 SingleSpeciesTP.cpp:145
void setMassFractions(const double *const y) override
Mass fractions are fixed, with Y[0] = 1.0.
Definition SingleSpeciesTP.h:218
void getActivities(double *a) const override
Get the array of non-dimensional activities at the current solution temperature, pressure,...
Definition SingleSpeciesTP.h:101
string type() const override
String indicating the thermodynamic model implemented.
Definition SingleSpeciesTP.h:62
void setMoleFractions(const double *const x) override
Mole fractions are fixed, with x[0] = 1.0.
Definition SingleSpeciesTP.h:221
void setState_HP(double h, double p, double tol=1e-9) override
Set the internally stored specific enthalpy (J/kg) and pressure (Pa) of the phase.
Definition SingleSpeciesTP.cpp:165
void getPartialMolarVolumes(double *vbar) const override
Get the species partial molar volumes. Units: m^3/kmol.
Definition SingleSpeciesTP.cpp:113
double cv_mole() const override
Molar heat capacity at constant volume. Units: J/kmol/K.
Definition SingleSpeciesTP.cpp:62
double m_press
The current pressure of the solution (Pa). It gets initialized to 1 atm.
Definition SingleSpeciesTP.h:233
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 SingleSpeciesTP.cpp:120
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 SingleSpeciesTP.cpp:151
bool isPure() const override
Return whether phase represents a pure (single species) substance.
Definition SingleSpeciesTP.h:66
double intEnergy_mole() const override
Molar internal energy. Units: J/kmol.
Definition SingleSpeciesTP.cpp:27
double entropy_mole() const override
Molar entropy. Units: J/kmol/K.
Definition SingleSpeciesTP.cpp:34
void getCp_R_ref(double *cprt) const override
Returns the vector of nondimensional constant pressure heat capacities of the reference state at the ...
Definition SingleSpeciesTP.cpp:157
void getPartialMolarIntEnergies(double *ubar) const override
Get the species partial molar internal energies. Units: J/kmol.
Definition SingleSpeciesTP.cpp:95
double cp_mole() const override
Molar heat capacity at constant pressure. Units: J/kmol/K.
Definition SingleSpeciesTP.cpp:51
void setState_SV(double s, double v, double tol=1e-9) override
Set the specific entropy (J/kg/K) and specific volume (m^3/kg).
Definition SingleSpeciesTP.cpp:214
void getPartialMolarCp(double *cpbar) const override
Get the species partial molar Heat Capacities. Units: J/ kmol /K.
Definition SingleSpeciesTP.cpp:107
double gibbs_mole() const override
Molar Gibbs function. Units: J/kmol.
Definition SingleSpeciesTP.cpp:41
bool addSpecies(shared_ptr< Species > spec) override
Add a Species to this Phase.
Definition SingleSpeciesTP.cpp:233
void getStandardVolumes(double *vbar) const override
Get the molar volumes of each species in their standard states at the current T and P of the solution...
Definition SingleSpeciesTP.cpp:126
void _updateThermo() const
This internal routine calculates new species Cp0, H0, and S0 whenever the temperature has changed.
Definition SingleSpeciesTP.cpp:242
void setState_UV(double u, double v, double tol=1e-9) override
Set the specific internal energy (J/kg) and specific volume (m^3/kg).
Definition SingleSpeciesTP.cpp:180
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 SingleSpeciesTP.cpp:139
void getActivityCoefficients(double *ac) const override
Get the array of non-dimensional molar-based activity coefficients at the current solution temperatur...
Definition SingleSpeciesTP.h:105
void setState_SP(double s, double p, double tol=1e-9) override
Set the specific entropy (J/kg/K) and pressure (Pa).
Definition SingleSpeciesTP.cpp:199
void getPartialMolarEntropies(double *sbar) const override
Get the species partial molar entropy. Units: J/kmol K.
Definition SingleSpeciesTP.cpp:101
void getEnthalpy_RT_ref(double *hrt) const override
Returns the vector of nondimensional enthalpies of the reference state at the current temperature of ...
Definition SingleSpeciesTP.cpp:133
Base class for a phase with thermodynamic properties.
Definition ThermoPhase.h:390
Generated by