Cantera  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
VCS_SPECIES_THERMO Class Reference

#include <vcs_species_thermo.h>

Collaboration diagram for VCS_SPECIES_THERMO:
[legend]

Public Member Functions

 VCS_SPECIES_THERMO (size_t indexPhase, size_t indexSpeciesPhase)
 
 VCS_SPECIES_THERMO (const VCS_SPECIES_THERMO &b)
 
VCS_SPECIES_THERMOoperator= (const VCS_SPECIES_THERMO &b)
 
virtual VCS_SPECIES_THERMOduplMyselfAsVCS_SPECIES_THERMO ()
 Duplication function for derived classes. More...
 
virtual double GStar_R_calc (size_t kspec, double TKelvin, double pres)
 This function calculates the standard state Gibbs free energy for species, kspec, at the temperature TKelvin and pressure, Pres. More...
 
virtual double G0_R_calc (size_t kglob, double TKelvin)
 This function calculates the standard state Gibbs free energy for species, kspec, at the temperature TKelvin. More...
 
virtual double VolStar_calc (size_t kglob, double TKelvin, double Pres)
 This function calculates the standard state molar volume for species, kspec, at the temperature TKelvin and pressure, Pres,. More...
 
virtual double eval_ac (size_t kspec)
 This function evaluates the activity coefficient for species, kspec. More...
 

Public Attributes

size_t IndexPhase
 Index of the phase that this species belongs to. More...
 
size_t IndexSpeciesPhase
 Index of this species in the current phase. More...
 
vcs_VolPhaseOwningPhase
 Pointer to the owning phase object. More...
 
int SS0_Model
 Integer representing the models for the species standard state Naught temperature dependence. More...
 
double SS0_feSave
 Internal storage of the last calculation of the reference naught Gibbs free energy at SS0_TSave. More...
 
double SS0_TSave
 Internal storage of the last temperature used in the calculation of the reference naught Gibbs free energy. More...
 
double SS0_T0
 Base temperature used in the VCS_SS0_CONSTANT_CP model. More...
 
double SS0_H0
 Base enthalpy used in the VCS_SS0_CONSTANT_CP model. More...
 
double SS0_S0
 Base entropy used in the VCS_SS0_CONSTANT_CP model. More...
 
double SS0_Cp0
 Base heat capacity used in the VCS_SS0_CONSTANT_CP model. More...
 
double SS0_Pref
 Value of the pressure for the reference state. More...
 
int SSStar_Model
 Integer value representing the star state model. More...
 
int SSStar_Vol_Model
 Models for the standard state volume of each species. More...
 
double SSStar_Vol0
 parameter that is used in the VCS_SSVOL_CONSTANT model. More...
 
bool UseCanteraCalls
 If true, this object will call Cantera to do its member calculations. More...
 
int m_VCS_UnitsFormat
 

Detailed Description

Identifies the thermo model for the species. This structure is shared by volumetric and surface species. However, each will have its own types of thermodynamic models. These quantities all have appropriate units. The units are specified by VCS_UnitsFormat.

Definition at line 36 of file vcs_species_thermo.h.

Member Function Documentation

VCS_SPECIES_THERMO * duplMyselfAsVCS_SPECIES_THERMO ( )
virtual

Duplication function for derived classes.

Definition at line 88 of file vcs_species_thermo.cpp.

Referenced by VCS_SOLVE::vcs_prob_specifyFully().

double GStar_R_calc ( size_t  kspec,
double  TKelvin,
double  pres 
)
virtual

This function calculates the standard state Gibbs free energy for species, kspec, at the temperature TKelvin and pressure, Pres.

Parameters
kspecspecies global index
TKelvinTemperature in Kelvin
prespressure is given in units specified by if__ variable.
Returns
standard state free energy in units of Kelvin.

Definition at line 93 of file vcs_species_thermo.cpp.

References VCS_SPECIES_THERMO::G0_R_calc(), vcs_VolPhase::GStar_calc_one(), VCS_SPECIES_THERMO::IndexSpeciesPhase, VCS_SPECIES_THERMO::OwningPhase, vcs_VolPhase::setState_TP(), VCS_SPECIES_THERMO::SS0_Pref, VCS_SPECIES_THERMO::SSStar_Model, VCS_SPECIES_THERMO::UseCanteraCalls, and Cantera::vcsUtil_gasConstant().

Referenced by vcs_VolPhase::_updateGStar().

double G0_R_calc ( size_t  kglob,
double  TKelvin 
)
virtual

This function calculates the standard state Gibbs free energy for species, kspec, at the temperature TKelvin.

Parameters
kglobspecies global index.
TKelvinTemperature in Kelvin
Returns
standard state free energy in Kelvin.

Definition at line 154 of file vcs_species_thermo.cpp.

References vcs_VolPhase::G0_calc_one(), VCS_SPECIES_THERMO::IndexSpeciesPhase, VCS_SPECIES_THERMO::OwningPhase, vcs_VolPhase::setState_T(), VCS_SPECIES_THERMO::SS0_Cp0, VCS_SPECIES_THERMO::SS0_feSave, VCS_SPECIES_THERMO::SS0_H0, VCS_SPECIES_THERMO::SS0_Model, VCS_SPECIES_THERMO::SS0_T0, VCS_SPECIES_THERMO::SS0_TSave, VCS_SPECIES_THERMO::UseCanteraCalls, and Cantera::vcsUtil_gasConstant().

Referenced by vcs_VolPhase::_updateG0(), and VCS_SPECIES_THERMO::GStar_R_calc().

