SingleSpeciesTP.cpp Source File#
SingleSpeciesTP.cpp
Go to the documentation of this file.
Header for the SingleSpeciesTP class, which is a filter class for ThermoPhase, that eases the constru...
Base class for exceptions thrown by Cantera classes.
Definition ctexceptions.h:66
virtual void update(double T, double *cp_R, double *h_RT, double *s_R) const
Compute the reference-state properties for all species.
Definition MultiSpeciesThermo.cpp:94
virtual void setPressure(double p)
Set the internally stored pressure (Pa) at constant temperature and composition.
Definition Phase.h:616
virtual void setDensity(const double density_)
Set the internally stored density (kg/m^3) of the phase.
Definition Phase.cpp:586
virtual void setTemperature(double temp)
Set the internally stored temperature of the phase (K).
Definition Phase.h:623
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 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
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
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 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
virtual void getEntropy_R(double *sr) const
Get the array of nondimensional Entropy functions for the standard state species at the current T and...
Definition ThermoPhase.h:880
virtual double thermalExpansionCoeff() const
Return the volumetric thermal expansion coefficient. Units: 1/K.
Definition ThermoPhase.h:580
virtual void setState_TP(double t, double p)
Set the temperature (K) and pressure (Pa)
Definition ThermoPhase.cpp:121
double RT() const
Return the Gas Constant multiplied by the current temperature.
Definition ThermoPhase.h:1062
double m_tlast
last value of the temperature processed by reference state
Definition ThermoPhase.h:1985
virtual void getIntEnergy_RT(double *urt) const
Returns the vector of nondimensional Internal Energies of the standard state species at the current T...
Definition ThermoPhase.h:911
virtual void getCp_R(double *cpr) const
Get the nondimensional Heat Capacities at constant pressure for the species standard states at the cu...
Definition ThermoPhase.h:922
virtual double isothermalCompressibility() const
Returns the isothermal compressibility. Units: 1/Pa.
Definition ThermoPhase.h:569
virtual void getGibbs_RT(double *grt) const
Get the nondimensional Gibbs functions for the species in their standard states at the current T and ...
Definition ThermoPhase.h:890
virtual void getStandardChemPotentials(double *mu) const
Get the array of chemical potentials at unit activity for the species at their standard states at the...
Definition ThermoPhase.h:860
virtual void getEnthalpy_RT(double *hrt) const
Get the nondimensional Enthalpy functions for the species at their standard states at the current T a...
Definition ThermoPhase.h:870
double cp_mass() const
Specific heat at constant pressure. Units: J/kg/K.
Definition ThermoPhase.h:1048
MultiSpeciesThermo m_spthermo
Pointer to the calculation manager for species reference-state thermodynamic properties.
Definition ThermoPhase.h:1962
bool addSpecies(shared_ptr< Species > spec) override
Add a Species to this Phase.
Definition ThermoPhase.cpp:1054
This file contains definitions for utility functions and text for modules, inputfiles and logging,...
T clip(const T &value, const T &lower, const T &upper)
Clip value such that lower <= value <= upper.
Definition global.h:329
Contains declarations for string manipulation functions within Cantera.
Generated by 1.9.7