Go to the documentation of this file.
19 SingleSpeciesTP::SingleSpeciesTP() :
84 cvbar -= alpha * alpha * V * T / beta;
183 for (
int n = 0; n < 50; n++) {
191 "no convergence. dt = {}", dt);
203 for (
int n = 0; n < 50; n++) {
211 "no convergence. dt = {}\nu = {} v = {}", dt, u, v);
219 for (
int n = 0; n < 50; n++) {
227 "no convergence. dt = {}", dt);
239 for (
int n = 0; n < 50; n++) {
247 "no convergence. dt = {}", dt);
254 "Stoichiometric substances may only contain one species.");
doublereal enthalpy_mass() const
Specific enthalpy. Units: J/kg.
virtual bool addSpecies(shared_ptr< Species > spec)
doublereal cv_mass() const
Specific heat at constant volume. Units: J/kg/K.
virtual void setPressure(double p)
Set the internally stored pressure (Pa) at constant temperature and composition.
virtual void getStandardChemPotentials(doublereal *mu) const
Get the array of chemical potentials at unit activity for the species at their standard states at the...
virtual doublereal intEnergy_mole() const
Molar internal energy. Units: J/kmol.
virtual void setState_SP(double s, double p, double tol=1e-9)
Set the specific entropy (J/kg/K) and pressure (Pa).
virtual void getIntEnergy_RT(doublereal *urt) const
Returns the vector of nondimensional Internal Energies of the standard state species at the current T...
double m_s0_R
Dimensionless entropy at the (mtlast, m_p0)
doublereal intEnergy_mass() const
Specific internal energy. Units: J/kg.
virtual void getCp_R_ref(doublereal *cprt) const
Returns the vector of nondimensional constant pressure heat capacities of the reference state at the ...
virtual void setTemperature(const doublereal temp)
Set the internally stored temperature of the phase (K).
virtual void setState_SV(double s, double v, double tol=1e-9)
Set the specific entropy (J/kg/K) and specific volume (m^3/kg).
virtual void update(doublereal T, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const
Compute the reference-state properties for all species.
virtual void setState_TP(doublereal t, doublereal p)
Set the temperature (K) and pressure (Pa)
virtual doublereal cp_mole() const
Molar heat capacity at constant pressure. Units: J/kmol/K.
virtual void getChemPotentials(doublereal *mu) const
Get the array of chemical potentials.
virtual void setState_HP(double h, double p, double tol=1e-9)
Set the internally stored specific enthalpy (J/kg) and pressure (Pa) of the phase.
doublereal cp_mass() const
Specific heat at constant pressure. Units: J/kg/K.
size_t m_kk
Number of species in the phase.
virtual void getCp_R(doublereal *cpr) const
Get the nondimensional Heat Capacities at constant pressure for the species standard states at the cu...
virtual bool addSpecies(shared_ptr< Species > spec)
doublereal molecularWeight(size_t k) const
Molecular weight of species k.
virtual double density() const
Density (kg/m^3).
virtual void getGibbs_RT(doublereal *grt) const
Get the nondimensional Gibbs functions for the species in their standard states at the current T and ...
virtual doublereal thermalExpansionCoeff() const
Return the volumetric thermal expansion coefficient. Units: 1/K.
virtual void getPureGibbs(doublereal *gpure) const
Get the Gibbs functions for the standard state of the species at the current T and P of the solution.
virtual void getEntropy_R(doublereal *sr) const
Get the array of nondimensional Entropy functions for the standard state species at the current T and...
virtual void getChemPotentials_RT(doublereal *murt) const
Get the array of non-dimensional species chemical potentials.
virtual void getGibbs_RT_ref(doublereal *grt) const
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)
virtual void getPartialMolarIntEnergies(doublereal *ubar) const
Get the species partial molar internal energies. Units: J/kmol.
virtual void getPartialMolarCp(doublereal *cpbar) const
Get the species partial molar Heat Capacities. Units: J/ kmol /K.
virtual void getEntropy_R_ref(doublereal *er) const
Returns the vector of nondimensional entropies of the reference state at the current temperature of t...
doublereal m_tlast
last value of the temperature processed by reference state
void _updateThermo() const
const double OneAtm
One atmosphere [Pa].
double m_h0_RT
Dimensionless enthalpy at the (mtlast, m_p0)
doublereal RT() const
Return the Gas Constant multiplied by the current temperature.
virtual void getStandardVolumes(doublereal *vbar) const
Get the molar volumes of each species in their standard states at the current T and P of the solution...
virtual void getEnthalpy_RT_ref(doublereal *hrt) const
Returns the vector of nondimensional enthalpies of the reference state at the current temperature of ...
doublereal temperature() const
Temperature (K).
MultiSpeciesThermo m_spthermo
Pointer to the calculation manager for species reference-state thermodynamic properties.
virtual void setDensity(const double density_)
Set the internally stored density (kg/m^3) of the phase.
virtual void getEnthalpy_RT(doublereal *hrt) const
Get the nondimensional Enthalpy functions for the species at their standard states at the current T a...
virtual void setState_UV(double u, double v, double tol=1e-9)
Set the specific internal energy (J/kg) and specific volume (m^3/kg).
virtual doublereal entropy_mole() const
Molar entropy. Units: J/kmol/K.
virtual doublereal enthalpy_mole() const
Molar enthalpy. Units: J/kmol.
const double GasConstant
Universal Gas Constant [J/kmol/K].
Base class for exceptions thrown by Cantera classes.
virtual void getPartialMolarEnthalpies(doublereal *hbar) const
Get the species partial molar enthalpies. Units: J/kmol.
virtual void getGibbs_ref(doublereal *g) const
Returns the vector of the Gibbs function of the reference state at the current temperature of the sol...
virtual void getPartialMolarEntropies(doublereal *sbar) const
Get the species partial molar entropy. Units: J/kmol K.
virtual void getPartialMolarVolumes(doublereal *vbar) const
Get the species partial molar volumes. Units: m^3/kmol.
doublereal entropy_mass() const
Specific entropy. Units: J/kg/K.
virtual doublereal gibbs_mole() const
Molar Gibbs function. Units: J/kmol.
Namespace for the Cantera kernel.
virtual doublereal isothermalCompressibility() const
Returns the isothermal compressibility. Units: 1/Pa.
virtual doublereal cv_mole() const
Molar heat capacity at constant volume. Units: J/kmol/K.