12 class LTPmodelError :
public CanteraError
15 explicit LTPmodelError(
const std::string& msg) :
16 CanteraError(
"LTPspecies",
"error parsing transport data: " + msg +
"\n") {
20 LiquidTransportParams::LiquidTransportParams() :
24 speciesDiffusivity(0),
27 model_viscosity(LTI_MODEL_NOTSET),
28 model_speciesDiffusivity(LTI_MODEL_NOTSET),
29 model_hydroradius(LTI_MODEL_NOTSET),
30 compositionDepTypeDefault_(LTI_MODEL_NOTSET)
34 LiquidTransportParams::~LiquidTransportParams()
44 LiquidTransportParams::LiquidTransportParams(
const LiquidTransportParams& right) :
47 speciesDiffusivity(0),
50 model_viscosity(LTI_MODEL_NOTSET),
51 model_speciesDiffusivity(LTI_MODEL_NOTSET),
52 model_hydroradius(LTI_MODEL_NOTSET),
53 compositionDepTypeDefault_(LTI_MODEL_NOTSET)
58 LiquidTransportParams& LiquidTransportParams::operator=(
const LiquidTransportParams& right)
67 if (right.viscosity) {
68 viscosity =
new LiquidTranInteraction(*(right.viscosity));
71 if (right.ionConductivity) {
74 deepStdVectorPointerCopy<LiquidTranInteraction>(right.mobilityRatio,
mobilityRatio);
75 deepStdVectorPointerCopy<LiquidTranInteraction>(right.selfDiffusion,
selfDiffusion);
78 if (right.thermalCond) {
79 thermalCond =
new LiquidTranInteraction(*(right.thermalCond));
82 if (right.speciesDiffusivity) {
87 if (right.electCond) {
88 electCond =
new LiquidTranInteraction(*(right.electCond));
91 if (right.hydroRadius) {
92 hydroRadius =
new LiquidTranInteraction(*(right.hydroRadius));
96 deepStdVectorPointerCopy<LiquidTranMixingModel>(right.model_mobilityRatio,
model_mobilityRatio);
97 deepStdVectorPointerCopy<LiquidTranMixingModel>(right.model_selfDiffusion,
model_selfDiffusion);
105 throw CanteraError(
"LiquidTransportParams(const LiquidTransportParams &right)",
"not tested");
LiquidTranMixingModel model_ionConductivity
Model for species interaction effects for ionic conductivity Takes enum LiquidTranMixingModel.
DenseMatrix radius_Aij
Interaction associated with hydrodynamic radius.
std::vector< LiquidTranInteraction * > mobilityRatio
Vector of pointer to the LiquidTranInteraction object which handles the calculation of the mobility r...
LiquidTranMixingModel model_hydroradius
Model for species interaction effects for hydrodynamic radius Takes enum LiquidTranMixingModel.
LiquidTranInteraction * viscosity
Object that specifies the viscosity interaction for the mixture.
LiquidTranMixingModel model_speciesDiffusivity
Model for species interaction effects for mass diffusivity Takes enum LiquidTranMixingModel.
std::vector< LiquidTranInteraction * > selfDiffusion
Vector of pointer to the LiquidTranInteraction object which handles the calculation of each species' ...
Header file defining class LiquidTransportParams.
LiquidTranInteraction * ionConductivity
Object that specifes the ionic Conductivity of the mixture.
DenseMatrix thermalCond_Aij
Interaction associated with linear weighting of thermal conductivity.
LiquidTranMixingModel compositionDepTypeDefault_
Default composition dependence of the transport properties.
LiquidTranInteraction * speciesDiffusivity
Pointer to the LiquidTranInteraction object which handles the calculation of the species diffusivity ...
std::vector< Cantera::LiquidTransportData > LTData
Species transport parameters.
std::vector< LiquidTranMixingModel * > model_selfDiffusion
Model for species interaction effects for mobility ratio Takes enum LiquidTranMixingModel.
std::vector< LiquidTranMixingModel * > model_mobilityRatio
Model for species interaction effects for mobility ratio Takes enum LiquidTranMixingModel.
DenseMatrix diff_Dij
Interaction associated with linear weighting of thermal conductivity.
LiquidTranInteraction * hydroRadius
Pointer to the LiquidTranInteraction object which handles the calculation of the hydrodynamic radius ...
LiquidTranMixingModel model_viscosity
Model for species interaction effects for viscosity Takes enum LiquidTranMixingModel.
LiquidTranInteraction * thermalCond
Pointer to the LiquidTranInteraction object which handles the calculation of the mixture thermal cond...
LiquidTranInteraction * electCond
Pointer to the LiquidTranInteraction object which handles the calculation of the electrical conductiv...