IdealGasPhase.h Source File#
IdealGasPhase.h
Go to the documentation of this file.
Header file for class ThermoPhase, the base class for phases with thermodynamic properties,...
Base class for exceptions thrown by Cantera classes.
Definition ctexceptions.h:66
Class IdealGasPhase represents low-density gases that obey the ideal gas equation of state.
Definition IdealGasPhase.h:250
const vector< double > & entropy_R_ref() const
Returns a reference to the dimensionless reference state Entropy vector.
Definition IdealGasPhase.h:535
double enthalpy_mole() const override
Return the Molar enthalpy. Units: J/kmol.
Definition IdealGasPhase.h:294
double thermalExpansionCoeff() const override
Return the volumetric thermal expansion coefficient. Units: 1/K.
Definition IdealGasPhase.h:398
bool isIdeal() const override
Boolean indicating whether phase is ideal.
Definition IdealGasPhase.h:267
void getPartialMolarEnthalpies(double *hbar) const override
Returns an array of partial molar enthalpies for the species in the mixture.
Definition IdealGasPhase.cpp:78
void getChemPotentials(double *mu) const override
Get the species chemical potentials. Units: J/kmol.
Definition IdealGasPhase.cpp:69
void setState_DP(double rho, double p) override
Set the density and pressure at constant composition.
Definition IdealGasPhase.h:369
double soundSpeed() const override
Return the speed of sound. Units: m/s.
Definition IdealGasPhase.cpp:40
vector< double > m_g0_RT
Temporary storage for dimensionless reference state Gibbs energies.
Definition IdealGasPhase.h:570
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 IdealGasPhase.cpp:125
vector< double > m_h0_RT
Temporary storage for dimensionless reference state enthalpies.
Definition IdealGasPhase.h:564
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 IdealGasPhase.cpp:188
vector< double > m_pp
Temporary array containing internally calculated partial pressures.
Definition IdealGasPhase.h:578
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 IdealGasPhase.cpp:58
void getCp_R(double *cpr) const override
Get the nondimensional Heat Capacities at constant pressure for the species standard states at the cu...
Definition IdealGasPhase.cpp:160
string type() const override
String indicating the thermodynamic model implemented.
Definition IdealGasPhase.h:263
void getActivityConcentrations(double *c) const override
This method returns the array of generalized concentrations.
Definition IdealGasPhase.h:441
void setPressure(double p) override
Set the pressure at constant temperature and composition.
Definition IdealGasPhase.h:352
const vector< double > & gibbs_RT_ref() const
Returns a reference to the dimensionless reference state Gibbs free energy vector.
Definition IdealGasPhase.h:525
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 IdealGasPhase.cpp:214
void getPartialMolarVolumes(double *vbar) const override
Return an array of partial molar volumes for the species in the mixture.
Definition IdealGasPhase.cpp:109
double cv_mole() const override
Molar heat capacity at constant volume.
Definition IdealGasPhase.cpp:35
virtual void updateThermo() const
Update the species reference state thermodynamic functions.
Definition IdealGasPhase.cpp:267
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 IdealGasPhase.cpp:145
void getIntEnergy_RT_ref(double *urt) const override
Returns the vector of nondimensional internal Energies of the reference state at the current temperat...
Definition IdealGasPhase.cpp:200
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 IdealGasPhase.cpp:119
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 IdealGasPhase.cpp:194
vector< double > m_s0_R
Temporary storage for dimensionless reference state entropies.
Definition IdealGasPhase.h:573
double isothermalCompressibility() const override
Returns the isothermal compressibility. Units: 1/Pa.
Definition IdealGasPhase.h:386
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 IdealGasPhase.cpp:135
void getCp_R_ref(double *cprt) const override
Returns the vector of nondimensional constant pressure heat capacities of the reference state at the ...
Definition IdealGasPhase.cpp:208
void getStandardVolumes(double *vol) const override
Get the molar volumes of the species standard states at the current T and P of the solution.
Definition IdealGasPhase.cpp:166
void getPartialMolarIntEnergies(double *ubar) const override
Return an array of partial molar internal energies for the species in the mixture.
Definition IdealGasPhase.cpp:95
double cp_mole() const override
Molar heat capacity at constant pressure.
Definition IdealGasPhase.cpp:30
void getIntEnergy_RT(double *urt) const override
Returns the vector of nondimensional Internal Energies of the standard state species at the current T...
Definition IdealGasPhase.cpp:155
void getPartialMolarCp(double *cpbar) const override
Return an array of partial molar heat capacities for the species in the mixture.
Definition IdealGasPhase.cpp:103
double standardConcentration(size_t k=0) const override
Returns the standard concentration , which is used to normalize the generalized concentration.
Definition IdealGasPhase.cpp:46
vector< double > m_cp0_R
Temporary storage for dimensionless reference state heat capacities.
Definition IdealGasPhase.h:567
bool addSpecies(shared_ptr< Species > spec) override
Add a Species to this Phase.
Definition IdealGasPhase.cpp:222
void setToEquilState(const double *mu_RT) override
This method is used by the ChemEquil equilibrium solver.
Definition IdealGasPhase.cpp:239
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 IdealGasPhase.cpp:182
void getActivityCoefficients(double *ac) const override
Get the array of non-dimensional activity coefficients at the current solution temperature,...
Definition IdealGasPhase.cpp:51
void getPartialMolarEntropies(double *sbar) const override
Returns an array of partial molar entropies of the species in the solution.
Definition IdealGasPhase.cpp:84
const vector< double > & cp_R_ref() const
Returns a reference to the dimensionless reference state Heat Capacity vector.
Definition IdealGasPhase.h:545
string phaseOfMatter() const override
String indicating the mechanical phase of the matter in this Phase.
Definition IdealGasPhase.h:275
void getEnthalpy_RT_ref(double *hrt) const override
Returns the vector of nondimensional enthalpies of the reference state at the current temperature of ...
Definition IdealGasPhase.cpp:176
const vector< double > & enthalpy_RT_ref() const
Returns a reference to the dimensionless reference state enthalpy vector.
Definition IdealGasPhase.h:515
virtual void getConcentrations(double *const c) const
Get the species concentrations (kmol/m^3).
Definition Phase.cpp:482
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 mean_X(const double *const Q) const
Evaluate the mole-fraction-weighted mean of an array Q.
Definition Phase.cpp:616
Base class for a phase with thermodynamic properties.
Definition ThermoPhase.h:390
double RT() const
Return the Gas Constant multiplied by the current temperature.
Definition ThermoPhase.h:1062
Generated by