ConstCpPoly Class Reference
[Species Reference-State Thermodynamic Properties]

A constant-heat capacity species thermodynamic property manager class. More...

#include <ConstCpPoly.h>

Inheritance diagram for ConstCpPoly:
Inheritance graph
[legend]
Collaboration diagram for ConstCpPoly:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ConstCpPoly ()
 empty constructor
 ConstCpPoly (int n, doublereal tlow, doublereal thigh, doublereal pref, const doublereal *coeffs)
 Constructor used in templated instantiations.
 ConstCpPoly (const ConstCpPoly &)
 copy constructor
ConstCpPolyoperator= (const ConstCpPoly &)
 Assignment operator.
virtual ~ConstCpPoly ()
 Destructor.
virtual SpeciesThermoInterpTypeduplMyselfAsSpeciesThermoInterpType () const
 Duplicator.
doublereal minTemp () const
 Returns the minimum temperature that the thermo parameterization is valid.
doublereal maxTemp () const
 Returns the maximum temperature that the thermo parameterization is valid.
doublereal refPressure () const
 Returns the reference pressure (Pa).
virtual int reportType () const
 Returns an integer representing the type of parameterization.
virtual int speciesIndex () const
 Returns an integer representing the species index.
void updateProperties (const doublereal *tt, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const
 Update the properties for this species, given a temperature polynomial.
void updatePropertiesTemp (const doublereal temp, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const
 Compute the reference-state property of one species.
void reportParameters (int &n, int &type, doublereal &tlow, doublereal &thigh, doublereal &pref, doublereal *const coeffs) const
 This utility function reports back the type of parameterization and all of the parameters for the species, index.
virtual void modifyParameters (doublereal *coeffs)
 Modify parameters for the standard state.

Protected Attributes

doublereal m_t0
 Base temperature.
doublereal m_cp0_R
 Dimensionless value of the heat capacity.
doublereal m_h0_R
 dimensionless value of the enthaply at t0
doublereal m_s0_R
 Dimensionless value of the entropy at t0.
doublereal m_logt0
 log of the t0 value
doublereal m_lowT
 Minimum temperature for which the parameterization is valid (Kelvin).
doublereal m_highT
 Maximum temperature for which the parameterization is valid (Kelvin).
doublereal m_Pref
 Reference pressure (Pa).
int m_index
 Species Index.

Detailed Description

A constant-heat capacity species thermodynamic property manager class.

This makes the assumption that the heat capacity is a constant. Then, the following relations are used to complete the specification of the thermodynamic functions for the species.

\[ \frac{c_p(T)}{R} = Cp0\_R \]

\[ \frac{h^0(T)}{RT} = \frac{1}{T} * (h0\_R + (T - T_0) * Cp0\_R) \]

\[ \frac{s^0(T)}{R} = (s0\_R + (log(T) - log(T_0)) * Cp0\_R) \]

This parameterization takes 4 input values. These are:

The multispecies SimpleThermo class makes the same assumptions as this class does.

See also:
SimpleThermo

Definition at line 52 of file ConstCpPoly.h.


Constructor & Destructor Documentation

ConstCpPoly (  ) 

empty constructor

Definition at line 20 of file ConstCpPoly.cpp.

ConstCpPoly ( int  n,
doublereal  tlow,
doublereal  thigh,
doublereal  pref,
const doublereal *  coeffs 
)

Constructor used in templated instantiations.

Parameters:
n Species index
tlow Minimum temperature
thigh Maximum temperature
pref reference pressure (Pa).
coeffs Vector of coefficients used to set the parameters for the standard state for species n. There are 4 coefficients for the ConstCpPoly parameterization.

  • c[0] = $ T_0 $(Kelvin)
  • c[1] = $ H_k^o(T_0, p_{ref}) $ (J/kmol)
  • c[2] = $ S_k^o(T_0, p_{ref}) $ (J/kmol K)
  • c[3] = $ {Cp}_k^o(T_0, p_{ref}) $ (J(kmol K)

Definition at line 32 of file ConstCpPoly.cpp.

ConstCpPoly ( const ConstCpPoly b  ) 

copy constructor

Definition at line 46 of file ConstCpPoly.cpp.

~ConstCpPoly (  )  [virtual]

Destructor.

Definition at line 74 of file ConstCpPoly.cpp.


Member Function Documentation

SpeciesThermoInterpType * duplMyselfAsSpeciesThermoInterpType (  )  const [virtual]

Duplicator.

Implements SpeciesThermoInterpType.

Definition at line 77 of file ConstCpPoly.cpp.

doublereal maxTemp (  )  const [virtual]

Returns the maximum temperature that the thermo parameterization is valid.

Implements SpeciesThermoInterpType.

Definition at line 85 of file ConstCpPoly.cpp.

References ConstCpPoly::m_lowT.

doublereal minTemp (  )  const [virtual]

Returns the minimum temperature that the thermo parameterization is valid.

Implements SpeciesThermoInterpType.

Definition at line 82 of file ConstCpPoly.cpp.

void modifyParameters ( doublereal *  coeffs  )  [virtual]

Modify parameters for the standard state.

Parameters:
coeffs Vector of coefficients used to set the parameters for the standard state.

Reimplemented from SpeciesThermoInterpType.

Definition at line 130 of file ConstCpPoly.cpp.

ConstCpPoly & operator= ( const ConstCpPoly b  ) 

Assignment operator.

Definition at line 59 of file ConstCpPoly.cpp.

doublereal refPressure (  )  const [virtual]

Returns the reference pressure (Pa).

Implements SpeciesThermoInterpType.

Definition at line 88 of file ConstCpPoly.cpp.

References ConstCpPoly::m_highT.

void reportParameters ( int &  n,
int &  type,
doublereal &  tlow,
doublereal &  thigh,
doublereal &  pref,
doublereal *const   coeffs 
) const [virtual]

This utility function reports back the type of parameterization and all of the parameters for the species, index.

All parameters are output variables

Parameters:
n Species index
type Integer type of the standard type
tlow output - Minimum temperature
thigh output - Maximum temperature
pref output - reference pressure (Pa).
coeffs Vector of coefficients used to set the parameters for the standard state.

Implements SpeciesThermoInterpType.

Definition at line 115 of file ConstCpPoly.cpp.

virtual int reportType (  )  const [inline, virtual]

Returns an integer representing the type of parameterization.

Implements SpeciesThermoInterpType.

Definition at line 102 of file ConstCpPoly.h.

References CONSTANT_CP.

virtual int speciesIndex (  )  const [inline, virtual]

Returns an integer representing the species index.

Implements SpeciesThermoInterpType.

Definition at line 105 of file ConstCpPoly.h.

References ConstCpPoly::m_index.

void updateProperties ( const doublereal *  tt,
doublereal *  cp_R,
doublereal *  h_RT,
doublereal *  s_R 
) const [virtual]

Update the properties for this species, given a temperature polynomial.

This method is called with a pointer to an array containing the functions of temperature needed by this parameterization, and three pointers to arrays where the computed property values should be written. This method updates only one value in each array.

Form and Length of the temperature polynomial:

  • m_t[0] = tt;
Parameters:
tt Vector of temperature polynomials
cp_R Vector of Dimensionless heat capacities. (length m_kk).
h_RT Vector of Dimensionless enthalpies. (length m_kk).
s_R Vector of Dimensionless entropies. (length m_kk).

Reimplemented from SpeciesThermoInterpType.

Definition at line 92 of file ConstCpPoly.cpp.

void updatePropertiesTemp ( const doublereal  temp,
doublereal *  cp_R,
doublereal *  h_RT,
doublereal *  s_R 
) const [virtual]

Compute the reference-state property of one species.

Given temperature T in K, this method updates the values of the non-dimensional heat capacity at constant pressure, enthalpy, and entropy, at the reference pressure, Pref of one of the species. The species index is used to reference into the cp_R, h_RT, and s_R arrays.

Parameters:
temp Temperature (Kelvin)
cp_R Vector of Dimensionless heat capacities. (length m_kk).
h_RT Vector of Dimensionless enthalpies. (length m_kk).
s_R Vector of Dimensionless entropies. (length m_kk).

Implements SpeciesThermoInterpType.

Definition at line 104 of file ConstCpPoly.cpp.


Member Data Documentation

doublereal m_cp0_R [protected]

Dimensionless value of the heat capacity.

Definition at line 185 of file ConstCpPoly.h.

doublereal m_h0_R [protected]

dimensionless value of the enthaply at t0

Definition at line 187 of file ConstCpPoly.h.

doublereal m_highT [protected]

Maximum temperature for which the parameterization is valid (Kelvin).

Definition at line 195 of file ConstCpPoly.h.

Referenced by ConstCpPoly::refPressure().

int m_index [protected]

Species Index.

Definition at line 199 of file ConstCpPoly.h.

Referenced by ConstCpPoly::speciesIndex().

doublereal m_logt0 [protected]

log of the t0 value

Definition at line 191 of file ConstCpPoly.h.

doublereal m_lowT [protected]

Minimum temperature for which the parameterization is valid (Kelvin).

Definition at line 193 of file ConstCpPoly.h.

Referenced by ConstCpPoly::maxTemp().

doublereal m_Pref [protected]

Reference pressure (Pa).

Definition at line 197 of file ConstCpPoly.h.

doublereal m_s0_R [protected]

Dimensionless value of the entropy at t0.

Definition at line 189 of file ConstCpPoly.h.

doublereal m_t0 [protected]

Base temperature.

Definition at line 183 of file ConstCpPoly.h.


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.3