Cantera
2.0
|
Simple mass fraction weighting of transport properties. More...
#include <LiquidTranInteraction.h>
Public Member Functions | |
LTI_MassFracs (TransportPropertyType tp_ind=TP_UNKNOWN) | |
virtual | ~LTI_MassFracs () |
Copy constructor. | |
doublereal | getMixTransProp (doublereal *valueSpecies, doublereal *weightSpecies=0) |
Return the mixture transport property value. | |
doublereal | getMixTransProp (std::vector< LTPspecies * > LTPptrs) |
void | getMatrixTransProp (DenseMatrix &mat, doublereal *speciesValues=0) |
Return the matrix of binary interaction parameters. | |
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) |
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. | |
Simple mass fraction weighting of transport properties.
This model weights the transport property by the mass fractions. The overall formula for the mixture viscosity is
\[ \eta_{mix} = \sum_i Y_i \eta_i + \sum_i \sum_j Y_i Y_j A_{i,j} \]
.
Definition at line 288 of file LiquidTranInteraction.h.
|
inlinevirtual |
|
virtual |
Return the mixture transport property value.
Takes the separate species transport properties as input (this method does not know what transport property it is at this point.
Reimplemented from LiquidTranInteraction.
Definition at line 403 of file LiquidTranInteraction.cpp.
References Phase::getMassFractions(), LiquidTranInteraction::m_Aij, LiquidTranInteraction::m_Bij, LiquidTranInteraction::m_thermo, Phase::nSpecies(), and Phase::temperature().
|
inlinevirtual |
Return the matrix of binary interaction parameters.
Takes the proper mixing rule for the binary interaction parameters and calculates them: Not implemented for this mixing rule.
Reimplemented from LiquidTranInteraction.
Definition at line 321 of file LiquidTranInteraction.h.
References LiquidTranInteraction::m_Aij.
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().
|
protectedinherited |
Model for species interaction effects Takes enum LiquidTranMixingModel.
Definition at line 159 of file LiquidTranInteraction.h.
Referenced by LiquidTranInteraction::operator=().
|
protectedinherited |
enum indicating what property this is (i.e viscosity)
Definition at line 162 of file LiquidTranInteraction.h.
Referenced by LiquidTranInteraction::operator=().
|
protectedinherited |
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=().
|
protectedinherited |
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().
|
protectedinherited |
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().
|
protectedinherited |
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=().
|
protectedinherited |
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().
|
protectedinherited |
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().
|
protectedinherited |
Matrix of interactions.
Definition at line 189 of file LiquidTranInteraction.h.
Referenced by LTI_Pairwise_Interaction::getMatrixTransProp(), LiquidTranInteraction::init(), and LiquidTranInteraction::operator=().