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")) {
133 if (&right !=
this) {
159 doublereal A_k, n_k, Tact_k;
177 if (&right !=
this) {
233 if (&right !=
this) {
253 for (
int i = 0; i < (int)
m_coeffs.size() ; i++) {
280 if (&right !=
this) {
299 doublereal tempN = 1.0;
300 doublereal tmp = 0.0;
301 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
Duplicates the current object given the parent class reference.
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.
LTPspecies_Const & operator=(const LTPspecies_Const &right)
Assignment operator.
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...
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 standard state 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 standard state species transport property.
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 for the property that is being described.
Class LTPspecies_Arrhenius holds transport parameters for a specific liquid-phase species (LTPspecies...
doublereal m_temp
temperature from thermo object
LTPspecies & operator=(const LTPspecies &right)
Assignment operator.
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
Duplicates the current object given the parent class reference.
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
Duplicates the current object given the parent class reference.
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.
std::string name() const
Returns the name of the XML node.
Base class for exceptions thrown by Cantera classes.
vector_fp m_coeffs
Model temperature-dependence ceofficients.
LTPspecies_Arrhenius & operator=(const LTPspecies_Arrhenius &right)
Assignment operator.
virtual LTPspecies * duplMyselfAsLTPspecies() const
Duplicates the current object given the parent class reference.
bool hasChild(const std::string &ch) const
Tests whether the current node has a child node with a particular name.
doublereal getSpeciesTransProp()
Returns the standard state species transport property.
Class LTPspecies_Const holds transport parameters for a specific liquid-phase species (LTPspecies) wh...
Class LTPspecies holds transport parameterizations for a specific liquid-phase species.
virtual LTPspecies * duplMyselfAsLTPspecies() const
Duplication routine.
LTPspecies_Poly & operator=(const LTPspecies_Poly &right)
Assignment operator.
doublereal temperature() const
Temperature (K).
Class LTPspecies_ExpT holds transport parameters for a specific liquid- phase species (LTPspecies) wh...
size_t getFloatArray(const 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...
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.
LTPspecies_ExpT & operator=(const LTPspecies_ExpT &right)
Assignment operator.
doublereal m_mixWeight
Weighting used for mixing.
doublereal m_prop
most recent evaluation of the transport property
Class LTPspecies_Poly holds transport parameters for a specific liquid-phase species (LTPspecies) whe...
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.