Cantera  2.1.2
Public Member Functions | Private Member Functions | List of all members
CarbonDioxide Class Reference

Pure species representation of carbon dioxide. More...

#include <CarbonDioxide.h>

Inheritance diagram for CarbonDioxide:
[legend]
Collaboration diagram for CarbonDioxide:
[legend]

Public Member Functions

double MolWt ()
 Molecular weight [kg/kmol]. More...
 
double Tcrit ()
 Critical temperature [K]. More...
 
double Pcrit ()
 Critical pressure [Pa]. More...
 
double Vcrit ()
 Critical specific volume [m^3/kg]. More...
 
double Tmin ()
 Minimum temperature for which the equation of state is valid. More...
 
double Tmax ()
 Maximum temperature for which the equation of state is valid. More...
 
char * name ()
 Name of the substance. More...
 
char * formula ()
 Chemical formula for the substance. More...
 
double Pp ()
 Pressure. Equation P-3 in Reynolds. P(rho, T). More...
 
double up ()
 
double sp ()
 entropy. See Reynolds eqn (16) section 2 More...
 
double Psat ()
 Pressure at Saturation. Equation S-2 in Reynolds. More...
 
- Public Member Functions inherited from Substance
void setStdState (double h0=0.0, double s0=0.0, double t0=298.15, double p0=1.01325e5)
 
double hp ()
 Enthaply of a single-phase state. More...
 
double gp ()
 Gibbs function of a single-phase state. More...
 
double prop (propertyFlag::type ijob)
 
void set_TPp (double t0, double p0)
 set T and P More...
 
void Set (PropertyPair::type XY, double x0, double y0)
 Function to set or change the state for a property pair XY where x0 is the value of first property and y0 is the value of the second property. More...
 
double P ()
 Pressure [Pa]. More...
 
double Temp ()
 Temperature [K]. More...
 
double v ()
 Specific volume [m^3/kg]. More...
 
double u ()
 Internal energy [J/kg]. More...
 
double h ()
 Enthalpy [J/kg]. More...
 
double s ()
 Entropy [J/kg/K]. More...
 
double f ()
 Helmholtz function [J/kg]. More...
 
double g ()
 Gibbs function [J/kg]. More...
 
virtual double cv ()
 Specific heat at constant volume [J/kg/K]. More...
 
virtual double cp ()
 Specific heat at constant pressure [J/kg/K]. More...
 
virtual double thermalExpansionCoeff ()
 
virtual double isothermalCompressibility ()
 
double Ps ()
 
virtual double dPsdT ()
 The derivative of the saturation pressure with respect to temperature. More...
 
double Tsat (double p)
 Saturation temperature at pressure p. More...
 
double x ()
 Vapor mass fraction. More...
 
int TwoPhase ()
 Returns 1 if the current state is a liquid/vapor mixture, 0 otherwise. More...
 

Private Member Functions

double ldens ()
 Liquid density. Equation D2 in Reynolds. More...
 
double C (int jm, double, double, double, double)
 
double Cprime (int i, double, double, double)
 Derivative of C(i) More...
 
double I (int i, double, double)
 
double H (int i, double egrho)
 

Additional Inherited Members

- Protected Member Functions inherited from Substance
virtual int ideal ()
 
double vp ()
 
int Lever (int itp, double sat, double val, propertyFlag::type ifunc)
 Uses the lever rule to set state in the dome. More...
 
void update_sat ()
 Update saturated liquid and vapor densities and saturation pressure. More...
 
- Protected Attributes inherited from Substance
double T
 
double Rho
 
double Tslast
 
double Rhf
 
double Rhv
 
double Pst
 
double m_energy_offset
 
double m_entropy_offset
 
std::string m_name
 
std::string m_formula
 

Detailed Description

Pure species representation of carbon dioxide.

Values and functions are from "Thermodynamic Properties in SI" by W.C. Reynolds

Definition at line 12 of file CarbonDioxide.h.

Member Function Documentation

double MolWt ( )
virtual

Molecular weight [kg/kmol].

Implements Substance.

Definition at line 321 of file CarbonDioxide.cpp.

double Tcrit ( )
virtual

Critical temperature [K].

Implements Substance.

Definition at line 293 of file CarbonDioxide.cpp.

double Pcrit ( )
virtual

Critical pressure [Pa].

Implements Substance.

Definition at line 297 of file CarbonDioxide.cpp.

double Vcrit ( )
virtual

Critical specific volume [m^3/kg].

Implements Substance.

Definition at line 301 of file CarbonDioxide.cpp.

double Tmin ( )
virtual

Minimum temperature for which the equation of state is valid.

Implements Substance.

Definition at line 305 of file CarbonDioxide.cpp.

double Tmax ( )
virtual

Maximum temperature for which the equation of state is valid.

Implements Substance.

Definition at line 309 of file CarbonDioxide.cpp.

char * name ( )
virtual

Name of the substance.

Implements Substance.

Definition at line 313 of file CarbonDioxide.cpp.

char * formula ( )
virtual

Chemical formula for the substance.

Implements Substance.

Definition at line 317 of file CarbonDioxide.cpp.

double Pp ( )
virtual

Pressure. Equation P-3 in Reynolds. P(rho, T).

Implements Substance.

Definition at line 240 of file CarbonDioxide.cpp.

double up ( )
virtual

internal energy. See Reynolds eqn (15) section 2

u = (the integral from T to To of co(T)dT) + sum from i to N ([C(i) - T*Cprime(i)] + uo

Implements Substance.

Definition at line 187 of file CarbonDioxide.cpp.

double sp ( )
virtual

entropy. See Reynolds eqn (16) section 2

Implements Substance.

Definition at line 213 of file CarbonDioxide.cpp.

double Psat ( )
virtual

Pressure at Saturation. Equation S-2 in Reynolds.

Implements Substance.

Definition at line 257 of file CarbonDioxide.cpp.

References Cantera::fp2str().

double ldens ( )
privatevirtual

Liquid density. Equation D2 in Reynolds.

Implements Substance.

Definition at line 276 of file CarbonDioxide.cpp.

References Cantera::fp2str().

double C ( int  jm,
double  Tinverse,
double  T2inverse,
double  T3inverse,
double  T4inverse 
)
private

C returns a multiplier in each term of the sum in P-3, used in conjunction with C in the function Pp

  • j is used to represent which of the values in the summation to calculate
  • j=0 is the second additive in the formula in reynolds
  • j=1 is the third... (this part does not include the multiplier rho^n)

Definition at line 87 of file CarbonDioxide.cpp.

double Cprime ( int  i,
double  T2inverse,
double  T3inverse,
double  T4inverse 
)
inlineprivate

Derivative of C(i)

Definition at line 119 of file CarbonDioxide.cpp.

double I ( int  i,
double  ergho,
double  Gamma 
)
inlineprivate

I = integral from o-rho { 1/(rho^2) * H(i, rho) d rho } ( see section 2 of Reynolds TPSI )

Definition at line 151 of file CarbonDioxide.cpp.

double H ( int  i,
double  egrho 
)
private

H returns a multiplier in each term of the sum in P-3. This is used in conjunction with C in the function Pp this represents the product rho^n

  • i=0 is the second additive in the formula in reynolds
  • i=1 is the third ...

Definition at line 174 of file CarbonDioxide.cpp.


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