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

Class LTPspecies_Arrhenius holds transport parameters for a specific liquid-phase species (LTPspecies) when the transport property is expressed in Arrhenius form. More...

#include <LTPspecies.h>

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

Public Member Functions

 LTPspecies_Arrhenius (const XML_Node &propNode, const std::string name, TransportPropertyType tp_ind, const thermo_t *thermo)
 Construct an LTPspecies object for a liquid transport property expressed in extended Arrhenius form. More...
 
 LTPspecies_Arrhenius (const LTPspecies_Arrhenius &right)
 Copy Constructor. More...
 
LTPspecies_Arrheniusoperator= (const LTPspecies_Arrhenius &right)
 Assignment operator. More...
 
virtual LTPspeciesduplMyselfAsLTPspecies () const
 Duplicates the current object given the parent class reference. More...
 
doublereal getSpeciesTransProp ()
 Return the standard state species value for this transport property evaluated from the Arrhenius expression. More...
 
- Public Member Functions inherited from LTPspecies
 LTPspecies (const XML_Node *const propNode=0, const std::string name="-", TransportPropertyType tp_ind=TP_UNKNOWN, const thermo_t *thermo=0)
 Construct an LTPspecies object for a liquid transport property. More...
 
 LTPspecies (const LTPspecies &right)
 Copy Constructor. More...
 
LTPspeciesoperator= (const LTPspecies &right)
 Assignment operator. More...
 
virtual ~LTPspecies ()
 Destructor. More...
 
virtual bool checkPositive () const
 Check to see if the property evaluation will be positive. More...
 
doublereal getMixWeight () const
 Return the weight mixture. More...
 

Protected Attributes

doublereal m_temp
 temperature from thermo object More...
 
doublereal m_logt
 logarithm of current temperature More...
 
doublereal m_prop
 most recent evaluation of transport property More...
 
doublereal m_logProp
 logarithm of most recent evaluation of transport property More...
 
- Protected Attributes inherited from LTPspecies
std::string m_speciesName
 Species Name for the property that is being described. More...
 
LTPTemperatureDependenceType m_model
 Model type for the temperature dependence. More...
 
TransportPropertyType m_property
 enum indicating which property this is (i.e viscosity) More...
 
vector_fp m_coeffs
 Model temperature-dependence ceofficients. More...
 
const thermo_tm_thermo
 Pointer to a const thermo object to get current temperature. More...
 
doublereal m_mixWeight
 Weighting used for mixing. More...
 

Detailed Description

Class LTPspecies_Arrhenius holds transport parameters for a specific liquid-phase species (LTPspecies) when the transport property is expressed in Arrhenius form.

Used for standard state species properties with equations of the form

\[ x = A T^b \exp( - E / RT ) \]

where A, b, and E are passed in the XML input file.

As an example of the input required for LTPspecies_Arrhenius consider the following XML fragment

*    <species>
*      <!-- thermodynamic properties -->
*      <transport>
*        <viscosity model="Arrhenius">
*           <!-- Janz, JPCRD, 17, supplement 2, 1988 -->
*           <A>6.578e-5</A>
*           <b>0.0</b>
*           <E units="J/kmol">23788.e3</E>
*        </viscosity>
*        <!-- other transport properties -->
*      </transport>
*    </species>
* 

Definition at line 271 of file LTPspecies.h.

Constructor & Destructor Documentation

LTPspecies_Arrhenius ( const XML_Node propNode,
const std::string  name,
TransportPropertyType  tp_ind,
const thermo_t thermo 
)

Construct an LTPspecies object for a liquid transport property expressed in extended Arrhenius form.

The transport property is constructed from the XML node, <propNode>, that is a child of the <transport> node and specifies a type of transport property (like viscosity)

Parameters
propNodeReference to the XML node that contains the property information.This class is assumed to be parameterized by reading XML_Node information.
nameString containing the species name
tp_indenum TransportPropertyType containing the property id that this object is creating a parameterization for (e.g., viscosity)
thermoconst pointer to the ThermoPhase object, which is used to find the temperature.

Definition at line 150 of file LTPspecies.cpp.

References Cantera::getArrhenius(), LTPspecies::m_coeffs, LTPspecies::m_model, LTPspecies_Arrhenius::m_prop, LTPspecies_Arrhenius::m_temp, and XML_Node::name().

Referenced by LTPspecies_Arrhenius::duplMyselfAsLTPspecies().

Copy Constructor.

Parameters
rightObject to be copied

Definition at line 170 of file LTPspecies.cpp.

Member Function Documentation

LTPspecies_Arrhenius & operator= ( const LTPspecies_Arrhenius right)

Assignment operator.

Parameters
rightObject to be copied
Returns
returns a reference to the current object

Definition at line 175 of file LTPspecies.cpp.

References LTPspecies_Arrhenius::m_logProp, LTPspecies_Arrhenius::m_logt, LTPspecies_Arrhenius::m_prop, LTPspecies_Arrhenius::m_temp, and LTPspecies::operator=().

LTPspecies * duplMyselfAsLTPspecies ( ) const
virtual

Duplicates the current object given the parent class reference.

Returns
returns a malloced duplicate to the current object using the base class pointer

Reimplemented from LTPspecies.

Definition at line 187 of file LTPspecies.cpp.

References LTPspecies_Arrhenius::LTPspecies_Arrhenius().

doublereal getSpeciesTransProp ( )
virtual

Return the standard state species value for this transport property evaluated from the Arrhenius expression.

In general the Arrhenius expression is

\[ \mu = A T^n \exp( - E / R T ). \]

Note that for viscosity, the convention is such that a positive activation energy corresponds to the typical case of a positive argument to the exponential so that the Arrhenius expression is

\[ \mu = A T^n \exp( + E / R T ). \]

Any temperature and composition dependence will be adjusted internally according to the information provided.

Reimplemented from LTPspecies.

Definition at line 192 of file LTPspecies.cpp.

References LTPspecies::m_coeffs, LTPspecies_Arrhenius::m_logProp, LTPspecies_Arrhenius::m_logt, LTPspecies_Arrhenius::m_prop, LTPspecies::m_property, LTPspecies_Arrhenius::m_temp, LTPspecies::m_thermo, and Phase::temperature().

Member Data Documentation

doublereal m_temp
protected
doublereal m_logt
protected

logarithm of current temperature

Definition at line 339 of file LTPspecies.h.

Referenced by LTPspecies_Arrhenius::getSpeciesTransProp(), and LTPspecies_Arrhenius::operator=().

doublereal m_prop
protected

most recent evaluation of transport property

Definition at line 342 of file LTPspecies.h.

Referenced by LTPspecies_Arrhenius::getSpeciesTransProp(), LTPspecies_Arrhenius::LTPspecies_Arrhenius(), and LTPspecies_Arrhenius::operator=().

doublereal m_logProp
protected

logarithm of most recent evaluation of transport property

Definition at line 345 of file LTPspecies.h.

Referenced by LTPspecies_Arrhenius::getSpeciesTransProp(), and LTPspecies_Arrhenius::operator=().


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