General whitespace cleanup
Remove unnecessary blank lines and trailing whitespace. Replace tabs with spaces.
This commit is contained in:
parent
619cd20f14
commit
e4c45b6429
340 changed files with 625 additions and 2692 deletions
|
|
@ -6,7 +6,6 @@ using namespace Cantera;
|
|||
// can be called from the main program.
|
||||
void simple_demo()
|
||||
{
|
||||
|
||||
// Create a new phase
|
||||
ThermoPhase* gas = newPhase("h2o2.cti","ohmech");
|
||||
|
||||
|
|
@ -28,7 +27,6 @@ void simple_demo()
|
|||
// might be thrown
|
||||
int main()
|
||||
{
|
||||
|
||||
try {
|
||||
simple_demo();
|
||||
} catch (CanteraError& err) {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ void equil_demo()
|
|||
|
||||
int main()
|
||||
{
|
||||
|
||||
try {
|
||||
equil_demo();
|
||||
} catch (CanteraError& err) {
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@ class Edge :
|
|||
{
|
||||
public:
|
||||
Edge(const std::string& infile, std::string id, std::vector<ThermoPhase*> phases)
|
||||
: m_ok(false), m_r(0) {
|
||||
|
||||
: m_ok(false), m_r(0)
|
||||
{
|
||||
m_r = get_XML_File(infile);
|
||||
if (id == "-") {
|
||||
id = "";
|
||||
|
|
@ -45,5 +45,4 @@ protected:
|
|||
};
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -15,12 +15,11 @@ class IdealGasMix :
|
|||
public GasKinetics
|
||||
{
|
||||
public:
|
||||
|
||||
IdealGasMix() : m_ok(false), m_r(0) {}
|
||||
|
||||
IdealGasMix(const std::string& infile, std::string id_="") :
|
||||
m_ok(false), m_r(0) {
|
||||
|
||||
m_ok(false), m_r(0)
|
||||
{
|
||||
m_r = get_XML_File(infile);
|
||||
m_id = id_;
|
||||
if (id_ == "-") {
|
||||
|
|
@ -32,7 +31,6 @@ public:
|
|||
"Cantera::buildSolutionFromXML returned false");
|
||||
}
|
||||
|
||||
|
||||
IdealGasMix(XML_Node& root,
|
||||
std::string id_) : m_ok(false), m_r(&root), m_id(id_) {
|
||||
m_ok = buildSolutionFromXML(root, id_, "phase", this, this);
|
||||
|
|
@ -56,7 +54,6 @@ public:
|
|||
return s;
|
||||
}
|
||||
|
||||
|
||||
protected:
|
||||
bool m_ok;
|
||||
XML_Node* m_r;
|
||||
|
|
@ -64,5 +61,4 @@ protected:
|
|||
};
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ class IncompressibleSolid : public ConstDensityThermo
|
|||
{
|
||||
public:
|
||||
IncompressibleSolid(const std::string& infile,
|
||||
std::string id="") : m_ok(false), m_r(0) {
|
||||
|
||||
std::string id="") : m_ok(false), m_r(0)
|
||||
{
|
||||
m_r = get_XML_File(infile);
|
||||
if (id == "-") {
|
||||
id = "";
|
||||
|
|
@ -36,5 +36,4 @@ protected:
|
|||
};
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ namespace Cantera
|
|||
class Metal : public MetalPhase
|
||||
{
|
||||
public:
|
||||
Metal(const std::string& infile, std::string id="") : m_ok(false), m_r(0) {
|
||||
|
||||
Metal(const std::string& infile, std::string id="") : m_ok(false), m_r(0)
|
||||
{
|
||||
m_r = get_XML_File(infile);
|
||||
if (id == "-") {
|
||||
id = "";
|
||||
|
|
@ -35,5 +35,4 @@ protected:
|
|||
};
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
*/
|
||||
// Copyright 2001 California Institute of Technology
|
||||
|
||||
|
||||
#ifndef CT_ARRAY_H
|
||||
#define CT_ARRAY_H
|
||||
|
||||
|
|
@ -251,7 +250,6 @@ public:
|
|||
return value(i,j);
|
||||
}
|
||||
|
||||
|
||||
//! Allows retrieving elements using the syntax x = A(i,j).
|
||||
/*!
|
||||
* @param i Index for the row to be retrieved
|
||||
|
|
|
|||
|
|
@ -52,11 +52,9 @@ protected:
|
|||
virtual void deleteFactory() = 0 ;
|
||||
|
||||
private:
|
||||
|
||||
//! statically held list of Factories.
|
||||
static std::vector<FactoryBase*> s_vFactoryRegistry ;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@ namespace Cantera
|
|||
* An example of how to use the timer is given below. timeToDoCalcs
|
||||
* contains the wall clock time calculated for the operation.
|
||||
*
|
||||
*
|
||||
* @code
|
||||
* clockWC wc;
|
||||
* do_hefty_calculations_atLeastgreaterThanAMillisecond();
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ typedef double doublereal; // Fortran double precision
|
|||
typedef int integer; // Fortran integer
|
||||
typedef int ftnlen; // Fortran hidden string length type
|
||||
|
||||
|
||||
// Fortran compilers pass character strings in argument lists by
|
||||
// adding a hidden argument with the length of the string. Some
|
||||
// compilers add the hidden length argument immediately after the
|
||||
|
|
@ -42,7 +41,6 @@ typedef int ftnlen; // Fortran hidden string length type
|
|||
// Visual Fortran under Windows.
|
||||
#define STRING_LEN_AT_END
|
||||
|
||||
|
||||
// Define this if Fortran adds a trailing underscore to names in object files.
|
||||
// For linux and most unix systems, this is the case.
|
||||
%(FTN_TRAILING_UNDERSCORE)s
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
#ifdef THREAD_SAFE_CANTERA
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/thread/mutex.hpp>
|
||||
|
||||
#endif
|
||||
|
||||
namespace Cantera
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@ namespace Cantera
|
|||
class Logger
|
||||
{
|
||||
public:
|
||||
|
||||
//! Constructor - empty
|
||||
Logger() {}
|
||||
|
||||
|
|
|
|||
|
|
@ -101,7 +101,6 @@ compositionMap parseCompString(const std::string& ss,
|
|||
* atoi() is used.
|
||||
*
|
||||
* @param val String value of the integer
|
||||
*
|
||||
* @return Returns an integer
|
||||
*/
|
||||
int intValue(const std::string& val);
|
||||
|
|
@ -111,7 +110,6 @@ int intValue(const std::string& val);
|
|||
* No error checking is done on the conversion.
|
||||
*
|
||||
* @param val String value of the double
|
||||
*
|
||||
* @return Returns a doublereal value
|
||||
*/
|
||||
doublereal fpValue(const std::string& val);
|
||||
|
|
@ -171,7 +169,6 @@ std::string wrapString(const std::string& s,
|
|||
* Example: "1.0 atm" results in the number 1.01325e5.
|
||||
*
|
||||
* @param strSI string to be converted. One or two tokens
|
||||
*
|
||||
* @return returns a converted double
|
||||
*/
|
||||
doublereal strSItoDbl(const std::string& strSI);
|
||||
|
|
|
|||
|
|
@ -42,7 +42,6 @@ template<class T> struct timesConstant : public std::unary_function<T, double> {
|
|||
/*!
|
||||
* @param x Variable of templated type T that will be
|
||||
* used in the multiplication operator
|
||||
*
|
||||
* @return Returns a value of type double from the internal
|
||||
* multiplication
|
||||
*/
|
||||
|
|
@ -71,7 +70,6 @@ inline doublereal dot4(const V& x, const V& y)
|
|||
return x[0]*y[0] + x[1]*y[1] + x[2]*y[2] + x[3]*y[3];
|
||||
}
|
||||
|
||||
|
||||
//! Templated Inner product of two vectors of length 5
|
||||
/*!
|
||||
* If either \a x
|
||||
|
|
@ -342,7 +340,6 @@ inline void scatter_copy(InputIter begin, InputIter end,
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
//! Multiply selected elements in an array by a contiguous
|
||||
//! sequence of multipliers.
|
||||
/*!
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@ public:
|
|||
* @param aline This is the input string to be searched
|
||||
* @param rstring Return value of the string that is found.
|
||||
* The quotes are stripped from the string.
|
||||
*
|
||||
* @return Returns the integer position just after
|
||||
* the quoted string.
|
||||
*/
|
||||
|
|
@ -103,7 +102,6 @@ public:
|
|||
//! Constructor for XML_Node, representing a tree structure
|
||||
/*!
|
||||
* @param nm Name of the node.
|
||||
*
|
||||
* @param parent Pointer to the parent for this node in the tree.
|
||||
* A value of 0 indicates this is the top of the tree.
|
||||
*/
|
||||
|
|
@ -128,7 +126,6 @@ public:
|
|||
* There is no copy made of the child node. The child node should not be deleted in the future
|
||||
*
|
||||
* @param node Reference to a child XML_Node object
|
||||
*
|
||||
* @return Returns a reference to the added child node
|
||||
*/
|
||||
XML_Node& mergeAsChild(XML_Node& node);
|
||||
|
|
@ -140,7 +137,6 @@ public:
|
|||
* A copy is made of the underlying tree
|
||||
*
|
||||
* @param node Reference to a child XML_Node object
|
||||
*
|
||||
* @return returns a reference to the added node
|
||||
*/
|
||||
XML_Node& addChild(const XML_Node& node);
|
||||
|
|
@ -151,7 +147,6 @@ public:
|
|||
* The node will be blank except for the specified name.
|
||||
*
|
||||
* @param sname Name of the new child
|
||||
*
|
||||
* @return Returns a reference to the added node
|
||||
*/
|
||||
XML_Node& addChild(const std::string& sname);
|
||||
|
|
@ -182,7 +177,6 @@ public:
|
|||
* @param name Name of the child XML_Node object
|
||||
* @param value Value of the XML_Node - double.
|
||||
* @param fmt Format of the output for value
|
||||
*
|
||||
* @return Returns a reference to the created child XML_Node object
|
||||
*/
|
||||
XML_Node& addChild(const std::string& name, const doublereal value,
|
||||
|
|
@ -298,7 +292,6 @@ public:
|
|||
* an attribute with that name.
|
||||
*
|
||||
* @param attr attribute string to look up
|
||||
*
|
||||
* @return Returns a string representing the value of the attribute
|
||||
* within the XML node. If there is no attribute
|
||||
* with the given name, it returns the null string.
|
||||
|
|
@ -312,7 +305,6 @@ public:
|
|||
* string. If no match is found, the empty string is returned.
|
||||
*
|
||||
* @param attr String containing the attribute to be searched for.
|
||||
*
|
||||
* @return Returns If a match is found, the attribute value is returned
|
||||
* as a string. If no match is found, the empty string is
|
||||
* returned.
|
||||
|
|
@ -359,7 +351,6 @@ public:
|
|||
//! Sets the pointer for the parent node of the current node
|
||||
/*!
|
||||
* @param p Pointer to the parent node
|
||||
*
|
||||
* @return Returns the pointer p
|
||||
*/
|
||||
XML_Node* setParent(XML_Node* const p);
|
||||
|
|
@ -367,7 +358,6 @@ public:
|
|||
//! Tests whether the current node has a child node with a particular name
|
||||
/*!
|
||||
* @param ch Name of the child node to test
|
||||
*
|
||||
* @return Returns true if the child node exists, false otherwise.
|
||||
*/
|
||||
bool hasChild(const std::string& ch) const;
|
||||
|
|
@ -375,7 +365,6 @@ public:
|
|||
//! Tests whether the current node has an attribute with a particular name
|
||||
/*!
|
||||
* @param a Name of the attribute to test
|
||||
*
|
||||
* @return Returns true if the attribute exists, false otherwise.
|
||||
*/
|
||||
bool hasAttrib(const std::string& a) const;
|
||||
|
|
@ -398,8 +387,7 @@ public:
|
|||
|
||||
//! Return the id attribute, if present
|
||||
/*!
|
||||
* Returns the id attribute if present. If not
|
||||
* it return the empty string
|
||||
* Returns the id attribute if present. If not it return the empty string
|
||||
*/
|
||||
std::string id() const;
|
||||
|
||||
|
|
@ -413,7 +401,6 @@ public:
|
|||
/*!
|
||||
* Each of the individual XML_Node child pointers, however,
|
||||
* is to a changeable XML node object.
|
||||
*
|
||||
*/
|
||||
const std::vector<XML_Node*>& children() const;
|
||||
|
||||
|
|
@ -450,7 +437,6 @@ public:
|
|||
* @param nameTarget Name of the XML Node that is being searched for
|
||||
* @param idTarget "id" attribute of the XML Node that the routine
|
||||
* looks for
|
||||
*
|
||||
* @return Returns the pointer to the XML node that fits the criteria
|
||||
*
|
||||
* @internal
|
||||
|
|
@ -476,7 +462,6 @@ public:
|
|||
* looks for
|
||||
* @param index Integer describing the index. The index is an
|
||||
* attribute of the form index = "3"
|
||||
*
|
||||
* @return Returns the pointer to the XML node that fits the criteria
|
||||
*/
|
||||
XML_Node* findNameIDIndex(const std::string& nameTarget,
|
||||
|
|
@ -495,7 +480,6 @@ public:
|
|||
* @param id "id" attribute of the XML Node that the routine
|
||||
* looks for
|
||||
* @param depth Depth of the search.
|
||||
*
|
||||
* @return Returns the pointer to the XML node that fits the criteria
|
||||
*
|
||||
* @internal
|
||||
|
|
@ -511,12 +495,10 @@ public:
|
|||
* the attribute, the pointer to the matching XML Node is returned. If
|
||||
* not, 0 is returned.
|
||||
*
|
||||
* @param attr Attribute of the XML Node that the routine
|
||||
* looks for
|
||||
* @param attr Attribute of the XML Node that the routine looks for
|
||||
* @param val Value of the attribute
|
||||
* @param depth Depth of the search. A value of 1 means that only the
|
||||
* immediate children are searched.
|
||||
*
|
||||
* @return Returns the pointer to the XML node that fits the criteria
|
||||
*/
|
||||
XML_Node* findByAttr(const std::string& attr, const std::string& val,
|
||||
|
|
@ -532,7 +514,6 @@ public:
|
|||
* @param nm Name of the XML node
|
||||
* @param depth Depth of the search. A value of 1 means that only the
|
||||
* immediate children are searched.
|
||||
*
|
||||
* @return Returns the pointer to the XML node that fits the criteria
|
||||
*/
|
||||
const XML_Node* findByName(const std::string& nm, int depth = 100000) const;
|
||||
|
|
@ -547,7 +528,6 @@ public:
|
|||
* @param nm Name of the XML node
|
||||
* @param depth Depth of the search. A value of 1 means that only the
|
||||
* immediate children are searched.
|
||||
*
|
||||
* @return Returns the pointer to the XML node that fits the criteria
|
||||
*/
|
||||
XML_Node* findByName(const std::string& nm, int depth = 100000);
|
||||
|
|
@ -589,8 +569,7 @@ public:
|
|||
|
||||
//! Return the root of the current XML_Node tree
|
||||
/*!
|
||||
* Returns a reference to the root of the current
|
||||
* XML tree
|
||||
* Returns a reference to the root of the current XML tree
|
||||
*/
|
||||
XML_Node& root() const;
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,6 @@ class PropertyCalculator;
|
|||
|
||||
/**
|
||||
* @defgroup equil Chemical Equilibrium
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
@ -146,9 +145,7 @@ public:
|
|||
*/
|
||||
EquilOpt options;
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
//! Pointer to the ThermoPhase object used to initialize this object.
|
||||
/*!
|
||||
* This ThermoPhase object must be compatible with the ThermoPhase
|
||||
|
|
|
|||
|
|
@ -155,8 +155,7 @@ public:
|
|||
* fractions into array \c x. The mole fractions are
|
||||
* normalized to sum to one in each phase.
|
||||
*
|
||||
* @param x vector of mole fractions.
|
||||
* Length = number of global species.
|
||||
* @param x vector of mole fractions. Length = number of global species.
|
||||
*/
|
||||
void getMoleFractions(doublereal* const x) const;
|
||||
|
||||
|
|
@ -238,7 +237,6 @@ public:
|
|||
* @param phaseName Phase Name
|
||||
*
|
||||
* @return returns the global index
|
||||
*
|
||||
* If the species or phase name is not recognized, this routine throws
|
||||
* a CanteraError.
|
||||
*/
|
||||
|
|
@ -318,10 +316,8 @@ public:
|
|||
*
|
||||
* @param not_mu Value of the chemical potential to set species in phases,
|
||||
* for which the thermo data is not valid
|
||||
*
|
||||
* @param mu Vector of chemical potentials. length = Global species,
|
||||
* units = J kmol-1
|
||||
*
|
||||
* @param standard If this method is called with \a standard set to true,
|
||||
* then the composition-independent standard chemical
|
||||
* potentials are returned instead of the composition-
|
||||
|
|
@ -442,7 +438,6 @@ public:
|
|||
//! Returns the phase index of the Kth "global" species
|
||||
/*!
|
||||
* @param kGlob Global species index.
|
||||
*
|
||||
* @return Returns the index of the owning phase.
|
||||
*/
|
||||
size_t speciesPhaseIndex(const size_t kGlob) const;
|
||||
|
|
@ -735,8 +730,7 @@ inline std::ostream& operator<<(std::ostream& s, MultiPhase& x)
|
|||
* reaction matrix based on the calculated component species. If
|
||||
* false, this step is skipped.
|
||||
* @param[out] usedZeroedSpecies = If true, then a species with a zero
|
||||
* concentration was used as a component. The problem may be
|
||||
* converged.
|
||||
* concentration was used as a component. The problem may be converged.
|
||||
* @param[out] formRxnMatrix
|
||||
* @return The number of components.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -493,7 +493,6 @@ public:
|
|||
//! Returns the type of the species unknown
|
||||
/*!
|
||||
* @param k species index
|
||||
*
|
||||
* @return the SpeciesUnknownType[k] = type of species
|
||||
* - Normal -> VCS_SPECIES_TYPE_MOLUNK (unknown is the mole number in
|
||||
* the phase)
|
||||
|
|
@ -890,7 +889,6 @@ private:
|
|||
//! Return a string representing the equation of state
|
||||
/*!
|
||||
* @param EOSType : integer value of the equation of state
|
||||
*
|
||||
* @return returns a string representing the EOS. The string is no more than 16 characters.
|
||||
*/
|
||||
std::string string16_EOSType(int EOSType);
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ namespace Cantera
|
|||
{
|
||||
/*!
|
||||
* ERROR CODES
|
||||
*
|
||||
*/
|
||||
//@{
|
||||
#define VCS_SUCCESS 0
|
||||
|
|
@ -30,7 +29,6 @@ namespace Cantera
|
|||
|
||||
/*!
|
||||
* @name Type of the underlying equilibrium solve
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
|
||||
|
|
@ -93,7 +91,6 @@ namespace Cantera
|
|||
|
||||
/*!
|
||||
* @name State of Dimensional Units for Gibbs free energies
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
//! nondimensional
|
||||
|
|
@ -336,7 +333,6 @@ namespace Cantera
|
|||
|
||||
/*!
|
||||
* @name Types of Species Unknowns in the problem
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
//! Unknown refers to mole number of a single species
|
||||
|
|
|
|||
|
|
@ -298,7 +298,6 @@ public:
|
|||
* @param elNameNew New name of the element
|
||||
* @param elType Type of the element
|
||||
* @param elactive boolean indicating whether the element is active
|
||||
*
|
||||
* @return returns the index number of the new element
|
||||
*/
|
||||
size_t addElement(const char* elNameNew, int elType, int elactive);
|
||||
|
|
|
|||
|
|
@ -77,7 +77,6 @@ public:
|
|||
*
|
||||
* Input:
|
||||
* @param vprob Object containing the equilibrium Problem statement
|
||||
*
|
||||
* @param ifunc Determines the operation to be done: Valid values:
|
||||
* 0 -> Solve a new problem by initializing structures
|
||||
* first. An initial estimate may or may not have
|
||||
|
|
@ -90,14 +89,12 @@ public:
|
|||
* the VCS_PROB structure.
|
||||
* 2 -> Don't solve a problem. Destroy all the private
|
||||
* structures.
|
||||
*
|
||||
* @param ipr Printing of results
|
||||
* ipr = 1 -> Print problem statement and final results to
|
||||
* standard output
|
||||
* 0 -> don't report on anything
|
||||
* @param ip1 Printing of intermediate results
|
||||
* IP1 = 1 -> Print intermediate results.
|
||||
*
|
||||
* @param maxit Maximum number of iterations for the algorithm
|
||||
*
|
||||
* Output:
|
||||
|
|
@ -122,7 +119,6 @@ public:
|
|||
* 0 -> don't report on anything
|
||||
* @param printDetails 1 -> Print intermediate results.
|
||||
* @param maxit Maximum number of iterations for the algorithm
|
||||
*
|
||||
* @return
|
||||
* * 0 = Equilibrium Achieved
|
||||
* * 1 = Range space error encountered. The element abundance criteria
|
||||
|
|
@ -169,10 +165,8 @@ public:
|
|||
*
|
||||
* @param[in] doJustComponents If true, the m_stoichCoeffRxnMatrix and
|
||||
* m_deltaMolNumPhase are not calculated.
|
||||
*
|
||||
* @param[in] aw Vector of mole fractions which will be used to construct an
|
||||
* optimal basis from.
|
||||
*
|
||||
* @param[in] sa Gram-Schmidt orthog work space (nc in length) sa[j]
|
||||
* @param[in] ss Gram-Schmidt orthog work space (nc in length) ss[j]
|
||||
* @param[in] sm QR matrix work space (nc*ne in length) sm[i+j*ne]
|
||||
|
|
@ -222,7 +216,6 @@ public:
|
|||
* All evaluations are done using the "old" version of the solution.
|
||||
*
|
||||
* @param kspec Species to be evaluated
|
||||
*
|
||||
* @return Returns the calculated species type
|
||||
*/
|
||||
int vcs_species_type(const size_t kspec) const;
|
||||
|
|
@ -354,9 +347,8 @@ public:
|
|||
* for the input mole vector z[] in the parameter list.
|
||||
* Nondimensionalization is achieved by division by RT.
|
||||
*
|
||||
* Note, for multispecies phases which are currently zeroed out,
|
||||
* the chemical potential is filled out with the standard chemical
|
||||
* potential.
|
||||
* Note, for multispecies phases which are currently zeroed out, the
|
||||
* chemical potential is filled out with the standard chemical potential.
|
||||
*
|
||||
* For species in multispecies phases whose concentration is zero, we need
|
||||
* to set the mole fraction to a very low value. Its chemical potential is
|
||||
|
|
@ -462,7 +454,6 @@ public:
|
|||
* are increased.
|
||||
*
|
||||
* @param iphasePop id of the phase, which is currently zeroed,
|
||||
*
|
||||
* @return Returns true if the phase can come into existence
|
||||
* and false otherwise.
|
||||
*/
|
||||
|
|
@ -481,7 +472,6 @@ public:
|
|||
/*!
|
||||
* @param phasePopPhaseIDs Vector containing the phase ids of the phases
|
||||
* that will be popped this step.
|
||||
*
|
||||
* @return returns the phase id of the phase that pops back into
|
||||
* existence. Returns -1 if there are no phases
|
||||
*/
|
||||
|
|
@ -495,7 +485,6 @@ public:
|
|||
* for species irxn + M, where M is the number of components.
|
||||
*
|
||||
* @param iphasePop Phase id of the phase that will come into existence
|
||||
*
|
||||
* @return Returns an int representing the status of the step
|
||||
* - 0 : normal return
|
||||
* - 1 : A single species phase species has been zeroed out
|
||||
|
|
@ -523,7 +512,6 @@ public:
|
|||
* @param forceComponentCalc integer flagging whether a component
|
||||
* recalculation needs to be carried out.
|
||||
* @param kSpecial species number of phase being zeroed.
|
||||
*
|
||||
* @return Returns an int representing which phase may need to be zeroed
|
||||
*/
|
||||
size_t vcs_RxnStepSizes(int& forceComponentCalc, size_t& kSpecial);
|
||||
|
|
@ -640,7 +628,6 @@ public:
|
|||
* report on anything
|
||||
* @param printDetails 1 -> Print intermediate results.
|
||||
* @param maxit Maximum number of iterations for the algorithm
|
||||
*
|
||||
* @return
|
||||
* - 0 = Equilibrium Achieved
|
||||
* - 1 = Range space error encountered. The element abundance criteria are
|
||||
|
|
@ -676,7 +663,6 @@ public:
|
|||
* @param maxit Maximum number of iterations for the algorithm
|
||||
* @param T Value of the Temperature (Kelvin)
|
||||
* @param pres Value of the Pressure (units given by m_VCS_UnitsFormat variable
|
||||
*
|
||||
* @return Returns an integer representing the success of the algorithm
|
||||
* * 0 = Equilibrium Achieved
|
||||
* * 1 = Range space error encountered. The element abundance criteria are
|
||||
|
|
@ -788,7 +774,6 @@ public:
|
|||
*
|
||||
* @param vprob VCS_PROB pointer to the definition of the equilibrium
|
||||
* problem
|
||||
*
|
||||
* @return If true, the problem is well-posed. If false, the problem
|
||||
* is not well posed.
|
||||
*/
|
||||
|
|
@ -903,7 +888,6 @@ public:
|
|||
*
|
||||
* @param irxn Reaction number
|
||||
* @param dx_orig Original step length
|
||||
*
|
||||
* @param ANOTE Output character string stating the conclusions of the
|
||||
* line search
|
||||
* @return Returns the optimized step length found by the search
|
||||
|
|
@ -1052,7 +1036,6 @@ public:
|
|||
* lots of special cases and problems with zeroing out species.
|
||||
*
|
||||
* Still need to check out when we do loops over nc vs. ne.
|
||||
*
|
||||
*/
|
||||
int vcs_elcorr(double aa[], double x[]);
|
||||
|
||||
|
|
@ -1176,7 +1159,6 @@ private:
|
|||
* loop.
|
||||
*
|
||||
* @param iph Phase to be deleted
|
||||
*
|
||||
* @return Returns whether the operation was successful or not
|
||||
*/
|
||||
bool vcs_delete_multiphase(const size_t iph);
|
||||
|
|
@ -1189,7 +1171,6 @@ private:
|
|||
* @param kspec The species index
|
||||
* @param delta_ptr pointer to the delta for the species. This may
|
||||
* change during the calculation
|
||||
*
|
||||
* @return
|
||||
* 1: succeeded without change of dx
|
||||
* 0: Had to adjust dx, perhaps to zero, in order to do the delta.
|
||||
|
|
@ -1223,7 +1204,6 @@ private:
|
|||
* Also, if the phase exists, then we check to see if the species
|
||||
* can have a mole number larger than VCS_DELETE_SPECIES_CUTOFF
|
||||
* (default value = 1.0E-32).
|
||||
*
|
||||
*/
|
||||
int vcs_recheck_deleted();
|
||||
|
||||
|
|
@ -1253,7 +1233,6 @@ private:
|
|||
* phases. It's an overkill for single species phases.
|
||||
*
|
||||
* @param iphase Phase index number
|
||||
*
|
||||
* @return Returns true if the phase is currently deleted
|
||||
* but should be reinstated. Returns false otherwise.
|
||||
*
|
||||
|
|
@ -1382,7 +1361,6 @@ private:
|
|||
* totalNumSpecies) Note this is only partially formed. Only
|
||||
* species in phases that participate in the reaction will be
|
||||
* updated
|
||||
*
|
||||
* @return Returns the dimensionless deltaG of the reaction
|
||||
*/
|
||||
double deltaG_Recalc_Rxn(const int stateCalc,
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ public:
|
|||
|
||||
virtual void setMultiplier(size_t i, double f);
|
||||
|
||||
|
||||
protected:
|
||||
virtual void addElementaryReaction(ElementaryReaction& r);
|
||||
virtual void modifyElementaryReaction(size_t i, ElementaryReaction& rNew);
|
||||
|
|
|
|||
|
|
@ -58,7 +58,6 @@ public:
|
|||
* @param work array of size workSize() containing cached
|
||||
* temperature-dependent intermediate results from a prior call
|
||||
* to updateTemp.
|
||||
*
|
||||
* @return Returns the value of the falloff function \f$ F \f$ defined above
|
||||
*/
|
||||
virtual doublereal F(doublereal pr, const doublereal* work) const {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
/**
|
||||
* @file GasKinetics.h
|
||||
*
|
||||
* @ingroup chemkinetics
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -104,7 +104,6 @@ public:
|
|||
*
|
||||
* @param ifuncOverride One of the values defined in @ref solvesp_methods.
|
||||
* The default is -1, which means that the program will decide.
|
||||
*
|
||||
* @param timeScaleOverride When a pseudo transient is
|
||||
* selected this value can be used to override
|
||||
* the default time scale for integration which
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
/**
|
||||
* @file InterfaceKinetics.h
|
||||
*
|
||||
* @ingroup chemkinetics
|
||||
*/
|
||||
// Copyright 2001 California Institute of Technology
|
||||
|
|
|
|||
|
|
@ -124,7 +124,6 @@ namespace Cantera
|
|||
*/
|
||||
class Kinetics
|
||||
{
|
||||
|
||||
public:
|
||||
/**
|
||||
* @name Constructors and General Information about Mechanism
|
||||
|
|
|
|||
|
|
@ -60,7 +60,6 @@ public:
|
|||
* @param th Vector of phases. The first phase is the phase in which
|
||||
* the reactions occur, and the subsequent phases (if any)
|
||||
* are e.g. bulk phases adjacent to a reacting surface.
|
||||
*
|
||||
* @return Pointer to the new kinetics manager.
|
||||
*/
|
||||
virtual Kinetics* newKinetics(XML_Node& phase, std::vector<ThermoPhase*> th);
|
||||
|
|
|
|||
|
|
@ -19,9 +19,7 @@ namespace Cantera
|
|||
template<class R>
|
||||
class Rate1
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
Rate1() {}
|
||||
virtual ~Rate1() {}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
/**
|
||||
* @file ReactionPath.h
|
||||
*
|
||||
* Classes for reaction path analysis.
|
||||
*/
|
||||
|
||||
|
|
@ -95,9 +94,8 @@ public:
|
|||
virtual ~Path() {}
|
||||
|
||||
/**
|
||||
* Add a reaction to the path. Increment the flow from this
|
||||
* reaction, the total flow, and the flow associated with this
|
||||
* label.
|
||||
* Add a reaction to the path. Increment the flow from this reaction, the
|
||||
* total flow, and the flow associated with this label.
|
||||
*/
|
||||
void addReaction(size_t rxnNumber, doublereal value,
|
||||
const std::string& label = "");
|
||||
|
|
|
|||
|
|
@ -1,10 +1,8 @@
|
|||
/**
|
||||
* @file RxnRates.h
|
||||
*
|
||||
*/
|
||||
// Copyright 2001 California Institute of Technology
|
||||
|
||||
|
||||
#ifndef CT_RXNRATES_H
|
||||
#define CT_RXNRATES_H
|
||||
|
||||
|
|
@ -26,7 +24,6 @@ class Array2D;
|
|||
* \f[
|
||||
* k_f = A T^b \exp (-E/RT)
|
||||
* \f]
|
||||
*
|
||||
*/
|
||||
class Arrhenius
|
||||
{
|
||||
|
|
@ -148,9 +145,8 @@ public:
|
|||
/**
|
||||
* Update the value the rate constant.
|
||||
*
|
||||
* This function returns the actual value of the rate constant.
|
||||
* It can be safely called for negative values of the pre-exponential
|
||||
* factor.
|
||||
* This function returns the actual value of the rate constant. It can be
|
||||
* safely called for negative values of the pre-exponential factor.
|
||||
*/
|
||||
doublereal updateRC(doublereal logT, doublereal recipT) const {
|
||||
return m_A * std::exp(std::log(10.0)*m_acov + m_b*logT -
|
||||
|
|
|
|||
|
|
@ -123,7 +123,6 @@ namespace Cantera
|
|||
* real stoichiometric coefficients are used. Shouldn't be that
|
||||
* hard to do, and they occur in engineering simulations with some
|
||||
* regularity.
|
||||
*
|
||||
*/
|
||||
|
||||
static doublereal ppow(doublereal x, doublereal order)
|
||||
|
|
@ -395,7 +394,6 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
|
||||
//! Length of the m_ic vector
|
||||
/*!
|
||||
* This is the number of species which participate in the reaction order
|
||||
|
|
|
|||
|
|
@ -86,14 +86,12 @@ bool importKinetics(const XML_Node& phase, std::vector<ThermoPhase*> th,
|
|||
*
|
||||
* @param root pointer to the XML tree which will be searched to find the
|
||||
* XML phase element.
|
||||
*
|
||||
* @param id Name of the phase to be searched for.
|
||||
* @param nm Name of the XML element. Should be "phase"
|
||||
* @param th Pointer to a bare ThermoPhase object, which will be initialized
|
||||
* by this operation.
|
||||
* @param kin Pointer to a bare Kinetics object, which will be initialized
|
||||
* by this operation to a homogeneous kinetics manager
|
||||
*
|
||||
* @return
|
||||
* Returns true if all went well. If there are errors, it will return false.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -91,9 +91,6 @@ const int BUTLERVOLMER_RXN = 26;
|
|||
//! form dependence on delta G of reaction.
|
||||
const int SURFACEAFFINITY_RXN = 27;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* A reaction occurring at a one-dimensional interface between two surface phases.
|
||||
* NOTE: This is a bit ambiguous, and will be taken out in the future
|
||||
|
|
|
|||
|
|
@ -146,7 +146,6 @@ public:
|
|||
/*!
|
||||
* @param surfChemPtr Pointer to the ImplicitSurfChem object that
|
||||
* defines the surface problem to be solved.
|
||||
*
|
||||
* @param bulkFunc Integer representing how the bulk phases should be
|
||||
* handled. See @ref solvesp_bulkFunc. Currently,
|
||||
* only the default value of BULK_ETCH is supported.
|
||||
|
|
@ -176,17 +175,12 @@ public:
|
|||
*
|
||||
* @param ifunc Determines the type of solution algorithm to be used. See
|
||||
* @ref solvesp_methods for possible values.
|
||||
*
|
||||
* @param time_scale Time over which to integrate the surface equations,
|
||||
* where applicable
|
||||
*
|
||||
* @param TKelvin Temperature (kelvin)
|
||||
*
|
||||
* @param PGas Pressure (pascals)
|
||||
*
|
||||
* @param reltol Relative tolerance to use
|
||||
* @param abstol absolute tolerance.
|
||||
*
|
||||
* @return Returns 1 if the surface problem is successfully solved.
|
||||
* Returns -1 if the surface problem wasn't solved successfully.
|
||||
* Note the actual converged solution is returned as part of the
|
||||
|
|
|
|||
|
|
@ -32,9 +32,7 @@ namespace Cantera
|
|||
*/
|
||||
class BandMatrix : public GeneralMatrix
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! Base Constructor
|
||||
/*!
|
||||
* * Create an \c 0 by \c 0 matrix, and initialize all elements to \c 0.
|
||||
|
|
@ -91,7 +89,6 @@ public:
|
|||
*
|
||||
* @param i row
|
||||
* @param j column
|
||||
*
|
||||
* @return Returns a reference to the value of the matrix entry
|
||||
*/
|
||||
doublereal& value(size_t i, size_t j);
|
||||
|
|
@ -101,7 +98,6 @@ public:
|
|||
* This method does not alter the array.
|
||||
* @param i row
|
||||
* @param j column
|
||||
*
|
||||
* @return Returns the value of the matrix entry
|
||||
*/
|
||||
doublereal value(size_t i, size_t j) const;
|
||||
|
|
@ -110,7 +106,6 @@ public:
|
|||
/*!
|
||||
* @param i row
|
||||
* @param j column
|
||||
*
|
||||
* @return Returns the index of the matrix entry
|
||||
*/
|
||||
size_t index(size_t i, size_t j) const;
|
||||
|
|
@ -122,7 +117,6 @@ public:
|
|||
*
|
||||
* @param i row
|
||||
* @param j column
|
||||
*
|
||||
* @return Returns the value of the matrix entry
|
||||
*/
|
||||
doublereal _value(size_t i, size_t j) const;
|
||||
|
|
@ -134,7 +128,6 @@ public:
|
|||
* @param iStruct OUTPUT Pointer to a vector of ints that describe the structure of the matrix.
|
||||
* istruct[0] = kl
|
||||
* istruct[1] = ku
|
||||
*
|
||||
* @return returns the number of rows and columns in the matrix.
|
||||
*/
|
||||
virtual size_t nRowsAndStruct(size_t* const iStruct = 0) const;
|
||||
|
|
@ -172,7 +165,6 @@ public:
|
|||
/*!
|
||||
* @param b INPUT RHS of the problem
|
||||
* @param x OUTPUT solution to the problem
|
||||
*
|
||||
* @return Return a success flag
|
||||
* 0 indicates a success
|
||||
* ~0 Some error occurred, see the LAPACK documentation
|
||||
|
|
@ -185,7 +177,6 @@ public:
|
|||
* OUTPUT solution to the problem
|
||||
* @param nrhs Number of right hand sides to solve
|
||||
* @param ldb Leading dimension of `b`. Default is nColumns()
|
||||
*
|
||||
* @return Return a success flag
|
||||
* 0 indicates a success
|
||||
* ~0 Some error occurred, see the LAPACK documentation
|
||||
|
|
@ -223,7 +214,6 @@ public:
|
|||
* The matrix must have been previously factored using the LU algorithm
|
||||
*
|
||||
* @param a1norm Norm of the matrix
|
||||
*
|
||||
* @return returns the inverse of the condition number
|
||||
*/
|
||||
virtual doublereal rcond(doublereal a1norm);
|
||||
|
|
@ -255,7 +245,6 @@ public:
|
|||
* double a_i_j = colP_j[kl + ku + i - j];
|
||||
*
|
||||
* @param j Value of the column
|
||||
*
|
||||
* @return Returns a pointer to the top of the column
|
||||
*/
|
||||
virtual doublereal* ptrColumn(size_t j);
|
||||
|
|
@ -276,7 +265,6 @@ public:
|
|||
* The smallest row is returned along with the largest coefficient in that row
|
||||
*
|
||||
* @param valueSmall OUTPUT value of the largest coefficient in the smallest row
|
||||
*
|
||||
* @return index of the row that is most nearly zero
|
||||
*/
|
||||
virtual size_t checkRows(doublereal& valueSmall) const;
|
||||
|
|
@ -287,13 +275,11 @@ public:
|
|||
* The smallest column is returned along with the largest coefficient in that column
|
||||
*
|
||||
* @param valueSmall OUTPUT value of the largest coefficient in the smallest column
|
||||
*
|
||||
* @return index of the column that is most nearly zero
|
||||
*/
|
||||
virtual size_t checkColumns(doublereal& valueSmall) const;
|
||||
|
||||
protected:
|
||||
|
||||
//! Matrix data
|
||||
vector_fp data;
|
||||
|
||||
|
|
|
|||
|
|
@ -116,7 +116,6 @@ private:
|
|||
//! Indicates whether the sensitivities stored in m_yS have been updated
|
||||
//! for at the current integrator time.
|
||||
bool m_sens_ok;
|
||||
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
|
|
|||
|
|
@ -60,14 +60,12 @@ const int cDirect = 0;
|
|||
const int cKrylov = 1;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Wrapper for DAE solvers
|
||||
*/
|
||||
class DAE_Solver
|
||||
{
|
||||
public:
|
||||
|
||||
DAE_Solver(ResidJacEval& f) :
|
||||
m_resid(f),
|
||||
m_neq(f.nEquations()),
|
||||
|
|
@ -237,16 +235,13 @@ public:
|
|||
}
|
||||
|
||||
protected:
|
||||
|
||||
doublereal m_dummy;
|
||||
|
||||
ResidJacEval& m_resid;
|
||||
|
||||
//! Number of total equations in the system
|
||||
integer m_neq;
|
||||
doublereal m_time;
|
||||
|
||||
|
||||
private:
|
||||
void warn(const std::string& msg) const {
|
||||
writelog(">>>> Warning: method "+msg+" of base class "
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
// Copyright 2001 California Institute of Technology
|
||||
|
||||
|
||||
#ifndef CT_DENSEMATRIX_H
|
||||
#define CT_DENSEMATRIX_H
|
||||
|
||||
|
|
@ -26,7 +25,6 @@ namespace Cantera
|
|||
*
|
||||
*/
|
||||
|
||||
|
||||
//! Exception thrown when an LAPACK error is encountered associated with inverting or solving a matrix
|
||||
/*!
|
||||
* A named error condition is used so that the calling code may differentiate this type of error
|
||||
|
|
@ -35,7 +33,6 @@ namespace Cantera
|
|||
class CELapackError : public CanteraError
|
||||
{
|
||||
public:
|
||||
|
||||
//! Constructor passes through to main Cantera error handler
|
||||
/*!
|
||||
* @param routine Name of calling routine
|
||||
|
|
@ -44,7 +41,6 @@ public:
|
|||
CELapackError(const std::string& routine, const std::string& msg) :
|
||||
CanteraError(routine + " LAPACK ERROR", msg) {
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
//! A class for full (non-sparse) matrices with Fortran-compatible
|
||||
|
|
|
|||
|
|
@ -35,8 +35,7 @@ const int ConstFuncType = 110;
|
|||
class TimesConstant1;
|
||||
|
||||
/**
|
||||
* Base class for 'functor' classes that evaluate a function of
|
||||
* one variable.
|
||||
* Base class for 'functor' classes that evaluate a function of one variable.
|
||||
*/
|
||||
class Func1
|
||||
{
|
||||
|
|
@ -85,7 +84,6 @@ public:
|
|||
|
||||
virtual std::string write(const std::string& arg) const;
|
||||
|
||||
|
||||
//! accessor function for the stored constant
|
||||
doublereal c() const;
|
||||
|
||||
|
|
@ -101,15 +99,12 @@ public:
|
|||
//! Return the order of the function, if it makes sense
|
||||
virtual int order() const;
|
||||
|
||||
|
||||
Func1& func1_dup() const;
|
||||
|
||||
|
||||
Func1& func2_dup() const;
|
||||
|
||||
Func1* parent() const;
|
||||
|
||||
|
||||
void setParent(Func1* p);
|
||||
|
||||
protected:
|
||||
|
|
@ -135,7 +130,6 @@ Func1& newPlusConstFunction(Func1& f1, doublereal c);
|
|||
class Sin1 : public Func1
|
||||
{
|
||||
public:
|
||||
|
||||
Sin1(doublereal omega = 1.0) :
|
||||
Func1() {
|
||||
m_c = omega;
|
||||
|
|
@ -312,7 +306,6 @@ public:
|
|||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sum of two functions.
|
||||
*/
|
||||
|
|
@ -434,7 +427,6 @@ public:
|
|||
}
|
||||
|
||||
virtual std::string write(const std::string& arg) const;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -766,10 +758,8 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
//
|
||||
// The functors below are the old-style ones. They still work,
|
||||
// but can't do derivatives.
|
||||
//
|
||||
|
||||
/**
|
||||
* A Gaussian.
|
||||
|
|
@ -852,7 +842,6 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
|
||||
virtual Func1& duplicate() const {
|
||||
Poly1* np = new Poly1(*this);
|
||||
return *((Func1*)np);
|
||||
|
|
@ -1045,5 +1034,4 @@ protected:
|
|||
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -97,7 +97,6 @@ public:
|
|||
* The matrix must have been previously factored using the LU algorithm
|
||||
*
|
||||
* @param a1norm Norm of the matrix
|
||||
*
|
||||
* @return returns the inverse of the condition number
|
||||
*/
|
||||
virtual doublereal rcond(doublereal a1norm) = 0;
|
||||
|
|
@ -124,7 +123,6 @@ public:
|
|||
//! Return the size and structure of the matrix
|
||||
/*!
|
||||
* @param iStruct OUTPUT Pointer to a vector of ints that describe the structure of the matrix.
|
||||
*
|
||||
* @return returns the number of rows and columns in the matrix.
|
||||
*/
|
||||
virtual size_t nRowsAndStruct(size_t* const iStruct = 0) const = 0;
|
||||
|
|
@ -151,7 +149,6 @@ public:
|
|||
//! Return a pointer to the top of column j, columns are assumed to be contiguous in memory
|
||||
/*!
|
||||
* @param j Value of the column
|
||||
*
|
||||
* @return Returns a pointer to the top of the column
|
||||
*/
|
||||
virtual doublereal* ptrColumn(size_t j) = 0;
|
||||
|
|
@ -202,7 +199,6 @@ public:
|
|||
* The smallest row is returned along with the largest coefficient in that row
|
||||
*
|
||||
* @param valueSmall OUTPUT value of the largest coefficient in the smallest row
|
||||
*
|
||||
* @return index of the row that is most nearly zero
|
||||
*/
|
||||
virtual size_t checkRows(doublereal& valueSmall) const = 0;
|
||||
|
|
@ -213,7 +209,6 @@ public:
|
|||
* The smallest column is returned along with the largest coefficient in that column
|
||||
*
|
||||
* @param valueSmall OUTPUT value of the largest coefficient in the smallest column
|
||||
*
|
||||
* @return index of the column that is most nearly zero
|
||||
*/
|
||||
virtual size_t checkColumns(doublereal& valueSmall) const = 0;
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@ class ResidData; // forward reference
|
|||
class IDA_Solver : public DAE_Solver
|
||||
{
|
||||
public:
|
||||
|
||||
//! Constructor.
|
||||
/*!
|
||||
* Default settings: dense Jacobian, no user-supplied Jacobian function, Newton iteration.
|
||||
|
|
@ -97,9 +96,7 @@ public:
|
|||
|
||||
//! Set the form of the Jacobian
|
||||
/*!
|
||||
*
|
||||
* @param formJac Form of the Jacobian
|
||||
*
|
||||
* 0 numerical Jacobian
|
||||
* 1 analytical Jacobian given by the evalJacobianDP() function
|
||||
*/
|
||||
|
|
@ -136,7 +133,6 @@ public:
|
|||
//! Step the system to a final value of the time
|
||||
/*!
|
||||
* @param tout Final value of the time
|
||||
*
|
||||
* @return Returns the IDASolve() return flag
|
||||
*
|
||||
* The return values for IDASolve are described below.
|
||||
|
|
|
|||
|
|
@ -202,13 +202,11 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
|
||||
doublereal m_dummy;
|
||||
void warn(const std::string& msg) const {
|
||||
writelog(">>>> Warning: method "+msg+" of base class "
|
||||
+"Integrator called. Nothing done.\n");
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
// defined in ODE_integrators.cpp
|
||||
|
|
|
|||
|
|
@ -126,7 +126,6 @@ public:
|
|||
//! Return the number of equations in the equation system
|
||||
virtual int nEquations() const = 0;
|
||||
|
||||
|
||||
//! Write out to a file or to standard output the current solution
|
||||
/*!
|
||||
* ievent is a description of the event that caused this
|
||||
|
|
@ -162,7 +161,6 @@ public:
|
|||
}
|
||||
|
||||
protected:
|
||||
|
||||
//! Mapping vector that stores whether a degree of freedom is a DAE or not
|
||||
/*!
|
||||
* The first index is the equation number. The second index is 1 if it is a DAE,
|
||||
|
|
|
|||
|
|
@ -116,7 +116,6 @@ public:
|
|||
* @param t Time (input)
|
||||
* @param ybase Solution vector (input, output)
|
||||
* @param step Proposed step in the solution that will be cropped
|
||||
*
|
||||
* @return Return the norm of the amount of filtering
|
||||
*/
|
||||
virtual doublereal filterNewStep(const doublereal t, const doublereal* const ybase,
|
||||
|
|
@ -129,7 +128,6 @@ public:
|
|||
*
|
||||
* @param t Time (input)
|
||||
* @param y Solution vector (input, output)
|
||||
*
|
||||
* @return Return the norm of the amount of filtering
|
||||
*/
|
||||
virtual doublereal filterSolnPrediction(const doublereal t, doublereal* const y);
|
||||
|
|
@ -150,7 +148,6 @@ public:
|
|||
* @param delta_t The current value of the time step (input)
|
||||
* @param y Solution vector (input, do not modify)
|
||||
* @param ydot Rate of change of solution vector. (input, do not modify)
|
||||
*
|
||||
* @return Returns a flag to indicate that operation is successful.
|
||||
* 1 Means a successful operation
|
||||
* -0 or neg value Means an unsuccessful operation
|
||||
|
|
@ -165,7 +162,6 @@ public:
|
|||
*
|
||||
* @return If true, the the time stepping is stopped. If false, then time stepping is stopped if t >= tout
|
||||
* Defaults to false.
|
||||
*
|
||||
* @param t Time (input)
|
||||
* @param delta_t The current value of the time step (input)
|
||||
* @param y Solution vector (input, do not modify)
|
||||
|
|
@ -188,7 +184,6 @@ public:
|
|||
* @param ydot Rate of change of solution vector. (input, do not modify)
|
||||
* @param delta_y Value of the delta to be used in calculating the numerical Jacobian
|
||||
* @param solnWeights Value of the solution weights that are used in determining convergence (default = 0)
|
||||
*
|
||||
* @return Returns a flag to indicate that operation is successful.
|
||||
* 1 Means a successful operation
|
||||
* -0 or neg value Means an unsuccessful operation
|
||||
|
|
@ -219,7 +214,6 @@ public:
|
|||
* 1 Called at the end of every successful time step
|
||||
* -1 Called at the end of every unsuccessful time step
|
||||
* 2 Called at the end of every call to integrateRJE()
|
||||
*
|
||||
* @param t Time (input)
|
||||
* @param delta_t The current value of the time step (input)
|
||||
* @param y Solution vector (input, do not modify)
|
||||
|
|
@ -258,7 +252,6 @@ public:
|
|||
* @param matrix Pointer to the current Jacobian (if zero, it's already been factored)
|
||||
* @param nrows offsets for the matrix
|
||||
* @param rhs residual vector. This also needs to be LHS multiplied by M
|
||||
*
|
||||
* @return Returns a flag to indicate that operation is successful.
|
||||
* 1 Means a successful operation
|
||||
* -0 or neg value Means an unsuccessful operation
|
||||
|
|
@ -277,7 +270,6 @@ public:
|
|||
* @param ydot Rate of change of solution vector. (input, do not modify)
|
||||
* @param J Reference to the SquareMatrix object to be calculated (output)
|
||||
* @param resid Value of the residual that is computed (output)
|
||||
*
|
||||
* @return Returns a flag to indicate that operation is successful.
|
||||
* 1 Means a successful operation
|
||||
* -0 or neg value Means an unsuccessful operation
|
||||
|
|
@ -298,7 +290,6 @@ public:
|
|||
* @param jacobianColPts Pointer to the vector of pts to columns of the SquareMatrix
|
||||
* object to be calculated (output)
|
||||
* @param resid Value of the residual that is computed (output)
|
||||
*
|
||||
* @return Returns a flag to indicate that operation is successful.
|
||||
* 1 Means a successful operation
|
||||
* -0 or neg value Means an unsuccessful operation
|
||||
|
|
|
|||
|
|
@ -126,7 +126,6 @@ namespace Cantera
|
|||
*
|
||||
* @todo Noise
|
||||
* @todo General Search to be done when all else fails
|
||||
*
|
||||
*/
|
||||
class RootFind
|
||||
{
|
||||
|
|
@ -186,7 +185,6 @@ private:
|
|||
* @param x1 First number
|
||||
* @param x2 second number
|
||||
* @param factor Multiplicative factor to multiple deltaX with
|
||||
*
|
||||
* @return Returns a boolean indicating whether the two numbers are the same or not.
|
||||
*/
|
||||
bool theSame(doublereal x2, doublereal x1, doublereal factor = 1.0) const;
|
||||
|
|
@ -209,7 +207,6 @@ public:
|
|||
* @param xbest Returns the x that satisfies the function
|
||||
* On input, xbest should contain the best estimate of the solution.
|
||||
* An attempt to find the solution near xbest is made.
|
||||
*
|
||||
* @return:
|
||||
* 0 = ROOTFIND_SUCCESS Found function
|
||||
* -1 = ROOTFIND_FAILEDCONVERGENCE Failed to find the answer
|
||||
|
|
@ -247,7 +244,6 @@ public:
|
|||
|
||||
//! Set the print level from the rootfinder
|
||||
/*!
|
||||
*
|
||||
* 0 -> absolutely nothing is printed for a single time step.
|
||||
* 1 -> One line summary per solve_nonlinear call
|
||||
* 2 -> short description, points of interest: Table of nonlinear solve - one line per iteration
|
||||
|
|
|
|||
|
|
@ -79,7 +79,6 @@ extern "C" {
|
|||
const integer* incX, const doublereal* beta, doublereal* y,
|
||||
const integer* incY, ftnlen trsize);
|
||||
#else
|
||||
|
||||
int _DGEMV_(const char* transpose, ftnlen trsize,
|
||||
const integer* m, const integer* n, const doublereal* alpha,
|
||||
const doublereal* a, const integer* lda, const doublereal* x,
|
||||
|
|
@ -92,18 +91,14 @@ extern "C" {
|
|||
integer* info);
|
||||
|
||||
#ifdef LAPACK_FTN_STRING_LEN_AT_END
|
||||
|
||||
int _DGETRS_(const char* transpose, const integer* n,
|
||||
const integer* nrhs, doublereal* a, const integer* lda,
|
||||
integer* ipiv, doublereal* b, const integer* ldb,
|
||||
integer* info, ftnlen trsize);
|
||||
|
||||
#else
|
||||
|
||||
int _DGETRS_(const char* transpose, ftnlen trsize, const integer* n,
|
||||
const integer* nrhs, const doublereal* a, const integer* lda,
|
||||
integer* ipiv, doublereal* b, const integer* ldb, integer* info);
|
||||
|
||||
#endif
|
||||
|
||||
int _DGETRI_(const integer* n, doublereal* a, const integer* lda,
|
||||
|
|
@ -189,7 +184,6 @@ extern "C" {
|
|||
doublereal* b, const integer* ldb, integer* info);
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef LAPACK_FTN_STRING_LEN_AT_END
|
||||
int _DGECON_(const char* norm, const integer* n, doublereal* a, const integer* lda,
|
||||
const doublereal* rnorm, const doublereal* rcond,
|
||||
|
|
@ -200,7 +194,6 @@ extern "C" {
|
|||
doublereal* work, const integer* iwork, integer* info);
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef LAPACK_FTN_STRING_LEN_AT_END
|
||||
int _DGBCON_(const char* norm, const integer* n, integer* kl, integer* ku, doublereal* ab, const integer* ldab,
|
||||
const integer* ipiv, const doublereal* anorm, const doublereal* rcond,
|
||||
|
|
@ -433,7 +426,6 @@ inline void ct_dtrtrs(ctlapack::upperlower_t uplot, ctlapack::transpose_t trans,
|
|||
info = f_info;
|
||||
}
|
||||
|
||||
//!
|
||||
/*!
|
||||
* @param work Must be dimensioned equal to greater than 3N
|
||||
* @param iwork Must be dimensioned equal to or greater than N
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ namespace Cantera
|
|||
* @param x value of the x coordinate
|
||||
* @param xpts value of the grid points
|
||||
* @param fpts value of the interpolant at the grid points
|
||||
*
|
||||
* @return Returned value is the value of of the interpolated
|
||||
* function at x.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -28,29 +28,23 @@ namespace Cantera
|
|||
* point C.
|
||||
*
|
||||
* @param n The number of data points.
|
||||
*
|
||||
* @param x A set of grid points on which the data is specified.
|
||||
* The array of values of the independent variable. These
|
||||
* values may appear in any order and need not all be
|
||||
* distinct. There are n of them.
|
||||
*
|
||||
* @param y array of corresponding function values. There are n of them
|
||||
*
|
||||
* @param w array of positive values to be used as weights. If
|
||||
* W[0] is negative, DPOLFT will set all the weights
|
||||
* to 1.0, which means unweighted least squares error
|
||||
* will be minimized. To minimize relative error, the
|
||||
* user should set the weights to: W(I) = 1.0/Y(I)**2,
|
||||
* I = 1,...,N .
|
||||
*
|
||||
* @param maxdeg maximum degree to be allowed for polynomial fit.
|
||||
* MAXDEG may be any non-negative integer less than N.
|
||||
* Note -- MAXDEG cannot be equal to N-1 when a
|
||||
* statistical test is to be used for degree selection,
|
||||
* i.e., when input value of EPS is negative.
|
||||
*
|
||||
* @param ndeg output degree of the fit computed.
|
||||
*
|
||||
* @param eps Specifies the criterion to be used in determining
|
||||
* the degree of fit to be computed.
|
||||
* (1) If EPS is input negative, DPOLFT chooses the
|
||||
|
|
@ -70,12 +64,10 @@ namespace Cantera
|
|||
* fitted polynomial. DPOLFT will increase the
|
||||
* degree of fit until this criterion is met or
|
||||
* until the maximum degree is reached.
|
||||
*
|
||||
* @param r Output vector containing the first ndeg+1 Taylor coefficients
|
||||
*
|
||||
* P(X) = r[0] + r[1]*(X-C) + ... + r[ndeg] * (X-C)**ndeg
|
||||
* ( here C = 0.0)
|
||||
*
|
||||
* @return Returned value is the value of the rms of the interpolated
|
||||
* function at x.
|
||||
*/
|
||||
|
|
@ -84,5 +76,3 @@ doublereal polyfit(int n, doublereal* x, doublereal* y, doublereal* w,
|
|||
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -400,7 +400,6 @@ public:
|
|||
* the start of its variables in the global solution vector.
|
||||
*/
|
||||
void locate() {
|
||||
|
||||
if (m_left) {
|
||||
// there is a domain on the left, so the first grid point
|
||||
// in this domain is one more than the last one on the left
|
||||
|
|
|
|||
|
|
@ -211,7 +211,6 @@ public:
|
|||
class Symm1D : public Bdry1D
|
||||
{
|
||||
public:
|
||||
|
||||
Symm1D() : Bdry1D() {
|
||||
m_type = cSymmType;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ namespace Cantera
|
|||
class Sim1D : public OneDim
|
||||
{
|
||||
public:
|
||||
|
||||
//! Default constructor.
|
||||
/*!
|
||||
* This constructor is provided to make the class default-constructible,
|
||||
|
|
@ -39,8 +38,7 @@ public:
|
|||
/**
|
||||
* @name Setting initial values
|
||||
*
|
||||
* These methods are used to set the initial values of
|
||||
* solution components.
|
||||
* These methods are used to set the initial values of solution components.
|
||||
*/
|
||||
//@{
|
||||
|
||||
|
|
|
|||
|
|
@ -157,14 +157,14 @@ public:
|
|||
|
||||
void solveEnergyEqn(size_t j=npos) {
|
||||
bool changed = false;
|
||||
if (j == npos)
|
||||
if (j == npos) {
|
||||
for (size_t i = 0; i < m_points; i++) {
|
||||
if (!m_do_energy[i]) {
|
||||
changed = true;
|
||||
}
|
||||
m_do_energy[i] = true;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if (!m_do_energy[j]) {
|
||||
changed = true;
|
||||
}
|
||||
|
|
@ -215,14 +215,14 @@ public:
|
|||
|
||||
void fixTemperature(size_t j=npos) {
|
||||
bool changed = false;
|
||||
if (j == npos)
|
||||
if (j == npos) {
|
||||
for (size_t i = 0; i < m_points; i++) {
|
||||
if (m_do_energy[i]) {
|
||||
changed = true;
|
||||
}
|
||||
m_do_energy[i] = false;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if (m_do_energy[j]) {
|
||||
changed = true;
|
||||
}
|
||||
|
|
@ -333,7 +333,6 @@ protected:
|
|||
return (c2/(z(j+1) - z(j)) - c1/(z(j) - z(j-1)))/(z(j+1) - z(j-1));
|
||||
}
|
||||
|
||||
|
||||
//! @name Solution components
|
||||
//! @{
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ namespace Cantera
|
|||
class Adsorbate : public SpeciesThermoInterpType
|
||||
{
|
||||
public:
|
||||
|
||||
//! Empty constructor
|
||||
Adsorbate() :
|
||||
m_nFreqs(0) {
|
||||
|
|
@ -116,7 +115,6 @@ protected:
|
|||
doublereal _entropy_R(double T) const {
|
||||
return _energy_RT(T) - _free_energy_RT(T);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@
|
|||
*/
|
||||
// Copyright 2001 California Institute of Technology
|
||||
|
||||
|
||||
#ifndef CT_CONSTCPPOLY_H
|
||||
#define CT_CONSTCPPOLY_H
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,6 @@ class PDSS_Water;
|
|||
* the \f$ \triangle \f$ symbol. The reference state symbol is now
|
||||
* \f$ \triangle, ref \f$.
|
||||
*
|
||||
*
|
||||
* It is assumed that the reference state thermodynamics may be
|
||||
* obtained by a pointer to a populated species thermodynamic property
|
||||
* manager class (see ThermoPhase::m_spthermo). How to relate pressure
|
||||
|
|
@ -133,7 +132,6 @@ class PDSS_Water;
|
|||
*
|
||||
* Individual activity coefficients of ions can not be independently measured. Instead,
|
||||
* only binary pairs forming electroneutral solutions can be measured.
|
||||
|
||||
*
|
||||
* <H3> Ionic Strength </H3>
|
||||
*
|
||||
|
|
@ -243,7 +241,6 @@ class PDSS_Water;
|
|||
* assumed for the Debye-Huckel term. The model is set by the
|
||||
* internal parameter #m_formDH. We will now describe each category in its own section.
|
||||
*
|
||||
*
|
||||
* <H3> Debye-Huckel Dilute Limit </H3>
|
||||
*
|
||||
* DHFORM_DILUTE_LIMIT = 0
|
||||
|
|
@ -264,7 +261,6 @@ class PDSS_Water;
|
|||
* \ln(a_o) = \frac{X_o - 1.0}{X_o} + \frac{ 2 A_{Debye} \tilde{M}_o}{3} (I)^{3/2}
|
||||
* \f]
|
||||
*
|
||||
*
|
||||
* <H3> Bdot Formulation </H3>
|
||||
*
|
||||
* DHFORM_BDOT_AK = 1
|
||||
|
|
@ -297,7 +293,6 @@ class PDSS_Water;
|
|||
* Additionally, Helgeson's formulation for the water activity is offered as an
|
||||
* alternative.
|
||||
*
|
||||
*
|
||||
* <H3> Bdot Formulation with Uniform Size Parameter in the Denominator </H3>
|
||||
*
|
||||
* DHFORM_BDOT_AUNIFORM = 2
|
||||
|
|
@ -317,7 +312,6 @@ class PDSS_Water;
|
|||
* - \frac{\log(10)}{2} \tilde{M}_o I \sum_k{ B^{dot}_k m_k}
|
||||
* \f]
|
||||
*
|
||||
*
|
||||
* <H3> Beta_IJ formulation </H3>
|
||||
*
|
||||
* DHFORM_BETAIJ = 3
|
||||
|
|
@ -593,8 +587,6 @@ class PDSS_Water;
|
|||
<elementArray datasrc="elements.xml"> O H Na Cl </elementArray>
|
||||
</phase>
|
||||
@endverbatim
|
||||
*
|
||||
*
|
||||
*/
|
||||
class DebyeHuckel : public MolalityVPSSTP
|
||||
{
|
||||
|
|
@ -1075,7 +1067,6 @@ public:
|
|||
*
|
||||
* @param temperature Temperature in kelvin. Defaults to -1, in which
|
||||
* case the temperature of the phase is assumed.
|
||||
*
|
||||
* @param pressure Pressure (Pa). Defaults to -1, in which
|
||||
* case the pressure of the phase is assumed.
|
||||
*/
|
||||
|
|
@ -1092,7 +1083,6 @@ public:
|
|||
*
|
||||
* @param temperature Temperature in kelvin. Defaults to -1, in which
|
||||
* case the temperature of the phase is assumed.
|
||||
*
|
||||
* @param pressure Pressure (Pa). Defaults to -1, in which
|
||||
* case the pressure of the phase is assumed.
|
||||
*/
|
||||
|
|
@ -1109,7 +1099,6 @@ public:
|
|||
*
|
||||
* @param temperature Temperature in kelvin. Defaults to -1, in which
|
||||
* case the temperature of the phase is assumed.
|
||||
*
|
||||
* @param pressure Pressure (Pa). Defaults to -1, in which
|
||||
* case the pressure of the phase is assumed.
|
||||
*/
|
||||
|
|
@ -1126,7 +1115,6 @@ public:
|
|||
*
|
||||
* @param temperature Temperature in kelvin. Defaults to -1, in which
|
||||
* case the temperature of the phase is assumed.
|
||||
*
|
||||
* @param pressure Pressure (Pa). Defaults to -1, in which
|
||||
* case the pressure of the phase is assumed.
|
||||
*/
|
||||
|
|
@ -1249,7 +1237,6 @@ protected:
|
|||
double m_maxIionicStrength;
|
||||
|
||||
public:
|
||||
|
||||
/**
|
||||
* If true, then the fixed for of Helgeson's activity
|
||||
* for water is used instead of the rigorous form
|
||||
|
|
@ -1259,7 +1246,6 @@ public:
|
|||
*/
|
||||
bool m_useHelgesonFixedForm;
|
||||
protected:
|
||||
|
||||
//! Stoichiometric ionic strength on the molality scale
|
||||
mutable double m_IionicMolalityStoich;
|
||||
|
||||
|
|
|
|||
|
|
@ -104,7 +104,6 @@ class WaterProps;
|
|||
* the \f$ \triangle \f$ symbol. The reference state symbol is now
|
||||
* \f$ \triangle, ref \f$.
|
||||
*
|
||||
*
|
||||
* It is assumed that the reference state thermodynamics may be
|
||||
* obtained by a pointer to a populated species thermodynamic property
|
||||
* manager class (see ThermoPhase::m_spthermo). How to relate pressure
|
||||
|
|
@ -141,7 +140,6 @@ class WaterProps;
|
|||
* u^\triangle_k(T,P) = h^{\triangle,ref}_k(T) - P_{ref} \tilde{v}_k
|
||||
* \f]
|
||||
*
|
||||
*
|
||||
* The solute standard state heat capacity and entropy are independent
|
||||
* of pressure. The solute standard state Gibbs free energy is obtained
|
||||
* from the enthalpy and entropy functions.
|
||||
|
|
@ -186,7 +184,6 @@ class WaterProps;
|
|||
* and pressure. After this convention is applied, all other standard state
|
||||
* properties of ionic species contain meaningful information.
|
||||
*
|
||||
*
|
||||
* <H3> Ionic Strength </H3>
|
||||
*
|
||||
* Most of the parameterizations within the model use the ionic strength
|
||||
|
|
@ -196,7 +193,6 @@ class WaterProps;
|
|||
* I = \frac{1}{2} \sum_k{m_k z_k^2}
|
||||
* \f]
|
||||
*
|
||||
*
|
||||
* \f$ m_k \f$ is the molality of the kth species. \f$ z_k \f$ is the charge
|
||||
* of the kth species. Note, the ionic strength is a defined units quantity.
|
||||
* The molality has defined units of gmol kg-1, and therefore the ionic
|
||||
|
|
@ -249,7 +245,6 @@ class WaterProps;
|
|||
* </stoichIsMods>
|
||||
* @endcode
|
||||
*
|
||||
*
|
||||
* Because we need the concept of a weakly associated acid in order to calculated
|
||||
* \f$ I_s \f$ we need to
|
||||
* catalog all species in the phase. This is done using the following categories:
|
||||
|
|
@ -289,12 +284,10 @@ class WaterProps;
|
|||
* </electrolyteSpeciesType>
|
||||
* @endcode
|
||||
*
|
||||
*
|
||||
* Much of the species electrolyte type information is inferred from other information in the
|
||||
* input file. For example, as species which is charged is given the "chargedSpecies" default
|
||||
* category. A neutral solute species is put into the "nonpolarNeutral" category by default.
|
||||
*
|
||||
*
|
||||
* <H3> Specification of the Excess Gibbs Free Energy </H3>
|
||||
*
|
||||
* Pitzer's formulation may best be represented as a specification of the excess Gibbs
|
||||
|
|
@ -423,7 +416,6 @@ class WaterProps;
|
|||
* ternary contributions, which can be independently measured in
|
||||
* binary or ternary subsystems.
|
||||
*
|
||||
*
|
||||
* <H3> Multicomponent Activity Coefficients for Solutes </H3>
|
||||
*
|
||||
* The formulas for activity coefficients of solutes may be obtained by taking the
|
||||
|
|
@ -499,7 +491,6 @@ class WaterProps;
|
|||
* \ln(\gamma_N^\triangle) = 2 \left( \sum_i m_i \lambda_{iN}\right)
|
||||
* \f]
|
||||
*
|
||||
*
|
||||
* <H3> Activity of the Water Solvent </H3>
|
||||
*
|
||||
* The activity for the solvent water,\f$ a_o \f$, is not independent and must be
|
||||
|
|
@ -520,7 +511,6 @@ class WaterProps;
|
|||
* = - \frac{n_o}{\sum_{i \neq o}n_i} \ln(a_o)
|
||||
* \f]
|
||||
*
|
||||
*
|
||||
* The result is the following
|
||||
*
|
||||
* \f[
|
||||
|
|
@ -562,7 +552,6 @@ class WaterProps;
|
|||
* \Phi^{\phi}_{a{a'}} = \Phi_{a{a'}} + I \frac{d\Phi_{a{a'}}}{dI}
|
||||
* \f]
|
||||
*
|
||||
*
|
||||
* <H3> Temperature and Pressure Dependence of the Pitzer Parameters </H3>
|
||||
*
|
||||
* In general most of the coefficients introduced in the previous section may
|
||||
|
|
@ -682,7 +671,6 @@ class WaterProps;
|
|||
* \f$ \beta^{(2)}_{MX} \f$, \f$ \Theta_{cc'} \f$, \f$\Theta_{aa'} \f$,
|
||||
* \f$ \Psi_{c{c'}a} \f$ and \f$ \Psi_{ca{a'}} \f$.
|
||||
*
|
||||
*
|
||||
* <H3> Like-Charged Binary Ion Parameters and the Mixing Parameters </H3>
|
||||
*
|
||||
* The previous section contained the functions, \f$ \Phi_{c{c'}} \f$,
|
||||
|
|
@ -748,7 +736,6 @@ class WaterProps;
|
|||
</thetaCation>
|
||||
@endcode
|
||||
*
|
||||
*
|
||||
* <H3> Ternary Pitzer Parameters </H3>
|
||||
*
|
||||
* The \f$ \Psi_{c{c'}a} \f$ and \f$ \Psi_{ca{a'}} \f$ terms
|
||||
|
|
@ -870,7 +857,6 @@ class WaterProps;
|
|||
</activityCoefficients>
|
||||
@endverbatim
|
||||
*
|
||||
*
|
||||
* <H3> Specification of the Debye-Huckel Constant </H3>
|
||||
*
|
||||
* In the equations above, the formula for \f$ A_{Debye} \f$
|
||||
|
|
@ -933,7 +919,6 @@ class WaterProps;
|
|||
* </activityCoefficients>
|
||||
* @endcode
|
||||
*
|
||||
*
|
||||
* <H3> Temperature and Pressure Dependence of the Activity Coefficients </H3>
|
||||
*
|
||||
* Temperature dependence of the activity coefficients leads to nonzero terms
|
||||
|
|
@ -1010,7 +995,6 @@ class WaterProps;
|
|||
* and pressure multiplied by Mnaught (kg solvent / gmol solvent). The solvent
|
||||
* standard concentration is just equal to its standard state concentration.
|
||||
*
|
||||
*
|
||||
* This means that the
|
||||
* kinetics operator essentially works on an generalized concentration basis (kmol / m3),
|
||||
* with units for the kinetic rate constant specified
|
||||
|
|
@ -1100,7 +1084,6 @@ class WaterProps;
|
|||
* ThermoPhase *HMW = newPhase("HMW_NaCl.xml", "NaCl_electrolyte");
|
||||
* @endcode
|
||||
*
|
||||
*
|
||||
* A new HMWSoln object may be created by the following code snippets:
|
||||
*
|
||||
* @code
|
||||
|
|
@ -1122,7 +1105,6 @@ class WaterProps;
|
|||
* importPhase(*xm, &dhphase);
|
||||
* @endcode
|
||||
*
|
||||
*
|
||||
* <HR>
|
||||
* <H2> XML Example </H2>
|
||||
* <HR>
|
||||
|
|
@ -1216,17 +1198,11 @@ class WaterProps;
|
|||
</kinetics>
|
||||
</phase>
|
||||
@endverbatim
|
||||
*
|
||||
*
|
||||
*
|
||||
* @ingroup thermoprops
|
||||
*
|
||||
*/
|
||||
class HMWSoln : public MolalityVPSSTP
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! Default Constructor
|
||||
HMWSoln();
|
||||
|
||||
|
|
@ -1293,7 +1269,6 @@ public:
|
|||
* routine, which does most of the work.
|
||||
*
|
||||
* @param inputfile XML file containing the description of the phase
|
||||
*
|
||||
* @param id Optional parameter identifying the name of the
|
||||
* phase. If none is given, the first XML
|
||||
* phase element will be used.
|
||||
|
|
@ -1317,7 +1292,6 @@ public:
|
|||
* point to an XML phase object, it must have
|
||||
* sibling nodes "speciesData" that describe
|
||||
* the species in the phase.
|
||||
*
|
||||
* @param id ID of the phase. If nonnull, a check is done
|
||||
* to see if phaseNode is pointing to the phase
|
||||
* with the correct id.
|
||||
|
|
@ -1701,7 +1675,6 @@ public:
|
|||
*/
|
||||
virtual void getPartialMolarEnthalpies(doublereal* hbar) const;
|
||||
|
||||
|
||||
//! Returns an array of partial molar entropies of the species in the
|
||||
//! solution. Units: J/kmol/K.
|
||||
/*!
|
||||
|
|
@ -1860,7 +1833,6 @@ public:
|
|||
*
|
||||
* @param temperature Temperature of the derivative calculation
|
||||
* or -1 to indicate the current temperature
|
||||
*
|
||||
* @param pressure Pressure of the derivative calculation
|
||||
* or -1 to indicate the current pressure
|
||||
*/
|
||||
|
|
@ -1877,7 +1849,6 @@ public:
|
|||
*
|
||||
* @param temperature Temperature of the derivative calculation
|
||||
* or -1 to indicate the current temperature
|
||||
*
|
||||
* @param pressure Pressure of the derivative calculation
|
||||
* or -1 to indicate the current pressure
|
||||
*/
|
||||
|
|
@ -1895,7 +1866,6 @@ public:
|
|||
*
|
||||
* @param temperature Temperature of the derivative calculation
|
||||
* or -1 to indicate the current temperature
|
||||
*
|
||||
* @param pressure Pressure of the derivative calculation
|
||||
* or -1 to indicate the current pressure
|
||||
*/
|
||||
|
|
@ -1914,7 +1884,6 @@ public:
|
|||
*
|
||||
* @param temperature Temperature of the derivative calculation
|
||||
* or -1 to indicate the current temperature
|
||||
*
|
||||
* @param pressure Pressure of the derivative calculation
|
||||
* or -1 to indicate the current pressure
|
||||
*/
|
||||
|
|
@ -1934,7 +1903,6 @@ public:
|
|||
*
|
||||
* @param temperature Temperature of the derivative calculation
|
||||
* or -1 to indicate the current temperature
|
||||
*
|
||||
* @param pressure Pressure of the derivative calculation
|
||||
* or -1 to indicate the current pressure
|
||||
*/
|
||||
|
|
@ -1953,7 +1921,6 @@ public:
|
|||
*
|
||||
* @param temperature Temperature of the derivative calculation
|
||||
* or -1 to indicate the current temperature
|
||||
*
|
||||
* @param pressure Pressure of the derivative calculation
|
||||
* or -1 to indicate the current pressure
|
||||
*/
|
||||
|
|
@ -1970,7 +1937,6 @@ public:
|
|||
*
|
||||
* @param temperature Temperature of the derivative calculation
|
||||
* or -1 to indicate the current temperature
|
||||
*
|
||||
* @param pressure Pressure of the derivative calculation
|
||||
* or -1 to indicate the current pressure
|
||||
*/
|
||||
|
|
@ -2010,7 +1976,6 @@ public:
|
|||
void getUnscaledMolalityActivityCoefficients(doublereal* acMolality) const;
|
||||
|
||||
private:
|
||||
|
||||
//! Apply the current phScale to a set of activity Coefficients
|
||||
/*!
|
||||
* See the Eq3/6 Manual for a thorough discussion.
|
||||
|
|
@ -2067,7 +2032,6 @@ private:
|
|||
//@}
|
||||
|
||||
private:
|
||||
|
||||
/**
|
||||
* This is the form of the Pitzer parameterization
|
||||
* used in this model.
|
||||
|
|
|
|||
|
|
@ -118,7 +118,6 @@ namespace Cantera
|
|||
*
|
||||
* In terms of the reference state, the above can be rewritten
|
||||
*
|
||||
*
|
||||
* \f[
|
||||
* \mu_k(T,P) = \mu^{ref}_k(T, P) + R T \log(\frac{P X_k}{P_{ref}})
|
||||
* \f]
|
||||
|
|
@ -147,7 +146,6 @@ namespace Cantera
|
|||
* \tilde{Cp}_k(T,P) = Cp^o_k(T,P) = Cp^{ref}_k(T)
|
||||
* \f]
|
||||
*
|
||||
*
|
||||
* <HR>
|
||||
* <H2> %Application within Kinetics Managers </H2>
|
||||
* <HR>
|
||||
|
|
@ -298,7 +296,6 @@ namespace Cantera
|
|||
* being of the type handled by the IdealGasPhase object.
|
||||
*
|
||||
* @ingroup thermoprops
|
||||
*
|
||||
*/
|
||||
class IdealGasPhase: public ThermoPhase
|
||||
{
|
||||
|
|
|
|||
|
|
@ -97,7 +97,6 @@ namespace Cantera
|
|||
class IdealMolalSoln : public MolalityVPSSTP
|
||||
{
|
||||
public:
|
||||
|
||||
/// Constructor
|
||||
IdealMolalSoln();
|
||||
|
||||
|
|
@ -386,8 +385,7 @@ public:
|
|||
* @param acMolality Output Molality-based activity coefficients.
|
||||
* Length: m_kk.
|
||||
*/
|
||||
virtual void
|
||||
getMolalityActivityCoefficients(doublereal* acMolality) const;
|
||||
virtual void getMolalityActivityCoefficients(doublereal* acMolality) const;
|
||||
|
||||
//@}
|
||||
/// @name Partial Molar Properties of the Solution
|
||||
|
|
@ -478,7 +476,6 @@ public:
|
|||
*/
|
||||
virtual void getPartialMolarVolumes(doublereal* vbar) const;
|
||||
|
||||
|
||||
//! Partial molar heat capacity of the solution:. UnitsL J/kmol/K
|
||||
/*!
|
||||
* The kth partial molar heat capacity is equal to
|
||||
|
|
|
|||
|
|
@ -72,7 +72,6 @@ enum IonSolnType_enumType {
|
|||
class IonsFromNeutralVPSSTP : public GibbsExcessVPSSTP
|
||||
{
|
||||
public:
|
||||
|
||||
//! @name Constructors
|
||||
//! @{
|
||||
|
||||
|
|
@ -126,7 +125,6 @@ public:
|
|||
IonsFromNeutralVPSSTP(XML_Node& phaseRoot, const std::string& id = "",
|
||||
ThermoPhase* neutralPhase = 0);
|
||||
|
||||
|
||||
//! Copy constructor
|
||||
/*!
|
||||
* @param b class to be copied
|
||||
|
|
@ -162,7 +160,6 @@ public:
|
|||
* routine, which does most of the work.
|
||||
*
|
||||
* @param inputFile XML file containing the description of the phase
|
||||
*
|
||||
* @param id Optional parameter identifying the name of the
|
||||
* phase. If none is given, the first XML
|
||||
* phase element will be used.
|
||||
|
|
@ -188,7 +185,6 @@ public:
|
|||
* point to an XML phase object, it must have
|
||||
* sibling nodes "speciesData" that describe
|
||||
* the species in the phase.
|
||||
*
|
||||
* @param id ID of the phase. If nonnull, a check is done
|
||||
* to see if phaseNode is pointing to the phase
|
||||
* with the correct id.
|
||||
|
|
@ -297,17 +293,14 @@ public:
|
|||
* - R T \frac{d \ln(\gamma_k) }{dT}
|
||||
* \f]
|
||||
*
|
||||
*
|
||||
* @param sbar Output vector of species partial molar entropies.
|
||||
* Length: m_kk. Units: J/kmol/K
|
||||
*/
|
||||
virtual void getPartialMolarEntropies(doublereal* sbar) const;
|
||||
|
||||
|
||||
//! Get the change in activity coefficients w.r.t. change in state (temp, mole fraction, etc.) along
|
||||
//! a line in parameter space or along a line in physical space
|
||||
/*!
|
||||
*
|
||||
* @param dTds Input of temperature change along the path
|
||||
* @param dXds Input vector of changes in mole fraction along the path. length = m_kk
|
||||
* Along the path length it must be the case that the mole fractions sum to one.
|
||||
|
|
@ -558,7 +551,6 @@ public:
|
|||
*/
|
||||
void initThermoXML(XML_Node& phaseNode, const std::string& id);
|
||||
|
||||
|
||||
private:
|
||||
//! Initialize lengths of local variables after all species have
|
||||
//! been identified.
|
||||
|
|
|
|||
|
|
@ -180,7 +180,6 @@ namespace Cantera
|
|||
* \exp(\frac{\mu^{o}_l - \mu^{o}_j - \mu^{o}_k}{R T} )
|
||||
* \f]
|
||||
*
|
||||
*
|
||||
* %Kinetics managers will calculate the concentration equilibrium constant, \f$ K_c \f$,
|
||||
* using the second and third part of the above expression as a definition for the concentration
|
||||
* equilibrium constant.
|
||||
|
|
@ -864,8 +863,7 @@ protected:
|
|||
//! Temporary storage for the reference state entropies at the current temperature
|
||||
mutable vector_fp m_s0_R;
|
||||
|
||||
//! String name for the species which represents a vacancy
|
||||
//! in the lattice
|
||||
//! String name for the species which represents a vacancy in the lattice
|
||||
/*!
|
||||
* This string is currently unused
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -96,7 +96,6 @@ namespace Cantera
|
|||
* have been redefined to use this convention.
|
||||
*
|
||||
* (This object is still under construction)
|
||||
*
|
||||
*/
|
||||
class LatticeSolidPhase : public ThermoPhase
|
||||
{
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ namespace Cantera
|
|||
//! MargulesVPSSTP is a derived class of GibbsExcessVPSSTP that employs
|
||||
//! the Margules approximation for the excess Gibbs free energy
|
||||
/*!
|
||||
*
|
||||
* MargulesVPSSTP derives from class GibbsExcessVPSSTP which is derived
|
||||
* from VPStandardStateTP,
|
||||
* and overloads the virtual methods defined there with ones that
|
||||
|
|
@ -57,7 +56,6 @@ namespace Cantera
|
|||
* density to pressure. The variable m_Pcurrent contains the current value of the
|
||||
* pressure within the phase.
|
||||
*
|
||||
*
|
||||
* <HR>
|
||||
* <H2> Specification of Species Standard State Properties </H2>
|
||||
* <HR>
|
||||
|
|
@ -69,7 +67,6 @@ namespace Cantera
|
|||
* and pressure of the solution. I don't think it prevents, however,
|
||||
* some species from being dilute in the solution.
|
||||
*
|
||||
*
|
||||
* <HR>
|
||||
* <H2> Specification of Solution Thermodynamic Properties </H2>
|
||||
* <HR>
|
||||
|
|
@ -256,7 +253,6 @@ namespace Cantera
|
|||
*/
|
||||
class MargulesVPSSTP : public GibbsExcessVPSSTP
|
||||
{
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
/*!
|
||||
|
|
@ -427,7 +423,6 @@ public:
|
|||
*/
|
||||
virtual void getPartialMolarCp(doublereal* cpbar) const;
|
||||
|
||||
|
||||
//! Return an array of partial molar volumes for the
|
||||
//! species in the mixture. Units: m^3/kmol.
|
||||
/*!
|
||||
|
|
@ -462,7 +457,6 @@ public:
|
|||
*
|
||||
* @param d2lnActCoeffdT2 Output vector of temperature 2nd derivatives of the
|
||||
* log Activity Coefficients. length = m_kk
|
||||
*
|
||||
*/
|
||||
virtual void getd2lnActCoeffdT2(doublereal* d2lnActCoeffdT2) const;
|
||||
|
||||
|
|
@ -475,7 +469,6 @@ public:
|
|||
*
|
||||
* @param dlnActCoeffdT Output vector of temperature derivatives of the
|
||||
* log Activity Coefficients. length = m_kk
|
||||
*
|
||||
*/
|
||||
virtual void getdlnActCoeffdT(doublereal* dlnActCoeffdT) const;
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@
|
|||
|
||||
namespace Cantera
|
||||
{
|
||||
|
||||
/**
|
||||
* Class MaskellSolidSolnPhase represents a condensed phase
|
||||
* non-ideal solution with 2 species following the thermodynamic
|
||||
|
|
|
|||
|
|
@ -18,13 +18,10 @@ namespace Cantera
|
|||
* @ingroup thermoprops
|
||||
*
|
||||
* Class MetalPhase represents electrons in a metal.
|
||||
*
|
||||
*/
|
||||
class MetalPhase : public ThermoPhase
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
MetalPhase() {}
|
||||
|
||||
MetalPhase(const MetalPhase& right) {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ namespace Cantera
|
|||
//! MixedSolventElectrolyte is a derived class of GibbsExcessVPSSTP that employs
|
||||
//! the DH and local Marguless approximations for the excess Gibbs free energy
|
||||
/*!
|
||||
*
|
||||
* MixedSolventElectrolyte derives from class GibbsExcessVPSSTP which is derived
|
||||
* from VPStandardStateTP,
|
||||
* and overloads the virtual methods defined there with ones that
|
||||
|
|
@ -57,7 +56,6 @@ namespace Cantera
|
|||
* density to pressure. The variable m_Pcurrent contains the current value of the
|
||||
* pressure within the phase.
|
||||
*
|
||||
*
|
||||
* <HR>
|
||||
* <H2> Specification of Species Standard State Properties </H2>
|
||||
* <HR>
|
||||
|
|
@ -69,7 +67,6 @@ namespace Cantera
|
|||
* and pressure of the solution. I don't think it prevents, however,
|
||||
* some species from being dilute in the solution.
|
||||
*
|
||||
*
|
||||
* <HR>
|
||||
* <H2> Specification of Solution Thermodynamic Properties </H2>
|
||||
* <HR>
|
||||
|
|
@ -187,7 +184,6 @@ namespace Cantera
|
|||
* C_j^a = C^s a_j \mbox{\quad and \quad} C_k^a = C^s a_k
|
||||
* \f]
|
||||
*
|
||||
*
|
||||
* \f$ C_j^a \f$ is the activity concentration of species j, and
|
||||
* \f$ C_k^a \f$ is the activity concentration of species k. \f$ C^s \f$
|
||||
* is the standard concentration. \f$ a_j \f$ is
|
||||
|
|
@ -254,7 +250,6 @@ namespace Cantera
|
|||
* \f$k^{-1} \f$ has units of s-1.
|
||||
*
|
||||
* @ingroup thermoprops
|
||||
*
|
||||
*/
|
||||
class MixedSolventElectrolyte : public MolarityIonicVPSSTP
|
||||
{
|
||||
|
|
|
|||
|
|
@ -645,7 +645,6 @@ protected:
|
|||
* accurate value for the saturation pressure.
|
||||
*
|
||||
* @param TKelvin temperature in kelvin
|
||||
*
|
||||
* @return returns the estimated saturation pressure at the given temperature
|
||||
*/
|
||||
virtual doublereal psatEst(doublereal TKelvin) const;
|
||||
|
|
@ -661,7 +660,6 @@ public:
|
|||
* @param pres Pressure in Pa. This is used as an initial guess. If the routine
|
||||
* needs to change the pressure to find a stable liquid state, the
|
||||
* new pressure is returned in this variable.
|
||||
*
|
||||
* @return Returns the estimate of the liquid volume. If the liquid can't be found, this
|
||||
* routine returns -1.
|
||||
*/
|
||||
|
|
@ -685,7 +683,6 @@ public:
|
|||
*
|
||||
* @param rhoguess Guessed density of the fluid. A value of -1.0 indicates that there
|
||||
* is no guessed density
|
||||
*
|
||||
* @return We return the density of the fluid at the requested phase. If we have not found any
|
||||
* acceptable density we return a -1. If we have found an acceptable density at a
|
||||
* different phase, we return a -2.
|
||||
|
|
@ -739,7 +736,6 @@ public:
|
|||
* @param TKelvin (input) Temperature (Kelvin)
|
||||
* @param molarVolGas (return) Molar volume of the gas
|
||||
* @param molarVolLiquid (return) Molar volume of the liquid
|
||||
*
|
||||
* @return Returns the saturation pressure at the given temperature
|
||||
*/
|
||||
doublereal calculatePsat(doublereal TKelvin, doublereal& molarVolGas,
|
||||
|
|
@ -760,7 +756,6 @@ protected:
|
|||
*
|
||||
* @param TKelvin temperature in kelvin
|
||||
* @param molarVol molar volume ( m3/kmol)
|
||||
*
|
||||
* @return Returns the pressure.
|
||||
*/
|
||||
virtual doublereal pressureCalc(doublereal TKelvin, doublereal molarVol) const;
|
||||
|
|
@ -771,9 +766,7 @@ protected:
|
|||
*
|
||||
* @param TKelvin temperature in kelvin
|
||||
* @param molarVol molar volume ( m3/kmol)
|
||||
*
|
||||
* @param presCalc Returns the pressure.
|
||||
*
|
||||
* @return Returns the derivative of the pressure wrt the molar volume
|
||||
*/
|
||||
virtual doublereal dpdVCalc(doublereal TKelvin, doublereal molarVol, doublereal& presCalc) const;
|
||||
|
|
|
|||
|
|
@ -138,7 +138,6 @@ namespace Cantera
|
|||
* term in the equation above is non-trivial. For example it's equal
|
||||
* to 2.38 kcal gmol<SUP>-1</SUP> for water at 298 K.
|
||||
*
|
||||
*
|
||||
* In order to prevent a singularity, this class includes the concept of a minimum
|
||||
* value for the solvent mole fraction. All calculations involving the formulation
|
||||
* of activity coefficients and other non-ideal solution behavior adhere to
|
||||
|
|
@ -146,7 +145,6 @@ namespace Cantera
|
|||
* because these solution behavior were all designed and measured far away from
|
||||
* the zero solvent singularity condition and are not applicable in that limit.
|
||||
*
|
||||
*
|
||||
* This objects add a layer that supports molality. It inherits from VPStandardStateTP.
|
||||
*
|
||||
* All objects that derive from this are assumed to have molality based standard states.
|
||||
|
|
@ -180,7 +178,6 @@ namespace Cantera
|
|||
* State object. When molalities are needed it recalculates the molalities from
|
||||
* the State object's mole fraction vector.
|
||||
*
|
||||
*
|
||||
* @todo Make two solvent minimum fractions. One would be for calculation of the non-ideal
|
||||
* factors. The other one would be for purposes of stoichiometry evaluation. the
|
||||
* stoichiometry evaluation one would be a 1E-13 limit. Anything less would create
|
||||
|
|
@ -677,7 +674,6 @@ public:
|
|||
doublereal threshold=1e-14) const;
|
||||
|
||||
protected:
|
||||
|
||||
virtual void getCsvReportData(std::vector<std::string>& names,
|
||||
std::vector<vector_fp>& data) const;
|
||||
|
||||
|
|
|
|||
|
|
@ -53,11 +53,9 @@ namespace Cantera
|
|||
* One of the ions must be a "special ion" in the sense that its' thermodynamic
|
||||
* functions are set to zero, and the thermo functions of all other
|
||||
* ions are based on a valuation relative to that special ion.
|
||||
*
|
||||
*/
|
||||
class MolarityIonicVPSSTP : public GibbsExcessVPSSTP
|
||||
{
|
||||
|
||||
public:
|
||||
/// Constructor
|
||||
/*!
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
/**
|
||||
* @file NasaPoly1.h
|
||||
* Header for a single-species standard state object derived
|
||||
|
|
|
|||
|
|
@ -505,7 +505,6 @@ public:
|
|||
*
|
||||
* @param phaseNode Reference to the phase Information for the phase
|
||||
* that owns this species.
|
||||
*
|
||||
* @param id Optional parameter identifying the name of the
|
||||
* phase. If none is given, the first XML
|
||||
* phase element will be used.
|
||||
|
|
@ -542,10 +541,8 @@ public:
|
|||
*
|
||||
* @param vptp_ptr Pointer to the Variable pressure ThermoPhase object
|
||||
* This object must have already been malloced.
|
||||
*
|
||||
* @param vpssmgr_ptr Pointer to the variable pressure standard state
|
||||
* calculator for this phase
|
||||
*
|
||||
* @param spthermo_ptr Pointer to the optional SpeciesThermo object
|
||||
* that will handle the calculation of the reference
|
||||
* state thermodynamic coefficients.
|
||||
|
|
|
|||
|
|
@ -214,7 +214,6 @@ public:
|
|||
virtual void reportParams(size_t& kindex, int& type, doublereal* const c,
|
||||
doublereal& minTemp, doublereal& maxTemp,
|
||||
doublereal& refPressure) const;
|
||||
|
||||
//@}
|
||||
|
||||
private:
|
||||
|
|
@ -247,7 +246,6 @@ private:
|
|||
* The output of this is in units of Angstroms
|
||||
*
|
||||
* @param temp Temperature (K)
|
||||
*
|
||||
* @param ifunc parameters specifying the desired information
|
||||
* - 0 function value
|
||||
* - 1 derivative wrt temperature
|
||||
|
|
@ -261,7 +259,6 @@ private:
|
|||
* the output of this is unitless
|
||||
*
|
||||
* @param temp Temperature (K)
|
||||
*
|
||||
* @param ifunc parameters specifying the desired information
|
||||
* - 0 function value
|
||||
* - 1 derivative wrt temperature
|
||||
|
|
@ -319,7 +316,6 @@ private:
|
|||
* stable state.
|
||||
*
|
||||
* @param elemName String. Only the first 3 characters are significant
|
||||
*
|
||||
* @return value contains the Gibbs free energy for that element
|
||||
*
|
||||
* @exception CanteraError
|
||||
|
|
|
|||
|
|
@ -126,11 +126,8 @@ public:
|
|||
*
|
||||
* @param vptp_ptr Pointer to the Variable pressure ThermoPhase object
|
||||
* This object must have already been malloced.
|
||||
*
|
||||
* @param spindex Species index within the phase
|
||||
*
|
||||
* @param inputFile XML file containing the description of the phase
|
||||
*
|
||||
* @param id Optional parameter identifying the name of the
|
||||
* phase. If none is given, the first XML
|
||||
* phase element will be used.
|
||||
|
|
@ -149,12 +146,9 @@ public:
|
|||
*
|
||||
* @param vptp_ptr Pointer to the Variable pressure ThermoPhase object
|
||||
* This object must have already been malloced.
|
||||
*
|
||||
* @param spindex Species index within the phase
|
||||
*
|
||||
* @param phaseNode Reference to the phase Information for the phase
|
||||
* that owns this species.
|
||||
*
|
||||
* @param id Optional parameter identifying the name of the
|
||||
* phase. If none is given, the first XML
|
||||
* phase element will be used.
|
||||
|
|
|
|||
|
|
@ -141,11 +141,8 @@ public:
|
|||
*
|
||||
* @param vptp_ptr Pointer to the Variable pressure ThermoPhase object
|
||||
* This object must have already been malloced.
|
||||
*
|
||||
* @param spindex Species index within the phase
|
||||
*
|
||||
* @param inputFile XML file containing the description of the phase
|
||||
*
|
||||
* @param id Optional parameter identifying the name of the
|
||||
* phase. If none is given, the first XML
|
||||
* phase element will be used.
|
||||
|
|
@ -164,15 +161,11 @@ public:
|
|||
*
|
||||
* @param vptp_ptr Pointer to the Variable pressure ThermoPhase object
|
||||
* This object must have already been malloced.
|
||||
*
|
||||
* @param spindex Species index within the phase
|
||||
*
|
||||
* @param speciesNode Reference to the phase Information for the species
|
||||
* that this standard state refers to
|
||||
*
|
||||
* @param phaseNode Reference to the phase Information for the phase
|
||||
* that owns this species.
|
||||
*
|
||||
* @param id Optional parameter identifying the name of the
|
||||
* phase. If none is given, the first XML
|
||||
* phase element will be used.
|
||||
|
|
|
|||
|
|
@ -267,11 +267,8 @@ private:
|
|||
*
|
||||
* @param vptp_ptr Pointer to the Variable pressure ThermoPhase object
|
||||
* This object must have already been malloced.
|
||||
*
|
||||
* @param spindex Species index within the phase
|
||||
*
|
||||
* @param inputFile XML file containing the description of the phase
|
||||
*
|
||||
* @param id Optional parameter identifying the name of the
|
||||
* phase. If none is given, the first XML
|
||||
* phase element will be used.
|
||||
|
|
@ -290,14 +287,10 @@ private:
|
|||
*
|
||||
* @param vptp_ptr Pointer to the Variable pressure ThermoPhase object
|
||||
* This object must have already been malloced.
|
||||
*
|
||||
* @param spindex Species index within the phase
|
||||
*
|
||||
* @param speciesNode XML Node containing the species information
|
||||
*
|
||||
* @param phaseNode Reference to the phase Information for the phase
|
||||
* that owns this species.
|
||||
*
|
||||
* @param spInstalled Boolean indicating whether the species is
|
||||
* already installed.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -233,11 +233,8 @@ public:
|
|||
*
|
||||
* @param vptp_ptr Pointer to the Variable pressure ThermoPhase object
|
||||
* This object must have already been malloced.
|
||||
*
|
||||
* @param spindex Species index within the phase
|
||||
*
|
||||
* @param inputFile XML file containing the description of the phase
|
||||
*
|
||||
* @param id Optional parameter identifying the name of the
|
||||
* phase. If none is given, the first XML
|
||||
* phase element will be used.
|
||||
|
|
@ -257,12 +254,9 @@ public:
|
|||
*
|
||||
* @param vptp_ptr Pointer to the Variable pressure ThermoPhase object
|
||||
* This object must have already been malloced.
|
||||
*
|
||||
* @param spindex Species index within the phase
|
||||
*
|
||||
* @param phaseNode Reference to the phase Information for the phase
|
||||
* that owns this species.
|
||||
*
|
||||
* @param id Optional parameter identifying the name of the
|
||||
* phase. If none is given, the first XML
|
||||
* phase element will be used.
|
||||
|
|
|
|||
|
|
@ -108,7 +108,6 @@ public:
|
|||
/*!
|
||||
* The XML_Node for the phase contains all of the input data used to set
|
||||
* up the model for the phase during its initialization.
|
||||
*
|
||||
*/
|
||||
XML_Node& xml() const;
|
||||
|
||||
|
|
@ -275,7 +274,6 @@ public:
|
|||
//! which take an array pointer.
|
||||
void checkSpeciesArraySize(size_t kk) const;
|
||||
|
||||
|
||||
//!@} end group Element and Species Information
|
||||
|
||||
//! Save the current internal state of the phase
|
||||
|
|
@ -506,7 +504,6 @@ public:
|
|||
*/
|
||||
doublereal concentration(const size_t k) const;
|
||||
|
||||
|
||||
//! Set the concentrations to the specified values within the phase.
|
||||
//! We set the concentrations here and therefore we set the overall density
|
||||
//! of the phase. We hold the temperature constant during this operation.
|
||||
|
|
|
|||
|
|
@ -58,7 +58,6 @@ namespace Cantera
|
|||
* can now be identically zero due to thermodynamic considerations. The phase behaves more
|
||||
* like a series of phases. That's why we named it PhaseCombo.
|
||||
*
|
||||
*
|
||||
* <HR>
|
||||
* <H2> Specification of Species Standard State Properties </H2>
|
||||
* <HR>
|
||||
|
|
@ -152,7 +151,6 @@ namespace Cantera
|
|||
* - R T^2 \frac{d^2 \ln(\gamma_k) }{{dT}^2}
|
||||
* \f]
|
||||
*
|
||||
*
|
||||
* <HR>
|
||||
* <H2> %Application within Kinetics Managers </H2>
|
||||
* <HR>
|
||||
|
|
@ -254,7 +252,6 @@ namespace Cantera
|
|||
*
|
||||
* \f$k^{-1} \f$ has units of s-1.
|
||||
*
|
||||
*
|
||||
* <HR>
|
||||
* <H2> Instantiation of the Class </H2>
|
||||
* <HR>
|
||||
|
|
@ -286,7 +283,6 @@ namespace Cantera
|
|||
* PhaseCombo_Interaction *LiFeS_X_solid = new PhaseCombo_Interaction(*xs);
|
||||
* @endcode
|
||||
*
|
||||
*
|
||||
* <HR>
|
||||
* <H2> XML Example </H2>
|
||||
* <HR>
|
||||
|
|
@ -328,7 +324,6 @@ namespace Cantera
|
|||
* being of the type handled by the PhaseCombo_Interaction object.
|
||||
*
|
||||
* @ingroup thermoprops
|
||||
*
|
||||
*/
|
||||
class PhaseCombo_Interaction : public GibbsExcessVPSSTP
|
||||
{
|
||||
|
|
@ -538,7 +533,6 @@ public:
|
|||
*
|
||||
* @param d2lnActCoeffdT2 Output vector of temperature 2nd derivatives of the
|
||||
* log Activity Coefficients. length = m_kk
|
||||
*
|
||||
*/
|
||||
virtual void getd2lnActCoeffdT2(doublereal* d2lnActCoeffdT2) const;
|
||||
|
||||
|
|
@ -551,7 +545,6 @@ public:
|
|||
*
|
||||
* @param dlnActCoeffdT Output vector of temperature derivatives of the
|
||||
* log Activity Coefficients. length = m_kk
|
||||
*
|
||||
*/
|
||||
virtual void getdlnActCoeffdT(doublereal* dlnActCoeffdT) const;
|
||||
|
||||
|
|
@ -599,7 +592,6 @@ public:
|
|||
//! Get the change in activity coefficients w.r.t. change in state (temp, mole fraction, etc.) along
|
||||
//! a line in parameter space or along a line in physical space
|
||||
/*!
|
||||
*
|
||||
* @param dTds Input of temperature change along the path
|
||||
* @param dXds Input vector of changes in mole fraction along the path. length = m_kk
|
||||
* Along the path length it must be the case that the mole fractions sum to one.
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ namespace Cantera
|
|||
class PureFluidPhase : public ThermoPhase
|
||||
{
|
||||
public:
|
||||
|
||||
//! Empty Base Constructor
|
||||
PureFluidPhase();
|
||||
|
||||
|
|
@ -461,7 +460,6 @@ public:
|
|||
doublereal threshold=1e-14) const;
|
||||
|
||||
protected:
|
||||
|
||||
//! Main call to the tpx level to set the state of the system
|
||||
/*!
|
||||
* @param n Integer indicating which 2 thermo components are held constant
|
||||
|
|
|
|||
|
|
@ -54,7 +54,6 @@ namespace Cantera
|
|||
* density to pressure. The variable m_Pcurrent contains the current value of the
|
||||
* pressure within the phase.
|
||||
*
|
||||
*
|
||||
* <HR>
|
||||
* <H2> Specification of Species Standard State Properties </H2>
|
||||
* <HR>
|
||||
|
|
@ -66,7 +65,6 @@ namespace Cantera
|
|||
* and pressure of the solution. I don't think it prevents, however,
|
||||
* some species from being dilute in the solution.
|
||||
*
|
||||
*
|
||||
* <HR>
|
||||
* <H2> Specification of Solution Thermodynamic Properties </H2>
|
||||
* <HR>
|
||||
|
|
@ -187,7 +185,6 @@ namespace Cantera
|
|||
* C_j^a = C^s a_j \mbox{\quad and \quad} C_k^a = C^s a_k
|
||||
* \f]
|
||||
*
|
||||
*
|
||||
* \f$ C_j^a \f$ is the activity concentration of species j, and
|
||||
* \f$ C_k^a \f$ is the activity concentration of species k. \f$ C^s \f$
|
||||
* is the standard concentration. \f$ a_j \f$ is
|
||||
|
|
@ -254,7 +251,6 @@ namespace Cantera
|
|||
* \f$k^{-1} \f$ has units of s-1.
|
||||
*
|
||||
* @ingroup thermoprops
|
||||
*
|
||||
*/
|
||||
class RedlichKisterVPSSTP : public GibbsExcessVPSSTP
|
||||
{
|
||||
|
|
@ -269,7 +265,6 @@ public:
|
|||
//! Construct and initialize a RedlichKisterVPSSTP ThermoPhase object
|
||||
//! directly from an XML input file
|
||||
/*!
|
||||
*
|
||||
* @param inputFile Name of the input file containing the phase XML data
|
||||
* to set up the object
|
||||
* @param id ID of the phase in the input file. Defaults to the
|
||||
|
|
@ -507,7 +502,6 @@ public:
|
|||
//! Get the change in activity coefficients w.r.t. change in state (temp, mole fraction, etc.) along
|
||||
//! a line in parameter space or along a line in physical space
|
||||
/*!
|
||||
*
|
||||
* @param dTds Input of temperature change along the path
|
||||
* @param dXds Input vector of changes in mole fraction along the path. length = m_kk
|
||||
* Along the path length it must be the case that the mole fractions sum to one.
|
||||
|
|
|
|||
|
|
@ -333,7 +333,6 @@ public:
|
|||
virtual doublereal critDensity() const;
|
||||
|
||||
public:
|
||||
|
||||
//@}
|
||||
//! @name Initialization Methods - For Internal use
|
||||
/*!
|
||||
|
|
@ -386,7 +385,6 @@ public:
|
|||
//! Initialize a ThermoPhase object, potentially reading activity
|
||||
//! coefficient information from an XML database.
|
||||
/*!
|
||||
*
|
||||
* This routine initializes the lengths in the current object and
|
||||
* then calls the parent routine.
|
||||
* This method is provided to allow
|
||||
|
|
@ -466,7 +464,6 @@ public:
|
|||
* @param pres Pressure in Pa. This is used as an initial guess. If the routine
|
||||
* needs to change the pressure to find a stable liquid state, the
|
||||
* new pressure is returned in this variable.
|
||||
*
|
||||
* @return Returns the estimate of the liquid volume.
|
||||
*/
|
||||
virtual doublereal liquidVolEst(doublereal TKelvin, doublereal& pres) const;
|
||||
|
|
@ -486,11 +483,8 @@ public:
|
|||
* a gas or liquid phase here, we will attempt to find a volume in that
|
||||
* part of the volume space, only, in this routine. A value of FLUID_UNDEFINED
|
||||
* means that we will accept anything.
|
||||
*
|
||||
* @param rhoguess Guessed density of the fluid. A value of -1.0 indicates that there
|
||||
* is no guessed density
|
||||
*
|
||||
*
|
||||
* @return We return the density of the fluid at the requested phase. If we have not found any
|
||||
* acceptable density we return a -1. If we have found an acceptable density at a
|
||||
* different phase, we return a -2.
|
||||
|
|
@ -517,7 +511,6 @@ public:
|
|||
*
|
||||
* @param TKelvin temperature in kelvin
|
||||
* @param molarVol molar volume ( m3/kmol)
|
||||
*
|
||||
* @return Returns the pressure.
|
||||
*/
|
||||
virtual doublereal pressureCalc(doublereal TKelvin, doublereal molarVol) const;
|
||||
|
|
@ -528,9 +521,7 @@ public:
|
|||
*
|
||||
* @param TKelvin temperature in kelvin
|
||||
* @param molarVol molar volume ( m3/kmol)
|
||||
*
|
||||
* @param presCalc Returns the pressure.
|
||||
*
|
||||
* @return Returns the derivative of the pressure wrt the molar volume
|
||||
*/
|
||||
virtual doublereal dpdVCalc(doublereal TKelvin, doublereal molarVol, doublereal& presCalc) const;
|
||||
|
|
@ -556,7 +547,6 @@ public:
|
|||
* function. It does use the stored mole fractions in the object.
|
||||
*
|
||||
* @param temp Temperature (TKelvin)
|
||||
*
|
||||
* @param aCalc (output) Returns the a value
|
||||
* @param bCalc (output) Returns the b value.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -26,9 +26,7 @@ const int cHole = 1;
|
|||
*/
|
||||
class SemiconductorPhase : public ThermoPhase
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
SemiconductorPhase() {}
|
||||
SemiconductorPhase(std::string infile, std::string id="");
|
||||
|
||||
|
|
@ -56,7 +54,6 @@ public:
|
|||
return cSemiconductor;
|
||||
}
|
||||
|
||||
|
||||
virtual void setPressure(doublereal pres) {
|
||||
m_press = pres;
|
||||
}
|
||||
|
|
@ -64,7 +61,6 @@ public:
|
|||
return m_press;
|
||||
}
|
||||
|
||||
|
||||
virtual void setParametersFromXML(const XML_Node& eosdata) {
|
||||
eosdata._require("model","Semiconductor");
|
||||
doublereal rho = getFloat(eosdata, "density", "-");
|
||||
|
|
|
|||
|
|
@ -123,7 +123,6 @@ public:
|
|||
virtual void updateProperties(const doublereal* tt,
|
||||
doublereal* cp_R, doublereal* h_RT,
|
||||
doublereal* s_R) const {
|
||||
|
||||
doublereal A = m_coeff[0];
|
||||
doublereal Bt = m_coeff[1]*tt[0];
|
||||
doublereal Ct2 = m_coeff[2]*tt[1];
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
* Header for the SingleSpeciesTP class, which is a filter class for ThermoPhase,
|
||||
* that eases the construction of single species phases
|
||||
* ( see \ref thermoprops and class \link Cantera::SingleSpeciesTP SingleSpeciesTP\endlink).
|
||||
*
|
||||
*/
|
||||
/*
|
||||
* Copyright (2005) Sandia Corporation. Under the terms of
|
||||
|
|
@ -15,7 +14,6 @@
|
|||
|
||||
#include "ThermoPhase.h"
|
||||
|
||||
|
||||
namespace Cantera
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -130,7 +130,6 @@ class SpeciesThermoInterpType;
|
|||
class SpeciesThermo
|
||||
{
|
||||
public:
|
||||
|
||||
//! Constructor
|
||||
SpeciesThermo() {}
|
||||
|
||||
|
|
|
|||
|
|
@ -326,7 +326,6 @@ public:
|
|||
* @param vpssmgr_ptr Pointer to the Variable pressure standard state
|
||||
* manager that owns the PDSS object that will handle calls for this
|
||||
* object
|
||||
*
|
||||
* @param PDSS_ptr Pointer to the PDSS object that handles calls for
|
||||
* this object
|
||||
*/
|
||||
|
|
@ -348,11 +347,9 @@ public:
|
|||
*
|
||||
* @param speciesIndex species index for this object. Note, this must
|
||||
* agree with what was internally set before.
|
||||
*
|
||||
* @param vpssmgr_ptr Pointer to the Variable pressure standard state
|
||||
* manager that owns the PDSS object that will handle calls for this
|
||||
* object
|
||||
*
|
||||
* @param PDSS_ptr Pointer to the PDSS object that handles calls for
|
||||
* this object
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -2,11 +2,9 @@
|
|||
* @file ThermoFactory.h
|
||||
* Headers for the factory class that can create known ThermoPhase objects
|
||||
* (see \ref thermoprops and class \link Cantera::ThermoFactory ThermoFactory\endlink).
|
||||
*
|
||||
*/
|
||||
// Copyright 2001 California Institute of Technology
|
||||
|
||||
|
||||
#ifndef THERMO_FACTORY_H
|
||||
#define THERMO_FACTORY_H
|
||||
|
||||
|
|
@ -54,9 +52,7 @@ public:
|
|||
*/
|
||||
class ThermoFactory : public FactoryBase
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! Static function that creates a static instance of the factory.
|
||||
static ThermoFactory* factory() {
|
||||
ScopedLock lock(thermo_mutex);
|
||||
|
|
@ -76,7 +72,6 @@ public:
|
|||
//! Create a new thermodynamic property manager.
|
||||
/*!
|
||||
* @param model String to look up the model against
|
||||
*
|
||||
* @return
|
||||
* Returns a pointer to a new ThermoPhase instance matching the
|
||||
* model string. Returns NULL if something went wrong.
|
||||
|
|
@ -100,7 +95,6 @@ private:
|
|||
/*!
|
||||
* @param model String to look up the model against
|
||||
* @param f ThermoFactory instance to use in matching the string
|
||||
*
|
||||
* @return
|
||||
* Returns a pointer to a new ThermoPhase instance matching the
|
||||
* model string. Returns NULL if something went wrong.
|
||||
|
|
@ -154,7 +148,6 @@ ThermoPhase* newPhase(XML_Node& phase);
|
|||
* @param infile name of the input file
|
||||
* @param id name of the phase id in the file.
|
||||
* If this is blank, the first phase in the file is used.
|
||||
*
|
||||
* @return
|
||||
* Returns an initialized ThermoPhase object.
|
||||
*/
|
||||
|
|
@ -223,7 +216,6 @@ ThermoPhase* newPhase(const std::string& infile, std::string id="");
|
|||
* available. If not available, one will be
|
||||
* created.
|
||||
* @ingroup thermoprops
|
||||
*
|
||||
*/
|
||||
void importPhase(XML_Node& phase, ThermoPhase* th);
|
||||
|
||||
|
|
|
|||
|
|
@ -339,7 +339,6 @@ public:
|
|||
* @{
|
||||
*/
|
||||
|
||||
|
||||
//! This method returns the convention used in specification
|
||||
//! of the activities, of which there are currently two, molar-
|
||||
//! and molality-based conventions.
|
||||
|
|
@ -479,7 +478,6 @@ public:
|
|||
throw NotImplementedError("ThermoPhase::getChemPotentials_RT");
|
||||
}
|
||||
|
||||
|
||||
//! Get the species chemical potentials. Units: J/kmol.
|
||||
/*!
|
||||
* This function returns a vector of chemical potentials of the
|
||||
|
|
@ -815,10 +813,8 @@ public:
|
|||
*/
|
||||
virtual void getReferenceComposition(doublereal* const x) const;
|
||||
|
||||
//
|
||||
// The methods below are not virtual, and should not
|
||||
// be overloaded.
|
||||
//
|
||||
|
||||
//@}
|
||||
//! @name Specific Properties
|
||||
|
|
@ -1175,7 +1171,6 @@ private:
|
|||
void setState_conditional_TP(doublereal t, doublereal p, bool set_p);
|
||||
|
||||
public:
|
||||
|
||||
/**
|
||||
* @name Chemical Equilibrium
|
||||
* Chemical equilibrium.
|
||||
|
|
@ -1340,7 +1335,6 @@ public:
|
|||
|
||||
//@}
|
||||
|
||||
|
||||
//! @name Initialization Methods - For Internal Use (ThermoPhase)
|
||||
/*!
|
||||
* The following methods are used in the process of constructing
|
||||
|
|
@ -1388,7 +1382,6 @@ public:
|
|||
//! Return a changeable reference to the calculation manager
|
||||
//! for species reference-state thermodynamic properties
|
||||
/*!
|
||||
*
|
||||
* @param k Species id. The default is -1, meaning return the default
|
||||
*
|
||||
* @internal
|
||||
|
|
@ -1513,7 +1506,6 @@ public:
|
|||
//! Set the initial state of the phase to the conditions
|
||||
//! specified in the state XML element.
|
||||
/*!
|
||||
*
|
||||
* This method sets the temperature, pressure, and mole
|
||||
* fraction vector to a set default value.
|
||||
*
|
||||
|
|
@ -1530,7 +1522,6 @@ public:
|
|||
//! Get the change in activity coefficients wrt changes in state (temp, mole fraction, etc) along
|
||||
//! a line in parameter space or along a line in physical space
|
||||
/*!
|
||||
*
|
||||
* @param dTds Input of temperature change along the path
|
||||
* @param dXds Input vector of changes in mole fraction along the path. length = m_kk
|
||||
* Along the path length it must be the case that the mole fractions sum to one.
|
||||
|
|
|
|||
|
|
@ -230,7 +230,6 @@ class PDSS;
|
|||
* This class is usually used for nearly incompressible phases. For those phases, it
|
||||
* makes sense to change the equation of state independent variable from
|
||||
* density to pressure.
|
||||
*
|
||||
*/
|
||||
class VPSSMgr
|
||||
{
|
||||
|
|
@ -525,7 +524,6 @@ public:
|
|||
virtual void updateRefStateThermo() const;
|
||||
|
||||
protected:
|
||||
|
||||
//! Updates the standard state thermodynamic functions at the
|
||||
//! current T and P of the solution.
|
||||
/*!
|
||||
|
|
|
|||
|
|
@ -28,9 +28,7 @@ namespace Cantera
|
|||
*/
|
||||
class VPSSMgr_ConstVol : public VPSSMgr
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! Constructor
|
||||
/*!
|
||||
* @param vp_ptr Pointer to the owning VPStandardStateTP object
|
||||
|
|
@ -61,7 +59,6 @@ public:
|
|||
//@{
|
||||
|
||||
protected:
|
||||
|
||||
virtual void _updateStandardStateThermo();
|
||||
|
||||
//@}
|
||||
|
|
|
|||
|
|
@ -129,7 +129,6 @@ public:
|
|||
virtual PDSS* createInstallPDSS(size_t k, const XML_Node& speciesNode,
|
||||
const XML_Node* const phaseNode_ptr);
|
||||
|
||||
|
||||
virtual PDSS_enumType reportPDSSType(int index = -1) const ;
|
||||
virtual VPSSMgr_enumType reportVPSSMgrType() const ;
|
||||
virtual void initAllPtrs(VPStandardStateTP* vp_ptr, SpeciesThermo* sp_ptr);
|
||||
|
|
|
|||
|
|
@ -50,11 +50,9 @@ public:
|
|||
//@}
|
||||
|
||||
protected:
|
||||
|
||||
virtual void _updateStandardStateThermo();
|
||||
|
||||
public:
|
||||
|
||||
/*! @name Initialization Methods - For Internal use
|
||||
* The following methods are used in the process of constructing the phase
|
||||
* and setting its parameters from a specification in an input file. They
|
||||
|
|
|
|||
|
|
@ -60,7 +60,6 @@ private:
|
|||
//@}
|
||||
|
||||
public:
|
||||
|
||||
/*! @name Thermodynamic Values for the Species Reference States
|
||||
* There are also temporary variables for holding the species reference-
|
||||
* state values of Cp, H, S, and V at the last temperature and reference
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ public:
|
|||
/*!
|
||||
* @param vptp_ptr Pointer to the Variable pressure ThermoPhase object
|
||||
* This object must have already been malloced.
|
||||
*
|
||||
* @param spth Pointer to the optional SpeciesThermo object
|
||||
* that will handle the calculation of the reference
|
||||
* state thermodynamic coefficients.
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@ namespace Cantera
|
|||
*/
|
||||
class VPStandardStateTP : public ThermoPhase
|
||||
{
|
||||
|
||||
public:
|
||||
//! @name Constructors and Duplicators for VPStandardStateTP
|
||||
|
||||
|
|
@ -224,7 +223,6 @@ public:
|
|||
*/
|
||||
virtual void getCp_R(doublereal* cpr) const;
|
||||
|
||||
|
||||
//! Get the molar volumes of each species in their standard
|
||||
//! states at the current
|
||||
//! <I>T</I> and <I>P</I> of the solution.
|
||||
|
|
@ -284,7 +282,6 @@ public:
|
|||
|
||||
//! Updates the standard state thermodynamic functions at the current T and P of the solution.
|
||||
/*!
|
||||
*
|
||||
* If m_useTmpStandardStateStorage is true,
|
||||
* this function must be called for every call to functions in this
|
||||
* class. It checks to see whether the temperature or pressure has changed and
|
||||
|
|
@ -302,7 +299,6 @@ public:
|
|||
*
|
||||
* If m_useTmpStandardStateStorage is not true, this function may be
|
||||
* required to be called by child classes to update internal member data.
|
||||
*
|
||||
*/
|
||||
virtual void updateStandardStateThermo() const;
|
||||
|
||||
|
|
@ -354,12 +350,10 @@ protected:
|
|||
* has changed. It automatically assumes that it has changed.
|
||||
* If m_useTmpStandardStateStorage is not true, this function may be
|
||||
* required to be called by child classes to update internal member data..
|
||||
*
|
||||
*/
|
||||
virtual void _updateStandardStateThermo() const;
|
||||
|
||||
public:
|
||||
|
||||
/// @name Thermodynamic Values for the Species Reference States (VPStandardStateTP)
|
||||
/*!
|
||||
* There are also temporary
|
||||
|
|
@ -511,7 +505,6 @@ public:
|
|||
const PDSS* providePDSS(size_t k) const;
|
||||
|
||||
protected:
|
||||
|
||||
//! Current value of the pressure - state variable
|
||||
/*!
|
||||
* Because we are now using the pressure as a state variable, we need to carry it
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
#include "SingleSpeciesTP.h"
|
||||
|
||||
|
||||
namespace Cantera
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
*/
|
||||
// Copyright 2001 California Institute of Technology
|
||||
|
||||
|
||||
#ifndef SPECIES_THERMO_TYPES_H
|
||||
#define SPECIES_THERMO_TYPES_H
|
||||
|
||||
|
|
@ -68,5 +67,3 @@
|
|||
#define PDSS_TYPE 37
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -176,7 +176,6 @@ public:
|
|||
friend class TransportFactory;
|
||||
|
||||
protected:
|
||||
|
||||
//! Initialization routine called by TransportFactory
|
||||
/*!
|
||||
* The DustyGas model is a subordinate model to the gas phase transport model. Here we
|
||||
|
|
@ -218,7 +217,6 @@ private:
|
|||
*
|
||||
* where \f$ \phi \f$ is the porosity of the media and \f$ \tau \f$ is
|
||||
* the tortuosity of the media.
|
||||
*
|
||||
*/
|
||||
void updateBinaryDiffCoeffs();
|
||||
|
||||
|
|
@ -343,7 +341,6 @@ private:
|
|||
* Note, this object owns the gastran object
|
||||
*/
|
||||
Transport* m_gastran;
|
||||
|
||||
};
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@ namespace Cantera
|
|||
class HighPressureGasTransport : public MultiTransport
|
||||
{
|
||||
protected:
|
||||
|
||||
//! default constructor
|
||||
/*!
|
||||
* @param thermo Optional parameter for the pointer to the ThermoPhase object
|
||||
|
|
@ -68,7 +67,6 @@ public:
|
|||
friend class TransportFactory;
|
||||
|
||||
protected:
|
||||
|
||||
virtual doublereal Tcrit_i(size_t i);
|
||||
|
||||
virtual doublereal Pcrit_i(size_t i);
|
||||
|
|
|
|||
|
|
@ -143,7 +143,6 @@ private:
|
|||
virtual void adjustCoeffsForComposition();
|
||||
|
||||
protected:
|
||||
|
||||
//! Species Name for the property that is being described
|
||||
std::string m_speciesName;
|
||||
|
||||
|
|
@ -397,7 +396,6 @@ public:
|
|||
//! Assignment operator
|
||||
/*!
|
||||
* @param right Object to be copied
|
||||
*
|
||||
* @return returns a reference to the current object
|
||||
*/
|
||||
LTPspecies_Poly& operator=(const LTPspecies_Poly& right);
|
||||
|
|
@ -481,7 +479,6 @@ public:
|
|||
//! Assignment operator
|
||||
/*!
|
||||
* @param right Object to be copied
|
||||
*
|
||||
* @return returns a reference to the current object
|
||||
*/
|
||||
LTPspecies_ExpT& operator=(const LTPspecies_ExpT& right);
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue