16 class LTPError :
public CanteraError
25 CanteraError(
"LTPspecies",
"error parsing transport data: " + msg +
"\n") {
42 doublereal& A, doublereal& b, doublereal& E)
48 E =
getFloat(node,
"E",
"actEnergy");
53 LTPspecies::LTPspecies(
const XML_Node*
const propNode,
const std::string name,
56 m_model(LTP_TD_NOTSET),
62 if (propNode->
hasChild(
"mixtureWeighting")) {
74 LTPspecies& LTPspecies::operator=(
const LTPspecies& right)
92 LTPspecies::~LTPspecies()
135 LTPspecies_Const& LTPspecies_Const::operator=(
const LTPspecies_Const& right)
137 if (&right !=
this) {
138 LTPspecies::operator=(right);
163 doublereal A_k, n_k, Tact_k;
180 LTPspecies_Arrhenius& LTPspecies_Arrhenius::operator=(
const LTPspecies_Arrhenius& right)
182 if (&right !=
this) {
183 LTPspecies::operator=(right);
236 LTPspecies_Poly& LTPspecies_Poly::operator=(
const LTPspecies_Poly& right)
238 if (&right !=
this) {
239 LTPspecies::operator=(right);
258 for (
int i = 0; i < (int)
m_coeffs.size() ; i++) {
283 LTPspecies_ExpT& LTPspecies_ExpT::operator=(
const LTPspecies_ExpT& right)
285 if (&right !=
this) {
286 LTPspecies::operator=(right);
304 doublereal tempN = 1.0;
305 doublereal tmp = 0.0;
306 for (
int i = 1; i < (int)
m_coeffs.size() ; i++) {
doublereal m_logProp
logarithm of most recent evaluation of transport property
virtual LTPspecies * duplMyselfAsLTPspecies() const
Duplication routine.
TransportPropertyType
Enumeration of the types of transport properties that can be handled by the variables in the various ...
virtual doublereal getSpeciesTransProp()
Returns the vector of pure species transport property.
virtual void adjustCoeffsForComposition()
Internal model to adjust species-specific properties for composition.
doublereal m_logt
logarithm of current temperature
LTPspecies_Const(const XML_Node &propNode, const std::string name, TransportPropertyType tp_ind, const thermo_t *const thermo)
Construct an LTPspecies object for a liquid transport property expressed as a constant value...
doublereal getSpeciesTransProp()
Returns the pure species transport property.
virtual bool checkPositive() const
Check to see if the property evaluation will be positive.
Class XML_Node is a tree-based representation of the contents of an XML file.
doublereal getSpeciesTransProp()
Returns the pure species transport property.
doublereal getFloat(const Cantera::XML_Node &parent, const std::string &name, const std::string &type)
Get a floating-point value from a child element.
static void getArrhenius(const XML_Node &node, int &labeled, doublereal &A, doublereal &b, doublereal &E)
getArrhenius() parses the xml element called Arrhenius.
Header file defining class LTPspecies and its child classes.
std::string m_speciesName
Species Name.
Class LTPspecies_Arrhenius holds transport parameters for a specific liquid-phase species (LTPspecies...
doublereal m_temp
temperature from thermo object
LTPspecies_Arrhenius(const XML_Node &propNode, const std::string name, TransportPropertyType tp_ind, const thermo_t *thermo)
Construct an LTPspecies object for a liquid transport property expressed in extended Arrhenius form...
virtual LTPspecies * duplMyselfAsLTPspecies() const
Duplication routine.
Base class for a phase with thermodynamic properties.
doublereal m_prop
most recent evaluation of transport property
const thermo_t * m_thermo
Pointer to a const thermo object to get current temperature.
doublereal getMixWeight() const
Return the weight mixture.
virtual LTPspecies * duplMyselfAsLTPspecies() const
Duplication routine.
doublereal getSpeciesTransProp()
Return the pure species value for this transport property evaluated from the Arrhenius expression...
LTPspecies_Poly(const XML_Node &propNode, const std::string name, TransportPropertyType tp_ind, const thermo_t *thermo)
Construct an LTPspecies object for a liquid transport property expressed as a polynomial in temperatu...
LTPspecies_ExpT(const XML_Node &propNode, const std::string name, TransportPropertyType tp_ind, const thermo_t *thermo)
Construct an LTPspecies object for a liquid transport property expressed as an exponential in tempera...
LTPTemperatureDependenceType m_model
Model type for the temperature dependence.
std::string name() const
Returns the name of the XML node.
doublereal getFloatCurrent(const Cantera::XML_Node &node, const std::string &type)
Get a floating-point value from the current XML element.
Base class for exceptions thrown by Cantera classes.
vector_fp m_coeffs
Model temperature-dependence ceofficients.
virtual LTPspecies * duplMyselfAsLTPspecies() const
Duplication routine.
bool hasChild(const std::string &ch) const
Tests whether the current node has a child node with a particular name.
doublereal getSpeciesTransProp()
Returns the pure species transport property.
Class LTPspecies_Const holds transport parameters for a specific liquid-phase species (LTPspecies) wh...
Class LTPspecies holds transport parameters for a specific liquid-phase species.
virtual LTPspecies * duplMyselfAsLTPspecies() const
Duplication routine.
doublereal temperature() const
Temperature (K).
Class LTPspecies_ExpT holds transport parameters for a specific liquid- phase species (LTPspecies) wh...
doublereal m_prop
most recent evaluation of transport property
doublereal m_temp
temperature from thermo object
doublereal m_temp
temperature from thermo object
LTPError(const std::string &msg)
Constructor is a wrapper around CanteraError.
doublereal m_mixWeight
Weighting used for mixing.
doublereal m_prop
most recent evaluation of transport property
Class LTPspecies_Poly holds transport parameters for a specific liquid-phase species (LTPspecies) whe...
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...
static void getArrhenius(const XML_Node &node, doublereal &A, doublereal &b, doublereal &E)
Parses the xml element called Arrhenius.
Exception thrown if an error is encountered while reading the transport database. ...
TransportPropertyType m_property
enum indicating which property this is (i.e viscosity)
LTPspecies(const XML_Node *const propNode=0, const std::string name="-", TransportPropertyType tp_ind=TP_UNKNOWN, const thermo_t *thermo=0)
Construct an LTPspecies object for a liquid transport property.