11#ifndef CT_SINGLESPECIESTP_H
12#define CT_SINGLESPECIESTP_H
62 string type()
const override {
63 return "SingleSpecies";
81 double cp_mole()
const override;
82 double cv_mole()
const override;
207 void getCp_R_ref(span<double> cprt)
const override;
223 bool addSpecies(shared_ptr<Species> spec)
override;
Header file for class ThermoPhase, the base class for phases with thermodynamic properties,...
The SingleSpeciesTP class is a filter class for ThermoPhase.
void getGibbs_ref(span< double > g) const override
Returns the vector of the Gibbs function of the reference state at the current temperature of the sol...
double enthalpy_mole() const override
Molar enthalpy. Units: J/kmol.
void setMoleFractions(span< const double > x) override
Mole fractions are fixed, with x[0] = 1.0.
void getActivities(span< double > a) const override
Get the array of non-dimensional activities at the current solution temperature, pressure,...
void getEntropy_R_ref(span< double > er) const override
Returns the vector of nondimensional entropies of the reference state at the current temperature of t...
void getPartialMolarEnthalpies(span< double > hbar) const override
Get the species partial molar enthalpies. Units: J/kmol.
SingleSpeciesTP()=default
Base empty constructor.
void getPartialMolarCp(span< double > cpbar) const override
Get the species partial molar Heat Capacities. Units: J/ kmol /K.
void getActivityCoefficients(span< double > ac) const override
Get the array of non-dimensional molar-based activity coefficients at the current solution temperatur...
void getCp_R_ref(span< double > cprt) const override
Returns the vector of nondimensional constant pressure heat capacities of the reference state at the ...
string type() const override
String indicating the thermodynamic model implemented.
void getEnthalpy_RT_ref(span< double > hrt) const override
Returns the vector of nondimensional enthalpies of the reference state at the current temperature of ...
double cv_mole() const override
Molar heat capacity at constant volume and composition [J/kmol/K].
double m_h0_RT
Dimensionless enthalpy at the (mtlast, m_p0)
double m_press
The current pressure of the solution (Pa). It gets initialized to 1 atm.
double m_s0_R
Dimensionless entropy at the (mtlast, m_p0)
bool isPure() const override
Return whether phase represents a pure (single species) substance.
void getStandardVolumes(span< double > vbar) const override
Get the molar volumes of each species in their standard states at the current T and P of the solution...
double intEnergy_mole() const override
Molar internal energy. Units: J/kmol.
double entropy_mole() const override
Molar entropy. Units: J/kmol/K.
void getGibbs_RT_ref(span< double > grt) const override
Returns the vector of nondimensional Gibbs Free Energies of the reference state at the current temper...
double m_cp0_R
Dimensionless heat capacity at the (mtlast, m_p0)
double cp_mole() const override
Molar heat capacity at constant pressure and composition [J/kmol/K].
void getPartialMolarVolumes(span< double > vbar) const override
Get the species partial molar volumes. Units: m^3/kmol.
void getPartialMolarEntropies(span< double > sbar) const override
Get the species partial molar entropy. Units: J/kmol K.
double gibbs_mole() const override
Molar Gibbs function. Units: J/kmol.
bool addSpecies(shared_ptr< Species > spec) override
Add a Species to this Phase.
void _updateThermo() const
This internal routine calculates new species Cp0, H0, and S0 whenever the temperature has changed.
void getChemPotentials(span< double > mu) const override
Get the array of chemical potentials.
void setMassFractions(span< const double > y) override
Mass fractions are fixed, with Y[0] = 1.0.
void getPartialMolarIntEnergies(span< double > ubar) const override
Get the species partial molar internal energies. Units: J/kmol.
Base class for a phase with thermodynamic properties.
const double OneAtm
One atmosphere [Pa].
Namespace for the Cantera kernel.