27 CanteraError(
"LTPspecies",
"error parsing transport data: " + msg +
"\n") {
44 doublereal& A, doublereal& b, doublereal& E)
49 E =
getFloat(node,
"E",
"actEnergy") / GasConstant;
52 LTPspecies::LTPspecies(
const XML_Node*
const propNode,
const std::string name,
55 m_model(LTP_TD_NOTSET),
60 if (propNode && propNode->
hasChild(
"mixtureWeighting")) {
120 doublereal A_k, n_k, Tact_k;
181 for (
int i = 0; i < (int)
m_coeffs.size() ; i++) {
211 doublereal tempN = 1.0;
212 doublereal tmp = 0.0;
213 for (
int i = 1; i < (int)
m_coeffs.size() ; i++) {
doublereal m_logProp
logarithm of most recent evaluation of transport property
size_t getFloatArray(const XML_Node &node, vector_fp &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...
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 standard state species transport property.
virtual void adjustCoeffsForComposition()
Internal model to adjust species-specific properties for the composition.
doublereal m_logt
logarithm of current temperature
CTML ("Cantera Markup Language") is the variant of XML that Cantera uses to store data...
std::string name() const
Returns the name of the XML node.
doublereal temperature() const
Temperature (K).
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...
virtual LTPspecies * duplMyselfAsLTPspecies() const
Duplication routine.
doublereal getSpeciesTransProp()
Returns the vector of standard state species transport property.
Class XML_Node is a tree-based representation of the contents of an XML file.
doublereal getSpeciesTransProp()
Returns the vector of standard state species transport property.
Header file defining class LTPspecies and its child classes.
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 bool checkPositive() const
Check to see if the property evaluation will be positive.
virtual LTPspecies * duplMyselfAsLTPspecies() const
Duplication routine.
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.
doublereal getSpeciesTransProp()
Return the standard state species value for this transport property evaluated from the Arrhenius expr...
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...
doublereal getFloatCurrent(const XML_Node &node, const std::string &type)
Get a floating-point value from the current XML element.
LTPTemperatureDependenceType m_model
Model type for the temperature dependence.
Base class for exceptions thrown by Cantera classes.
vector_fp m_coeffs
Model temperature-dependence ceofficients.
doublereal getSpeciesTransProp()
Returns the vector of standard state species transport property.
Class LTPspecies holds transport parameterizations for a specific liquid- phase species.
bool hasChild(const std::string &ch) const
Tests whether the current node has a child node with a particular name.
doublereal getFloat(const XML_Node &parent, const std::string &name, const std::string &type)
Get a floating-point value from a child element.
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.
virtual LTPspecies * duplMyselfAsLTPspecies() const
Duplication routine.
doublereal m_mixWeight
Weighting used for mixing.
Namespace for the Cantera kernel.
doublereal m_prop
most recent evaluation of the transport property
virtual LTPspecies * duplMyselfAsLTPspecies() const
Duplication routine.
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.