Cantera  2.0
Public Member Functions | Protected Attributes | List of all members
LiquidTranInteraction Class Reference

Base class to handle transport property evaluation in a mixture. More...

#include <LiquidTranInteraction.h>

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

Public Member Functions

 LiquidTranInteraction (TransportPropertyType tp_ind=TP_UNKNOWN)
 Constructor.
 
 LiquidTranInteraction (const LiquidTranInteraction &right)
 Copy constructor.
 
LiquidTranInteractionoperator= (const LiquidTranInteraction &right)
 Assignment operator.
 
virtual ~LiquidTranInteraction ()
 destructor
 
virtual void init (const XML_Node &compModelNode=0, thermo_t *thermo=0)
 initialize LiquidTranInteraction objects with thermo and XML node
 
virtual void setParameters (LiquidTransportParams &trParam)
 
virtual doublereal getMixTransProp (doublereal *speciesValues, doublereal *weightSpecies=0)
 Return the mixture transport property value.
 
virtual doublereal getMixTransProp (std::vector< LTPspecies * > LTPptrs)
 
virtual void getMatrixTransProp (DenseMatrix &mat, doublereal *speciesValues=0)
 

Protected Attributes

LiquidTranMixingModel m_model
 Model for species interaction effects Takes enum LiquidTranMixingModel.
 
TransportPropertyType m_property
 enum indicating what property this is (i.e viscosity)
 
thermo_tm_thermo
 pointer to thermo object to get current temperature
 
std::vector< DenseMatrix * > m_Aij
 Matrix of interaction coefficients for polynomial in molefraction*weight of speciesA (no temperature dependence, dimensionless)
 
std::vector< DenseMatrix * > m_Bij
 Matrix of interaction coefficients for polynomial in molefraction*weight of speciesA (linear temperature dependence, units 1/K)
 
DenseMatrix m_Eij
 Matrix of interactions (in energy units, 1/RT temperature dependence)
 
std::vector< DenseMatrix * > m_Hij
 Matrix of interaction coefficients for polynomial in molefraction*weight of speciesA (in energy units, 1/RT temperature dependence)
 
std::vector< DenseMatrix * > m_Sij
 Matrix of interaction coefficients for polynomial in molefraction*weight of speciesA (in entropy units, divided by R)
 
DenseMatrix m_Dij
 Matrix of interactions.
 

Detailed Description

Base class to handle transport property evaluation in a mixture.

In a mixture, the mixture transport properties will generally depend on the contributions of each of the pure species transport properties. Many composition dependencies are possible. This class, LiquidTranInteraction, is designed to be a base class for the implementation of various models for the mixing of pure species transport properties.

There are two very broad types of transport properties to consider. First, there are properties for which a mixture value can be obtained through some mixing rule. These are obtained using the method getMixTransProp(). Viscosity is typical of this. Second there are properties for which a matrix of properties may

Parameters
tp_indexist. This matrix of properties is obtained from the method getMatrixTransProp(). Diffusion coefficients are of this type. Subclasses should implement the appropriate one or both of these methods.

Definition at line 110 of file LiquidTranInteraction.h.

Constructor & Destructor Documentation

LiquidTranInteraction ( TransportPropertyType  tp_ind = TP_UNKNOWN)

Constructor.

Parameters
tp_indIndex indicating transport property type (i.e. viscosity)

Definition at line 50 of file LiquidTranInteraction.cpp.

Copy constructor.

Definition at line 221 of file LiquidTranInteraction.cpp.

~LiquidTranInteraction ( )
virtual

Member Function Documentation

LiquidTranInteraction & operator= ( const LiquidTranInteraction right)
void init ( const XML_Node compModelNode = 0,
thermo_t thermo = 0 
)
virtual
virtual doublereal getMixTransProp ( doublereal *  speciesValues,
doublereal *  weightSpecies = 0 
)
inlinevirtual

Member Data Documentation

LiquidTranMixingModel m_model
protected

Model for species interaction effects Takes enum LiquidTranMixingModel.

Definition at line 159 of file LiquidTranInteraction.h.

Referenced by LiquidTranInteraction::operator=().

TransportPropertyType m_property
protected

enum indicating what property this is (i.e viscosity)

Definition at line 162 of file LiquidTranInteraction.h.

Referenced by LiquidTranInteraction::operator=().

thermo_t* m_thermo
protected
std::vector<DenseMatrix*> m_Aij
protected
std::vector<DenseMatrix*> m_Bij
protected

Matrix of interaction coefficients for polynomial in molefraction*weight of speciesA (linear temperature dependence, units 1/K)

Definition at line 175 of file LiquidTranInteraction.h.

Referenced by LTI_MoleFracs::getMixTransProp(), LTI_MassFracs::getMixTransProp(), LTI_MoleFracs_ExpT::getMixTransProp(), LiquidTranInteraction::init(), LiquidTranInteraction::operator=(), and LiquidTranInteraction::~LiquidTranInteraction().

DenseMatrix m_Eij
protected

Matrix of interactions (in energy units, 1/RT temperature dependence)

Definition at line 178 of file LiquidTranInteraction.h.

Referenced by LTI_Log_MoleFracs::getMatrixTransProp(), LTI_Pairwise_Interaction::getMatrixTransProp(), LiquidTranInteraction::init(), and LiquidTranInteraction::operator=().

std::vector<DenseMatrix*> m_Hij
protected

Matrix of interaction coefficients for polynomial in molefraction*weight of speciesA (in energy units, 1/RT temperature dependence)

Definition at line 182 of file LiquidTranInteraction.h.

Referenced by LTI_Log_MoleFracs::getMixTransProp(), LiquidTranInteraction::init(), LiquidTranInteraction::operator=(), and LiquidTranInteraction::~LiquidTranInteraction().

std::vector<DenseMatrix*> m_Sij
protected

Matrix of interaction coefficients for polynomial in molefraction*weight of speciesA (in entropy units, divided by R)

Definition at line 186 of file LiquidTranInteraction.h.

Referenced by LTI_Log_MoleFracs::getMixTransProp(), LiquidTranInteraction::init(), LiquidTranInteraction::operator=(), and LiquidTranInteraction::~LiquidTranInteraction().

DenseMatrix m_Dij
protected

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