Cantera
2.0
|
Base class to handle transport property evaluation in a mixture. More...
#include <LiquidTranInteraction.h>
Public Member Functions | |
LiquidTranInteraction (TransportPropertyType tp_ind=TP_UNKNOWN) | |
Constructor. | |
LiquidTranInteraction (const LiquidTranInteraction &right) | |
Copy constructor. | |
LiquidTranInteraction & | operator= (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_t * | m_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. | |
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
tp_ind | exist. 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.
LiquidTranInteraction | ( | TransportPropertyType | tp_ind = TP_UNKNOWN | ) |
Constructor.
tp_ind | Index indicating transport property type (i.e. viscosity) |
Definition at line 50 of file LiquidTranInteraction.cpp.
LiquidTranInteraction | ( | const LiquidTranInteraction & | right | ) |
Copy constructor.
Definition at line 221 of file LiquidTranInteraction.cpp.
|
virtual |
destructor
Definition at line 56 of file LiquidTranInteraction.cpp.
References LiquidTranInteraction::m_Aij, LiquidTranInteraction::m_Bij, LiquidTranInteraction::m_Hij, and LiquidTranInteraction::m_Sij.
LiquidTranInteraction & operator= | ( | const LiquidTranInteraction & | right | ) |
Assignment operator.
Definition at line 227 of file LiquidTranInteraction.cpp.
References LiquidTranInteraction::m_Aij, LiquidTranInteraction::m_Bij, LiquidTranInteraction::m_Dij, LiquidTranInteraction::m_Eij, LiquidTranInteraction::m_Hij, LiquidTranInteraction::m_model, LiquidTranInteraction::m_property, LiquidTranInteraction::m_Sij, and LiquidTranInteraction::m_thermo.
initialize LiquidTranInteraction objects with thermo and XML node
compModelNode | <compositionDependence>XML node |
thermo | Pointer to thermo object |
Definition at line 86 of file LiquidTranInteraction.cpp.
References XML_Node::attrib(), XML_Node::child(), Cantera::GasConstant, ctml::getFloat(), ctml::getFloatArray(), XML_Node::hasChild(), Cantera::lowercase(), LiquidTranInteraction::m_Aij, LiquidTranInteraction::m_Bij, LiquidTranInteraction::m_Dij, LiquidTranInteraction::m_Eij, LiquidTranInteraction::m_Hij, LiquidTranInteraction::m_Sij, LiquidTranInteraction::m_thermo, XML_Node::name(), XML_Node::nChildren(), Cantera::npos, Phase::nSpecies(), DenseMatrix::resize(), and Phase::speciesIndex().
Referenced by TransportFactory::newLTI().
|
inlinevirtual |
Return the mixture transport property value.
(Must be implemented in subclasses.)
Reimplemented in LTI_MoleFracs_ExpT, LTI_StefanMaxwell_PPN, LTI_Pairwise_Interaction, LTI_Log_MoleFracs, LTI_MassFracs, and LTI_MoleFracs.
Definition at line 143 of file LiquidTranInteraction.h.
Referenced by LTI_StefanMaxwell_PPN::getMatrixTransProp(), LiquidTransport::ionConductivity(), LiquidTransport::thermalConductivity(), and LiquidTransport::viscosity().
|
protected |
Model for species interaction effects Takes enum LiquidTranMixingModel.
Definition at line 159 of file LiquidTranInteraction.h.
Referenced by LiquidTranInteraction::operator=().
|
protected |
enum indicating what property this is (i.e viscosity)
Definition at line 162 of file LiquidTranInteraction.h.
Referenced by LiquidTranInteraction::operator=().
|
protected |
pointer to thermo object to get current temperature
Definition at line 165 of file LiquidTranInteraction.h.
Referenced by LTI_Pairwise_Interaction::getMatrixTransProp(), LTI_StefanMaxwell_PPN::getMatrixTransProp(), LTI_MoleFracs::getMixTransProp(), LTI_MassFracs::getMixTransProp(), LTI_Log_MoleFracs::getMixTransProp(), LTI_Pairwise_Interaction::getMixTransProp(), LTI_StefanMaxwell_PPN::getMixTransProp(), LTI_MoleFracs_ExpT::getMixTransProp(), LiquidTranInteraction::init(), and LiquidTranInteraction::operator=().
|
protected |
Matrix of interaction coefficients for polynomial in molefraction*weight of speciesA (no temperature dependence, dimensionless)
Definition at line 171 of file LiquidTranInteraction.h.
Referenced by LTI_MoleFracs::getMatrixTransProp(), LTI_MassFracs::getMatrixTransProp(), LTI_MoleFracs_ExpT::getMatrixTransProp(), LTI_MoleFracs::getMixTransProp(), LTI_MassFracs::getMixTransProp(), LTI_MoleFracs_ExpT::getMixTransProp(), LiquidTranInteraction::init(), LiquidTranInteraction::operator=(), and LiquidTranInteraction::~LiquidTranInteraction().
|
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().
|
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=().
|
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().
|
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().
|
protected |
Matrix of interactions.
Definition at line 189 of file LiquidTranInteraction.h.
Referenced by LTI_Pairwise_Interaction::getMatrixTransProp(), LiquidTranInteraction::init(), and LiquidTranInteraction::operator=().