10 #ifndef CT_LIQUIDTRANINTERACTION_H 11 #define CT_LIQUIDTRANINTERACTION_H 80 LTI_MODEL_LOG_MOLEFRACS,
81 LTI_MODEL_PAIRWISE_INTERACTION,
82 LTI_MODEL_STEFANMAXWELL_PPN,
83 LTI_MODEL_STOKES_EINSTEIN,
84 LTI_MODEL_MOLEFRACS_EXPT,
131 virtual doublereal
getMixTransProp(doublereal* speciesValues, doublereal* weightSpecies = 0) {
139 virtual void getMatrixTransProp(DenseMatrix& mat, doublereal* speciesValues = 0) {
140 throw NotImplementedError(
"LiquidTranInteraction::getMixTransProp");
186 doublereal getMixTransProp(doublereal* valueSpecies, doublereal* weightSpecies = 0);
187 doublereal getMixTransProp(std::vector<LTPspecies*> LTPptrs);
194 void getMatrixTransProp(
DenseMatrix& mat, doublereal* speciesValues = 0);
219 doublereal
getMixTransProp(doublereal* valueSpecies, doublereal* weightSpecies = 0);
255 doublereal
getMixTransProp(doublereal* valueSpecies, doublereal* weightSpecies = 0);
312 m_model = LTI_MODEL_LOG_MOLEFRACS;
320 doublereal
getMixTransProp(doublereal* valueSpecies, doublereal* weightSpecies = 0);
359 m_model = LTI_MODEL_PAIRWISE_INTERACTION;
369 doublereal
getMixTransProp(doublereal* valueSpecies, doublereal* weightSpecies = 0);
380 std::vector<LTPspecies*> m_diagonals;
457 m_model = LTI_MODEL_STEFANMAXWELL_PPN;
467 doublereal
getMixTransProp(doublereal* valueSpecies, doublereal* weightSpecies = 0);
478 doublereal m_ionCondMix;
480 std::vector<LTPspecies*> m_ionCondSpecies;
481 typedef std::vector<LTPspecies*> LTPvector;
483 std::vector<LiquidTranInteraction*> m_mobRatMixModel;
484 std::vector<LTPvector> m_mobRatSpecies;
486 std::vector<LiquidTranInteraction*> m_selfDiffMixModel;
488 std::vector<LTPvector> m_selfDiffSpecies;
497 m_model = LTI_MODEL_STOKES_EINSTEIN;
500 void setParameters(LiquidTransportParams& trParam);
508 doublereal getMixTransProp(doublereal* valueSpecies, doublereal* weightSpecies = 0);
509 doublereal getMixTransProp(std::vector<LTPspecies*> LTPptrs);
516 void getMatrixTransProp(DenseMatrix& mat, doublereal* speciesValues = 0);
519 std::vector<LTPspecies*> m_viscosity;
520 std::vector<LTPspecies*> m_hydroRadius;
536 m_model = LTI_MODEL_MOLEFRACS_EXPT;
544 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...