14 class LTPmodelError :
public CanteraError
17 explicit LTPmodelError(
const std::string& msg) :
18 CanteraError(
"LTPspecies",
"error parsing transport data: " + msg +
"\n") {
22 LiquidTransportParams::LiquidTransportParams() :
30 speciesDiffusivity(0),
33 model_viscosity(LTI_MODEL_NOTSET),
34 model_speciesDiffusivity(LTI_MODEL_NOTSET),
35 model_hydroradius(LTI_MODEL_NOTSET)
39 LiquidTransportParams::~LiquidTransportParams()
49 LiquidTransportParams::LiquidTransportParams(
const LiquidTransportParams& right) :
54 speciesDiffusivity(0),
57 model_viscosity(LTI_MODEL_NOTSET),
58 model_speciesDiffusivity(LTI_MODEL_NOTSET),
59 model_hydroradius(LTI_MODEL_NOTSET)
64 LiquidTransportParams& LiquidTransportParams::operator=(
const LiquidTransportParams& right)
73 if (right.viscosity) {
74 viscosity =
new LiquidTranInteraction(*(right.viscosity));
77 if (right.ionConductivity) {
80 deepStdVectorPointerCopy<LiquidTranInteraction>(right.mobilityRatio,
mobilityRatio);
81 deepStdVectorPointerCopy<LiquidTranInteraction>(right.selfDiffusion,
selfDiffusion);
84 if (right.thermalCond) {
85 thermalCond =
new LiquidTranInteraction(*(right.thermalCond));
88 if (right.speciesDiffusivity) {
93 if (right.electCond) {
94 electCond =
new LiquidTranInteraction(*(right.electCond));
97 if (right.hydroRadius) {
98 hydroRadius =
new LiquidTranInteraction(*(right.hydroRadius));
102 deepStdVectorPointerCopy<LiquidTranMixingModel>(right.model_mobilityRatio,
model_mobilityRatio);
103 deepStdVectorPointerCopy<LiquidTranMixingModel>(right.model_selfDiffusion,
model_selfDiffusion);
110 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 each species' ...
LiquidTranMixingModel model_hydroradius
Model for species interaction effects for hydrodynamic radius Takes enum LiquidTranMixingModel.
Header for intermediate ThermoPhase object for phases which employ gibbs excess free energy based for...
Header for intermediate ThermoPhase object for phases which consist of ions whose thermodynamics is c...
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.
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...