10 #ifndef CT_LIQUIDTRANINTERACTION_H 11 #define CT_LIQUIDTRANINTERACTION_H 78 LTI_MODEL_LOG_MOLEFRACS,
79 LTI_MODEL_PAIRWISE_INTERACTION,
80 LTI_MODEL_STEFANMAXWELL_PPN,
81 LTI_MODEL_STOKES_EINSTEIN,
82 LTI_MODEL_MOLEFRACS_EXPT,
127 virtual doublereal
getMixTransProp(doublereal* speciesValues, doublereal* weightSpecies = 0) {
135 virtual void getMatrixTransProp(DenseMatrix& mat, doublereal* speciesValues = 0) {
136 throw NotImplementedError(
"LiquidTranInteraction::getMixTransProp");
182 doublereal getMixTransProp(doublereal* valueSpecies, doublereal* weightSpecies = 0);
183 doublereal getMixTransProp(std::vector<LTPspecies*> LTPptrs);
190 void getMatrixTransProp(
DenseMatrix& mat, doublereal* speciesValues = 0);
215 doublereal
getMixTransProp(doublereal* valueSpecies, doublereal* weightSpecies = 0);
251 doublereal
getMixTransProp(doublereal* valueSpecies, doublereal* weightSpecies = 0);
308 m_model = LTI_MODEL_LOG_MOLEFRACS;
316 doublereal
getMixTransProp(doublereal* valueSpecies, doublereal* weightSpecies = 0);
355 m_model = LTI_MODEL_PAIRWISE_INTERACTION;
365 doublereal
getMixTransProp(doublereal* valueSpecies, doublereal* weightSpecies = 0);
376 std::vector<LTPspecies*> m_diagonals;
453 m_model = LTI_MODEL_STEFANMAXWELL_PPN;
463 doublereal
getMixTransProp(doublereal* valueSpecies, doublereal* weightSpecies = 0);
474 doublereal m_ionCondMix;
476 std::vector<LTPspecies*> m_ionCondSpecies;
477 typedef std::vector<LTPspecies*> LTPvector;
479 std::vector<LiquidTranInteraction*> m_mobRatMixModel;
480 std::vector<LTPvector> m_mobRatSpecies;
482 std::vector<LiquidTranInteraction*> m_selfDiffMixModel;
484 std::vector<LTPvector> m_selfDiffSpecies;
493 m_model = LTI_MODEL_STOKES_EINSTEIN;
496 void setParameters(LiquidTransportParams& trParam);
504 doublereal getMixTransProp(doublereal* valueSpecies, doublereal* weightSpecies = 0);
505 doublereal getMixTransProp(std::vector<LTPspecies*> LTPptrs);
512 void getMatrixTransProp(DenseMatrix& mat, doublereal* speciesValues = 0);
515 std::vector<LTPspecies*> m_viscosity;
516 std::vector<LTPspecies*> m_hydroRadius;
532 m_model = LTI_MODEL_MOLEFRACS_EXPT;
540 doublereal
getMixTransProp(doublereal* valueSpecies, doublereal* weightSpecies = 0);
thermo_t * m_thermo
pointer to thermo object to get current temperature
doublereal getMixTransProp(doublereal *valueSpecies, doublereal *weightSpecies=0)
Return the mixture transport property value.
TransportPropertyType
Enumeration of the types of transport properties that can be handled by the variables in the various ...
LiquidTranMixingModel m_model
Model for species interaction effects. Takes enum LiquidTranMixingModel.
std::vector< DenseMatrix * > m_Hij
Matrix of interaction coefficients for polynomial in molefraction*weight of speciesA (in energy units...
An error indicating that an unimplemented function has been called.
Simple mass fraction weighting of transport properties.
doublereal getMixTransProp(doublereal *valueSpecies, doublereal *weightSpecies=0)
Return the mixture transport property value.
std::vector< DenseMatrix * > m_Bij
Matrix of interaction coefficients for polynomial in molefraction*weight of speciesA (linear temperat...
std::vector< DenseMatrix * > m_Aij
Matrix of interaction coefficients for polynomial in molefraction*weight of speciesA (no temperature ...
Class XML_Node is a tree-based representation of the contents of an XML file.
Transport properties that act like pairwise interactions as in binary diffusion coefficients.
TransportPropertyType m_property
enum indicating what property this is (i.e viscosity)
void getMatrixTransProp(DenseMatrix &mat, doublereal *speciesValues=0)
Return the matrix of binary interaction parameters.
virtual doublereal getMixTransProp(doublereal *speciesValues, doublereal *weightSpecies=0)
Return the mixture transport property value.
void getMatrixTransProp(DenseMatrix &mat, doublereal *speciesValues=0)
Return the matrix of binary interaction parameters.
void getMatrixTransProp(DenseMatrix &mat, doublereal *speciesValues=0)
Return the matrix of binary interaction parameters.
void getMatrixTransProp(DenseMatrix &mat, doublereal *speciesValues=0)
Return the matrix of binary interaction parameters.
Header file defining class LiquidTransportData.
Base class for a phase with thermodynamic properties.
Class LiquidTransportParams holds transport model parameters relevant to transport in mixtures...
void getMatrixTransProp(DenseMatrix &mat, doublereal *speciesValues=0)
Return the matrix of binary interaction parameters.
Mixing rule using logarithms of the mole fractions.
DenseMatrix m_Dij
Matrix of interactions.
Classes providing support for XML data files.
LiquidTranMixingModel
Composition dependence type for liquid mixture transport properties.
LiquidTranInteraction(TransportPropertyType tp_ind=TP_UNKNOWN)
Constructor.
std::vector< DenseMatrix * > m_Sij
Matrix of interaction coefficients for polynomial in molefraction*weight of speciesA (in entropy unit...
Simple mole fraction weighting of transport properties.
void getMatrixTransProp(DenseMatrix &mat, doublereal *speciesValues=0)
Return the matrix of binary interaction parameters.
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
doublereal getMixTransProp(doublereal *valueSpecies, doublereal *weightSpecies=0)
Return the mixture transport property value.
doublereal getMixTransProp(doublereal *valueSpecies, doublereal *weightSpecies=0)
Return the mixture transport property value.
Stefan Maxwell Diffusion Coefficients can be solved for given ion conductivity, mobility ratios...
Simple mole fraction weighting of transport properties.
doublereal getMixTransProp(doublereal *valueSpecies, doublereal *weightSpecies=0)
Return the mixture transport property value.
virtual void init(const XML_Node &compModelNode=XML_Node(), thermo_t *thermo=0)
initialize LiquidTranInteraction objects with thermo and XML node
Namespace for the Cantera kernel.
doublereal getMixTransProp(doublereal *valueSpecies, doublereal *weightSpecies=0)
Return the mixture transport property value.
DenseMatrix m_Eij
Matrix of interactions (in energy units, 1/RT temperature dependence)
Base class to handle transport property evaluation in a mixture.
Class that holds the data that is read in from the XML file, and which is used for processing of the ...
A class for full (non-sparse) matrices with Fortran-compatible data storage, which adds matrix operat...