double VolStar_calc ( size_t  kglob,
double  TKelvin,
double  Pres 
)
virtual

This function calculates the standard state molar volume for species, kspec, at the temperature TKelvin and pressure, Pres,.

Returns
standard state volume in cm**3 per mol. (if__=3) m**3 / kmol

Definition at line 124 of file vcs_species_thermo.cpp.

References Cantera::GasConstant, VCS_SPECIES_THERMO::IndexSpeciesPhase, VCS_SPECIES_THERMO::OwningPhase, vcs_VolPhase::setState_TP(), VCS_SPECIES_THERMO::SSStar_Vol0, VCS_SPECIES_THERMO::SSStar_Vol_Model, VCS_SPECIES_THERMO::UseCanteraCalls, VCS_SSVOL_IDEALGAS, and vcs_VolPhase::VolStar_calc_one().

Referenced by vcs_VolPhase::_updateVolPM(), and vcs_VolPhase::_updateVolStar().

double eval_ac ( size_t  kspec)
virtual

This function evaluates the activity coefficient for species, kspec.

Parameters
kspecindex of the species in the global species list within VCS_SOLVE. Phase and local species id can be looked up within object.

Note, T, P and mole fractions are obtained from the single private instance of VCS_SOLVE

Returns
activity coefficient for species kspec

Definition at line 193 of file vcs_species_thermo.cpp.

References vcs_VolPhase::AC_calc_one(), VCS_SPECIES_THERMO::IndexSpeciesPhase, VCS_SPECIES_THERMO::OwningPhase, and VCS_SPECIES_THERMO::UseCanteraCalls.

Member Data Documentation

size_t IndexPhase

Index of the phase that this species belongs to.

Definition at line 43 of file vcs_species_thermo.h.

Referenced by Cantera::vcs_Cantera_to_vprob().

size_t IndexSpeciesPhase
vcs_VolPhase* OwningPhase
int SS0_Model

Integer representing the models for the species standard state Naught temperature dependence.

They are listed above and start with VCS_SS0_...

Definition at line 54 of file vcs_species_thermo.h.

Referenced by VCS_SPECIES_THERMO::G0_R_calc(), and Cantera::vcs_Cantera_to_vprob().

double SS0_feSave

Internal storage of the last calculation of the reference naught Gibbs free energy at SS0_TSave.

(always in units of Kelvin)

Definition at line 58 of file vcs_species_thermo.h.

Referenced by VCS_SPECIES_THERMO::G0_R_calc(), and Cantera::vcs_Cantera_to_vprob().

double SS0_TSave

Internal storage of the last temperature used in the calculation of the reference naught Gibbs free energy.

units = kelvin

Definition at line 62 of file vcs_species_thermo.h.

Referenced by VCS_SPECIES_THERMO::G0_R_calc(), and Cantera::vcs_Cantera_to_vprob().

double SS0_T0

Base temperature used in the VCS_SS0_CONSTANT_CP model.

Definition at line 65 of file vcs_species_thermo.h.

Referenced by VCS_SPECIES_THERMO::G0_R_calc(), and Cantera::vcs_Cantera_to_vprob().

double SS0_H0

Base enthalpy used in the VCS_SS0_CONSTANT_CP model.

Definition at line 68 of file vcs_species_thermo.h.

Referenced by VCS_SPECIES_THERMO::G0_R_calc(), and Cantera::vcs_Cantera_to_vprob().

double SS0_S0

Base entropy used in the VCS_SS0_CONSTANT_CP model.

Definition at line 71 of file vcs_species_thermo.h.

Referenced by Cantera::vcs_Cantera_to_vprob().

double SS0_Cp0

Base heat capacity used in the VCS_SS0_CONSTANT_CP model.

Definition at line 74 of file vcs_species_thermo.h.

Referenced by VCS_SPECIES_THERMO::G0_R_calc(), and Cantera::vcs_Cantera_to_vprob().

double SS0_Pref

Value of the pressure for the reference state.

defaults to 1.01325E5 = 1 atm

Definition at line 78 of file vcs_species_thermo.h.

Referenced by VCS_SPECIES_THERMO::GStar_R_calc().

int SSStar_Model

Integer value representing the star state model.

Definition at line 81 of file vcs_species_thermo.h.

Referenced by VCS_SPECIES_THERMO::GStar_R_calc(), and Cantera::vcs_Cantera_to_vprob().

int SSStar_Vol_Model

Models for the standard state volume of each species.

Definition at line 84 of file vcs_species_thermo.h.

Referenced by Cantera::vcs_Cantera_to_vprob(), and VCS_SPECIES_THERMO::VolStar_calc().

double SSStar_Vol0

parameter that is used in the VCS_SSVOL_CONSTANT model.

Definition at line 87 of file vcs_species_thermo.h.

Referenced by Cantera::vcs_Cantera_to_vprob(), and VCS_SPECIES_THERMO::VolStar_calc().

bool UseCanteraCalls

If true, this object will call Cantera to do its member calculations.

Deprecated:
Will always behave as if 'true' after Cantera 2.2

Definition at line 91 of file vcs_species_thermo.h.

Referenced by VCS_SPECIES_THERMO::eval_ac(), VCS_SPECIES_THERMO::G0_R_calc(), VCS_SPECIES_THERMO::GStar_R_calc(), Cantera::vcs_Cantera_to_vprob(), and VCS_SPECIES_THERMO::VolStar_calc().


The documentation for this class was generated from the following files: