24 explicit LTPError(
const std::string& msg)
26 "error parsing transport data: "
39 "error parsing transport data: "
44 m_model(LTI_MODEL_NOTSET),
49 LiquidTranInteraction::~LiquidTranInteraction()
51 size_t kmax =
m_Aij.size();
52 for (
size_t k = 0; k < kmax; k++) {
56 for (
size_t k = 0; k < kmax; k++) {
60 for (
size_t k = 0; k < kmax; k++) {
64 for (
size_t k = 0; k < kmax; k++) {
94 for (
size_t iChild = 0; iChild < num; iChild++) {
97 if (nodeName !=
"interaction") {
98 throw CanteraError(
"TransportFactory::getLiquidInteractionsTransportData",
99 "expected <interaction> element and got <" + nodeName +
">");
101 speciesA = xmlChild.
attrib(
"speciesA");
102 speciesB = xmlChild.
attrib(
"speciesB");
104 if (iSpecies ==
npos) {
105 throw CanteraError(
"TransportFactory::getLiquidInteractionsTransportData",
106 "Unknown species " + speciesA);
109 if (jSpecies ==
npos) {
110 throw CanteraError(
"TransportFactory::getLiquidInteractionsTransportData",
111 "Unknown species " + speciesB);
119 m_Eij(iSpecies,jSpecies) =
getFloat(xmlChild,
"Eij",
"actEnergy");
121 m_Eij(jSpecies,iSpecies) =
m_Eij(iSpecies,jSpecies) ;
129 while (
m_Aij.size()<poly.size()) {
131 aTemp->
resize(nsp, nsp, 0.0);
132 m_Aij.push_back(aTemp);
134 for (
int i = 0; i < (int)poly.size(); i++) {
135 (*
m_Aij[i])(iSpecies,jSpecies) = poly[i];
144 while (
m_Bij.size() < poly.size()) {
146 bTemp->
resize(nsp, nsp, 0.0);
147 m_Bij.push_back(bTemp);
149 for (
size_t i=0; i<poly.size(); i++) {
150 (*
m_Bij[i])(iSpecies,jSpecies) = poly[i];
160 while (
m_Hij.size()<poly.size()) {
162 hTemp->
resize(nsp, nsp, 0.0);
163 m_Hij.push_back(hTemp);
165 for (
size_t i=0; i<poly.size(); i++) {
166 (*
m_Hij[i])(iSpecies,jSpecies) = poly[i];
177 while (
m_Sij.size()<poly.size()) {
179 sTemp->
resize(nsp, nsp, 0.0);
180 m_Sij.push_back(sTemp);
182 for (
size_t i=0; i<poly.size(); i++) {
183 (*
m_Sij[i])(iSpecies,jSpecies) = poly[i];
196 m_Dij(iSpecies,jSpecies) =
getFloat(xmlChild,
"Dij",
"toSI");
197 m_Dij(jSpecies,iSpecies) =
m_Dij(iSpecies,jSpecies) ;
207 LiquidTranInteraction& LiquidTranInteraction::operator=(
const LiquidTranInteraction& right)
209 if (&right !=
this) {
225 LiquidTranInteraction(tp_ind)
230 doublereal LTI_Solvent::getMixTransProp(doublereal* speciesValues, doublereal* speciesWeight)
232 size_t nsp = m_thermo->nSpecies();
233 doublereal temp = m_thermo->temperature();
235 m_thermo->getMoleFractions(&molefracs[0]);
237 doublereal value = 0.0;
241 for (
size_t k = 0; k < nsp; k++) {
246 throw CanteraError(
"LTI_Solvent::getMixTransProp",
"You should be specifying the speciesWeight");
256 for (
size_t i = 0; i < nsp; i++) {
258 value += speciesValues[i] * speciesWeight[i];
264 for (
size_t j = 0; j < nsp; j++) {
265 for (
size_t k = 0; k < m_Aij.size(); k++) {
266 value += molefracs[i]*molefracs[j]*(*m_Aij[k])(i,j)*pow(molefracs[i], (
int) k);
268 for (
size_t k = 0; k < m_Bij.size(); k++) {
269 value += molefracs[i]*molefracs[j]*(*m_Bij[k])(i,j)*temp*pow(molefracs[i], (
int) k);
277 doublereal LTI_Solvent::getMixTransProp(std::vector<LTPspecies*> LTPptrs)
279 size_t nsp = m_thermo->nSpecies();
280 doublereal temp = m_thermo->temperature();
282 m_thermo->getMoleFractions(&molefracs[0]);
284 doublereal value = 0.0;
286 for (
size_t k = 0; k < nsp; k++) {
291 for (
size_t i = 0; i < nsp; i++) {
293 value += LTPptrs[i]->getSpeciesTransProp() * LTPptrs[i]->getMixWeight();
294 for (
size_t j = 0; j < nsp; j++) {
295 for (
size_t k = 0; k < m_Aij.size(); k++) {
296 value += molefracs[i]*molefracs[j]*(*m_Aij[k])(i,j)*pow(molefracs[i], (
int) k);
298 for (
size_t k = 0; k < m_Bij.size(); k++) {
299 value += molefracs[i]*molefracs[j]*(*m_Bij[k])(i,j)*temp*pow(molefracs[i], (
int) k);
307 void LTI_Solvent::getMatrixTransProp(DenseMatrix& mat, doublereal* speciesValues)
319 doublereal value = 0;
323 for (
size_t k = 0; k < nsp; k++) {
324 molefracs[k] = molefracs[k]*speciesWeight[k];
327 throw CanteraError(
"LTI_MoleFracs::getMixTransProp",
"You should be specifying the speciesWeight");
330 for (
size_t i = 0; i < nsp; i++) {
331 value += speciesValues[i] * molefracs[i];
332 for (
size_t j = 0; j < nsp; j++) {
333 for (
size_t k = 0; k <
m_Aij.size(); k++) {
334 value += molefracs[i]*molefracs[j]*(*
m_Aij[k])(i,j)*pow(molefracs[i], (
int) k);
336 for (
size_t k = 0; k <
m_Bij.size(); k++) {
337 value += molefracs[i]*molefracs[j]*(*
m_Bij[k])(i,j)*temp*pow(molefracs[i], (
int) k);
352 doublereal value = 0;
354 for (
size_t k = 0; k < nsp; k++) {
355 molefracs[k] = molefracs[k]*LTPptrs[k]->getMixWeight();
358 for (
size_t i = 0; i < nsp; i++) {
359 value += LTPptrs[i]->getSpeciesTransProp() * molefracs[i];
360 for (
size_t j = 0; j < nsp; j++) {
361 for (
size_t k = 0; k <
m_Aij.size(); k++) {
362 value += molefracs[i]*molefracs[j]*(*
m_Aij[k])(i,j)*pow(molefracs[i], (
int) k);
364 for (
size_t k = 0; k <
m_Bij.size(); k++) {
365 value += molefracs[i]*molefracs[j]*(*
m_Bij[k])(i,j)*temp*pow(molefracs[i], (
int) k);
379 doublereal value = 0;
383 for (
size_t k = 0; k < nsp; k++) {
384 massfracs[k] = massfracs[k]*speciesWeight[k];
387 throw CanteraError(
"LTI_MassFracs::getMixTransProp",
"You should be specifying the speciesWeight");
390 for (
size_t i = 0; i < nsp; i++) {
391 value += speciesValues[i] * massfracs[i];
392 for (
size_t j = 0; j < nsp; j++) {
393 for (
size_t k = 0; k <
m_Aij.size(); k++) {
394 value += massfracs[i]*massfracs[j]*(*
m_Aij[k])(i,j)*pow(massfracs[i], (
int) k);
396 for (
size_t k = 0; k <
m_Bij.size(); k++) {
397 value += massfracs[i]*massfracs[j]*(*
m_Bij[k])(i,j)*temp*pow(massfracs[i], (
int) k);
412 doublereal value = 0;
414 for (
size_t k = 0; k < nsp; k++) {
415 massfracs[k] = massfracs[k]*LTPptrs[k]->getMixWeight();
418 for (
size_t i = 0; i < nsp; i++) {
419 value += LTPptrs[i]->getSpeciesTransProp() * massfracs[i];
420 for (
size_t j = 0; j < nsp; j++) {
421 for (
size_t k = 0; k <
m_Aij.size(); k++) {
422 value += massfracs[i]*massfracs[j]*(*
m_Aij[k])(i,j)*pow(massfracs[i], (
int) k);
424 for (
size_t k = 0; k <
m_Bij.size(); k++) {
425 value += massfracs[i]*massfracs[j]*(*
m_Bij[k])(i,j)*temp*pow(massfracs[i], (
int) k);
442 doublereal value = 0;
446 for (
size_t k = 0; k < nsp; k++) {
447 molefracs[k] = molefracs[k]*speciesWeight[k];
450 throw CanteraError(
"LTI_Log_MoleFracs::getMixTransProp",
"You probably should have a speciesWeight when you call getMixTransProp to convert ion mole fractions to molecular mole fractions");
453 for (
size_t i = 0; i < nsp; i++) {
454 value += log(speciesValues[i]) * molefracs[i];
455 for (
size_t j = 0; j < nsp; j++) {
456 for (
size_t k = 0; k <
m_Hij.size(); k++) {
457 value += molefracs[i]*molefracs[j]*(*
m_Hij[k])(i,j)/temp*pow(molefracs[i], (
int) k);
460 for (
size_t k = 0; k <
m_Sij.size(); k++) {
461 value -= molefracs[i]*molefracs[j]*(*
m_Sij[k])(i,j)*pow(molefracs[i], (
int) k);
478 doublereal value = 0;
482 for (
size_t k = 0; k < nsp; k++) {
483 molefracs[k] = molefracs[k]*LTPptrs[k]->getMixWeight();
486 for (
size_t i = 0; i < nsp; i++) {
487 value += log(LTPptrs[i]->getSpeciesTransProp()) * molefracs[i];
488 for (
size_t j = 0; j < nsp; j++) {
489 for (
size_t k = 0; k <
m_Hij.size(); k++) {
490 value += molefracs[i]*molefracs[j]*(*
m_Hij[k])(i,j)/temp*pow(molefracs[i], (
int) k);
494 for (
size_t k = 0; k <
m_Sij.size(); k++) {
495 value -= molefracs[i]*molefracs[j]*(*
m_Sij[k])(i,j)*pow(molefracs[i], (
int) k);
512 m_diagonals.resize(nsp, 0);
514 for (
size_t k = 0; k < nsp; k++) {
528 doublereal value = 0;
530 throw LTPmodelError(
"Calling LTI_Pairwise_Interaction::getMixTransProp does not make sense.");
541 doublereal value = 0;
543 throw LTPmodelError(
"Calling LTI_Pairwise_Interaction::getMixTransProp does not make sense.");
555 mat.
resize(nsp, nsp, 0.0);
556 for (
size_t i = 0; i < nsp; i++)
557 for (
size_t j = 0; j < i; j++) {
558 mat(i,j) = mat(j,i) = exp(
m_Eij(i,j) / temp) /
m_Dij(i,j);
561 for (
size_t i = 0; i < nsp; i++)
562 if (mat(i,i) == 0.0 && m_diagonals[i]) {
563 mat(i,i) = 1.0 / m_diagonals[i]->getSpeciesTransProp() ;
570 size_t nsp2 = nsp*nsp;
576 m_ionCondSpecies.resize(nsp,0);
577 m_mobRatMix.
resize(nsp,nsp,0.0);
578 m_mobRatMixModel.resize(nsp2);
579 m_mobRatSpecies.resize(nsp2);
580 m_selfDiffMix.resize(nsp,0.0);
581 m_selfDiffMixModel.resize(nsp);
582 m_selfDiffSpecies.resize(nsp);
584 for (
size_t k = 0; k < nsp2; k++) {
587 m_mobRatSpecies[k].resize(nsp,0);
589 for (
size_t k = 0; k < nsp; k++) {
592 m_selfDiffSpecies[k].resize(nsp,0);
595 for (
size_t k = 0; k < nsp; k++) {
599 for (
size_t j = 0; j < nsp2; j++) {
603 for (
size_t j = 0; j < nsp; j++) {
616 doublereal value = 0;
618 throw LTPmodelError(
"Calling LTI_StefanMaxwell_PPN::getMixTransProp does not make sense.");
629 doublereal value = 0;
631 throw LTPmodelError(
"Calling LTI_StefanMaxwell_PPN::getMixTransProp does not make sense.");
641 throw CanteraError(
"LTI_StefanMaxwell_PPN::getMatrixTransProp",
"Function may only be called with a 3-ion system");
648 vector<size_t> cation;
649 vector<size_t> anion;
654 std::vector<double> viS(6);
655 std::vector<double> charges(3);
656 std::vector<size_t> neutMolIndex(3);
659 if (anion.size() != 1) {
660 throw CanteraError(
"LTI_StefanMaxwell_PPN::getMatrixTransProp",
"Must have one anion only for StefanMaxwell_PPN");
662 if (cation.size() != 2) {
663 throw CanteraError(
"LTI_StefanMaxwell_PPN::getMatrixTransProp",
"Must have two cations of equal charge for StefanMaxwell_PPN");
665 if (charges[cation[0]] != charges[cation[1]]) {
666 throw CanteraError(
"LTI_StefanMaxwell_PPN::getMatrixTransProp",
"Cations must be of equal charge for StefanMaxwell_PPN");
675 for (
size_t j = 0; j < nsp; j++) {
676 for (
size_t i = 0; i < nsp; i++) {
677 if (m_mobRatMixModel[k]) {
678 m_mobRatMix(i,j) = m_mobRatMixModel[k]->getMixTransProp(m_mobRatSpecies[k]);
679 if (m_mobRatMix(i,j) > 0.0) {
680 m_mobRatMix(j,i) = 1.0/m_mobRatMix(i,j);
688 for (k = 0; k < nsp; k++) {
689 m_selfDiffMix[k] = m_selfDiffMixModel[k]->getMixTransProp(m_selfDiffSpecies[k]);
693 int vP = max(viS[cation[0]],viS[cation[1]]);
694 int vM = viS[anion[0]];
695 int zP = charges[cation[0]];
696 int zM = charges[anion[0]];
697 doublereal xA, xB, eps;
698 doublereal inv_vP_vM_MutualDiff;
700 dlnActCoeffdlnN_diag.resize(neut_molefracs.size(),0.0);
703 xA = neut_molefracs[neutMolIndex[cation[0]]];
704 xB = neut_molefracs[neutMolIndex[cation[1]]];
705 eps = (1-m_mobRatMix(cation[1],cation[0]))/(xA+xB*m_mobRatMix(cation[1],cation[0]));
706 inv_vP_vM_MutualDiff = (xA*(1-xB+dlnActCoeffdlnN_diag[neutMolIndex[cation[1]]])/m_selfDiffMix[cation[1]]+xB*(1-xA+dlnActCoeffdlnN_diag[neutMolIndex[cation[0]]])/m_selfDiffMix[cation[0]]);
708 mat.
resize(nsp, nsp, 0.0);
709 mat(cation[0],cation[1]) = mat(cation[1],cation[0]) = (1+vM/vP)*(1+eps*xB)*(1-eps*xA)*inv_vP_vM_MutualDiff-zP*zP*Faraday*Faraday/
GasConstant/temp/m_ionCondMix/vol;
710 mat(cation[0],anion[0]) = mat(anion[0],cation[0]) = (1+vP/vM)*(-eps*xB*(1-eps*xA)*inv_vP_vM_MutualDiff)-zP*zM*Faraday*Faraday/
GasConstant/temp/m_ionCondMix/vol;
711 mat(cation[1],anion[0]) = mat(anion[0],cation[1]) = (1+vP/vM)*(eps*xA*(1+eps*xB)*inv_vP_vM_MutualDiff)-zP*zM*Faraday*Faraday/
GasConstant/temp/m_ionCondMix/vol;
714 doublereal LTI_StokesEinstein::getMixTransProp(doublereal* speciesValues, doublereal* speciesWeight)
716 size_t nsp = m_thermo->nSpecies();
718 m_thermo->getMoleFractions(&molefracs[0]);
720 doublereal value = 0;
722 throw LTPmodelError(
"Calling LTI_StokesEinstein::getMixTransProp does not make sense.");
727 doublereal LTI_StokesEinstein::getMixTransProp(std::vector<LTPspecies*> LTPptrs)
729 size_t nsp = m_thermo->nSpecies();
731 m_thermo->getMoleFractions(&molefracs[0]);
733 doublereal value = 0;
735 throw LTPmodelError(
"Calling LTI_StokesEinstein::getMixTransProp does not make sense.");
740 void LTI_StokesEinstein::setParameters(LiquidTransportParams& trParam)
742 size_t nsp = m_thermo->nSpecies();
743 m_viscosity.resize(nsp, 0);
744 m_hydroRadius.resize(nsp, 0);
745 for (
size_t k = 0; k < nsp; k++) {
752 void LTI_StokesEinstein::getMatrixTransProp(DenseMatrix& mat, doublereal* speciesValues)
754 size_t nsp = m_thermo->nSpecies();
755 doublereal temp = m_thermo->temperature();
760 for (
size_t k = 0; k < nsp; k++) {
761 viscSpec[k] = m_viscosity[k]->getSpeciesTransProp() ;
762 radiusSpec[k] = m_hydroRadius[k]->getSpeciesTransProp() ;
765 mat.resize(nsp,nsp, 0.0);
766 for (
size_t i = 0; i < nsp; i++)
767 for (
size_t j = 0; j < nsp; j++) {
768 mat(i,j) = (6.0 *
Pi * radiusSpec[i] * viscSpec[j]) /
GasConstant / temp;
779 doublereal value = 0;
783 for (
size_t k = 0; k < nsp; k++) {
784 molefracs[k] = molefracs[k]*speciesWeight[k];
787 throw CanteraError(
"LTI_MoleFracs_ExpT::getMixTransProp",
"You should be specifying the speciesWeight");
790 for (
size_t i = 0; i < nsp; i++) {
791 value += speciesValues[i] * molefracs[i];
792 for (
size_t j = 0; j < nsp; j++) {
793 for (
size_t k = 0; k <
m_Aij.size(); k++) {
794 value += molefracs[i]*molefracs[j]*(*
m_Aij[k])(i,j)*pow(molefracs[i], (
int) k)*exp((*
m_Bij[k])(i,j)*temp);
809 doublereal value = 0;
811 for (
size_t k = 0; k < nsp; k++) {
812 molefracs[k] = molefracs[k]*LTPptrs[k]->getMixWeight();
815 for (
size_t i = 0; i < nsp; i++) {
816 value += LTPptrs[i]->getSpeciesTransProp() * molefracs[i];
817 for (
size_t j = 0; j < nsp; j++) {
818 for (
size_t k = 0; k <
m_Aij.size(); k++) {
819 value += molefracs[i]*molefracs[j]*(*
m_Aij[k])(i,j)*pow(molefracs[i], (
int) k)*exp((*
m_Bij[k])(i,j)*temp);
thermo_t * m_thermo
pointer to thermo object to get current temperature
doublereal getMixTransProp(doublereal *valueSpecies, doublereal *weightSpecies=0)
Copy constructor.
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< LiquidTranInteraction * > mobilityRatio
Vector of pointer to the LiquidTranInteraction object which handles the calculation of each species' ...
void getNeutralMolecMoleFractions(vector_fp &neutralMoleculeMoleFractions) const
Return the current value of the neutral mole fraction vector.
Header for intermediate ThermoPhase object for phases which employ gibbs excess free energy based for...
std::vector< DenseMatrix * > m_Hij
Matrix of interaction coefficients for polynomial in molefraction*weight of speciesA (in energy units...
std::string attrib(const std::string &attr) const
Function returns the value of an attribute.
void getMassFractions(doublereal *const y) const
Get the species mass fractions.
Header for intermediate ThermoPhase object for phases which consist of ions whose thermodynamics is c...
const size_t npos
index returned by functions to indicate "no position"
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.
doublereal getFloat(const Cantera::XML_Node &parent, const std::string &name, const std::string &type)
Get a floating-point value from a child element.
TransportPropertyType m_property
enum indicating what property this is (i.e viscosity)
Class LiquidTransportData holds transport parameters for a specific liquid-phase species.
std::string lowercase(const std::string &s)
Cast a copy of a string to lower case.
virtual doublereal getMixTransProp(doublereal *speciesValues, doublereal *weightSpecies=0)
Return the mixture transport property value.
void getMoleFractions(doublereal *const x) const
Get the species mole fraction vector.
void getMatrixTransProp(DenseMatrix &mat, doublereal *speciesValues=0)
Return the matrix of binary interaction parameters.
LTPspecies * speciesDiffusivity
Model type for the speciesDiffusivity.
void getDissociationCoeffs(vector_fp &fm_neutralMolec_ions, vector_fp &charges, std::vector< size_t > &neutMolIndex) const
Get the Salt Dissociation Coefficients Returns the vector of dissociation coefficients and vector of ...
void getMatrixTransProp(DenseMatrix &mat, doublereal *speciesValues=0)
Return the matrix of binary interaction parameters.
XML_Node & child(const size_t n) const
Return a changeable reference to the n'th child of the current node.
Base class for a phase with thermodynamic properties.
Class LiquidTransportParams holds transport model parameters relevant to transport in mixtures...
std::vector< LiquidTranInteraction * > selfDiffusion
Vector of pointer to the LiquidTranInteraction object which handles the calculation of each species' ...
Header file defining class LiquidTransportParams.
size_t speciesIndex(const std::string &name) const
Returns the index of a species named 'name' within the Phase object.
LiquidTranInteraction * ionConductivity
Object that specifes the ionic Conductivity of the mixture.
void resize(size_t n, size_t m, doublereal v=0.0)
Resize the matrix.
void setParameters(LiquidTransportParams &trParam)
Copy constructor.
doublereal molarVolume() const
Molar volume (m^3/kmol).
void getCationList(std::vector< size_t > &cation) const
Get the list of cations in this object.
DenseMatrix m_Dij
Matrix of interactions.
std::string name() const
Returns the name of the XML node.
void setParameters(LiquidTransportParams &trParam)
Copy constructor.
Base class for exceptions thrown by Cantera classes.
LiquidTranInteraction(TransportPropertyType tp_ind=TP_UNKNOWN)
Constructor.
Exception thrown if an error is encountered while reading the transport database. ...
std::vector< DenseMatrix * > m_Sij
Matrix of interaction coefficients for polynomial in molefraction*weight of speciesA (in entropy unit...
bool hasChild(const std::string &ch) const
Tests whether the current node has a child node with a particular name.
std::vector< Cantera::LiquidTransportData > LTData
Species transport parameters.
size_t nSpecies() const
Returns the number of species in the phase.
#define AssertTrace(expr)
Assertion must be true or an error is thrown.
doublereal temperature() const
Temperature (K).
void getAnionList(std::vector< size_t > &anion) const
Get the list of anions in this object.
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
std::vector< LTPspecies * > mobilityRatio
Model type for the mobility ratio.
doublereal getMixTransProp(doublereal *valueSpecies, doublereal *weightSpecies=0)
Copy constructor.
const doublereal GasConstant
Universal Gas Constant. [J/kmol/K].
doublereal getMixTransProp(doublereal *valueSpecies, doublereal *weightSpecies=0)
Return the mixture transport property value.
LTPspecies * hydroRadius
Model type for the hydroradius.
Contains declarations for string manipulation functions within Cantera.
std::vector< LTPspecies * > selfDiffusion
Model type for the self diffusion coefficients.
LTPspecies * viscosity
Model type for the viscosity.
MargulesVPSSTP is a derived class of GibbsExcessVPSSTP that employs the Margules approximation for th...
doublereal getMixTransProp(doublereal *valueSpecies, doublereal *weightSpecies=0)
Copy constructor.
virtual void init(const XML_Node &compModelNode=XML_Node(), thermo_t *thermo=0)
initialize LiquidTranInteraction objects with thermo and XML node
LTPspecies * ionConductivity
Model type for the ionic conductivity.
doublereal getMixTransProp(doublereal *valueSpecies, doublereal *weightSpecies=0)
Copy constructor.
ThermoPhase * neutralMoleculePhase_
This is a pointer to the neutral Molecule Phase.
DenseMatrix m_Eij
Matrix of interactions (in energy units, 1/RT temperature dependence)
Base class to handle transport property evaluation in a mixture.
size_t getFloatArray(const Cantera::XML_Node &node, std::vector< doublereal > &v, const bool convert, const std::string &unitsString, const std::string &nodeName)
This function reads the current node or a child node of the current node with the default name...
size_t nChildren(bool discardComments=false) const
Return the number of children.
A class for full (non-sparse) matrices with Fortran-compatible data storage, which adds matrix operat...
Exception thrown if an error is encountered while reading the transport database. ...
virtual void getdlnActCoeffdlnN_diag(doublereal *dlnActCoeffdlnN_diag) const
Get the array of derivatives of the log activity coefficients wrt mole numbers - diagonal only...