mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
[docs] Avoid namespace Cantera link in Doxygen docstrings
Writing %Cantera rather than Cantera in Doxygen docstrings avoids creating a link to the Cantera namespace in the generated documentation.
This commit is contained in:
parent
6b44f1e840
commit
70f2d50d30
@ -128,14 +128,14 @@ public:
|
||||
|
||||
//! Returns `true` if the held value is a vector of the specified type, such as
|
||||
//! `vector<double>`.
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @since New in %Cantera 3.0.
|
||||
template<class T>
|
||||
bool isVector() const;
|
||||
|
||||
//! Returns `true` if the held value is a matrix of the specified type and a
|
||||
//! consistent number of columns, such as `vector<vector<double>>`. If the
|
||||
//! number of columns is provided, a match is required.
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @since New in %Cantera 3.0.
|
||||
template<class T>
|
||||
bool isMatrix(size_t cols=npos) const;
|
||||
|
||||
@ -147,7 +147,7 @@ public:
|
||||
//! If not a vector or the type is not supported npos is returned.
|
||||
//! Types considered include `vector<double>`, `vector<long int>`, `vector<string>`,
|
||||
//! and `vector<bool`.
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @since New in %Cantera 3.0.
|
||||
size_t vectorSize() const;
|
||||
|
||||
//! Returns rows and columns of a matrix.
|
||||
@ -155,7 +155,7 @@ public:
|
||||
//! npos; if the type is not supported, a npos pair is returned.
|
||||
//! Types considered include `vector<vector<double>>`, `vector<vector<long int>>`,
|
||||
//! `vector<vector<string>>` and `vector<vector<bool>>`.
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @since New in %Cantera 3.0.
|
||||
pair<size_t, size_t> matrixShape() const;
|
||||
|
||||
explicit AnyValue(const std::string& value);
|
||||
@ -430,7 +430,7 @@ public:
|
||||
//! Create an AnyMap from a YAML file.
|
||||
/*!
|
||||
* Searches the directory containing the optionally-specified parent file
|
||||
* first, followed by the current working directory and the Cantera include
|
||||
* first, followed by the current working directory and the %Cantera include
|
||||
* path.
|
||||
*/
|
||||
static AnyMap fromYamlFile(const std::string& name,
|
||||
@ -475,7 +475,7 @@ public:
|
||||
std::string keys_str() const;
|
||||
|
||||
//! Return an unordered set of keys
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @since New in %Cantera 3.0.
|
||||
std::set<std::string> keys() const;
|
||||
|
||||
//! Set a metadata value that applies to this AnyMap and its children.
|
||||
|
@ -29,9 +29,9 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
//! Base class for managing user-defined Cantera extensions written in other languages
|
||||
//! Base class for managing user-defined %Cantera extensions written in other languages
|
||||
//!
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
class ExtensionManager
|
||||
{
|
||||
public:
|
||||
|
@ -14,7 +14,7 @@ namespace Cantera
|
||||
|
||||
//! A factory class for creating ExtensionManager objects
|
||||
//!
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
class ExtensionManagerFactory : public Factory<ExtensionManager>
|
||||
{
|
||||
public:
|
||||
|
@ -72,7 +72,7 @@ public:
|
||||
|
||||
//! Set the Transport object by name
|
||||
//! @param model name of transport model; if omitted, the default model is used
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
void setTransportModel(const std::string& model="");
|
||||
|
||||
//! Accessor for the ThermoPhase pointer
|
||||
@ -139,11 +139,11 @@ public:
|
||||
//! Solution is replaced.
|
||||
//! When the callback becomes invalid (for example, the corresponding object is
|
||||
//! being deleted, the removeChangedCallback() method must be invoked.
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
void registerChangedCallback(void* id, const function<void()>& callback);
|
||||
|
||||
//! Remove the callback function associated with the specified object.
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
void removeChangedCallback(void* id);
|
||||
|
||||
protected:
|
||||
|
@ -23,10 +23,10 @@ class ThermoPhase;
|
||||
* stored, reshaping operations need to be implemented in high-level API's.
|
||||
*
|
||||
* The SolutionArray class implements the main interface for saving and restoring of
|
||||
* Cantera simulation data. SolutionArray objects can be serialized to and from YAML and
|
||||
* %Cantera simulation data. SolutionArray objects can be serialized to and from YAML and
|
||||
* HDF container files using the save() and restore() methods. In addition, there is
|
||||
* limited support for CSV files.
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
* @ingroup solnGroup
|
||||
*/
|
||||
class SolutionArray
|
||||
|
@ -31,7 +31,7 @@ namespace Cantera
|
||||
* A wrapper class handling storage to HDF; acts as a thin wrapper for HighFive.
|
||||
* The class implements methods that are intended to be called from SolutionArray.
|
||||
*
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
* @warning This class is an experimental part of the %Cantera API and may be
|
||||
* changed or removed without notice.
|
||||
*/
|
||||
|
@ -74,7 +74,7 @@ private:
|
||||
//! Scale the unit by the factor `k`
|
||||
void scale(double k) { m_factor *= k; }
|
||||
|
||||
double m_factor = 1.0; //!< conversion factor to Cantera base units
|
||||
double m_factor = 1.0; //!< conversion factor to %Cantera base units
|
||||
double m_mass_dim = 0.0;
|
||||
double m_length_dim = 0.0;
|
||||
double m_time_dim = 0.0;
|
||||
@ -232,7 +232,7 @@ public:
|
||||
//! units specified in `dest`. Works like `convert(AnyValue&, Units&)` but with
|
||||
//! special handling for the case where the destination units are undefined.
|
||||
//!
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
double convertRateCoeff(const AnyValue& val, const Units& dest) const;
|
||||
|
||||
//! Convert an array of AnyValue nodes to the units specified in `dest`. For
|
||||
|
@ -54,7 +54,7 @@ namespace Cantera
|
||||
*/
|
||||
|
||||
|
||||
//! Base class for exceptions thrown by Cantera classes.
|
||||
//! Base class for exceptions thrown by %Cantera classes.
|
||||
/*!
|
||||
* This class is the base class for exceptions thrown by Cantera. It inherits
|
||||
* from std::exception so that normal error handling operations from
|
||||
@ -127,7 +127,7 @@ private:
|
||||
|
||||
//! Array size error.
|
||||
/*!
|
||||
* This error is thrown if a supplied length to a vector supplied to Cantera is
|
||||
* This error is thrown if a supplied length to a vector supplied to %Cantera is
|
||||
* too small.
|
||||
*
|
||||
* @ingroup errGroup
|
||||
|
@ -84,7 +84,7 @@ void loadExtension(const std::string& extType, const std::string& name);
|
||||
//! Load extensions providing user-defined models from the `extensions` section of the
|
||||
//! given node. @see Application::loadExtension
|
||||
//!
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
void loadExtensions(const AnyMap& node);
|
||||
|
||||
//! @copydoc Application::searchPythonVersions
|
||||
@ -100,7 +100,7 @@ void appdelete();
|
||||
//! @copydoc Application::thread_complete
|
||||
void thread_complete();
|
||||
|
||||
//! @defgroup globalSettings Global Cantera Settings
|
||||
//! @defgroup globalSettings Global %Cantera Settings
|
||||
//! @brief Functions for accessing global %Cantera settings.
|
||||
//! @ingroup globalData
|
||||
|
||||
@ -109,15 +109,15 @@ void thread_complete();
|
||||
|
||||
//! Returns `true` if %Cantera was loaded as a shared library in the current
|
||||
//! application. Returns `false` if it was statically linked.
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
bool usingSharedLibrary();
|
||||
|
||||
//! @name Cantera Version Information
|
||||
//! @name %Cantera Version Information
|
||||
//! @{
|
||||
|
||||
//! Returns the %Cantera version. This function is used to access the version from a
|
||||
//! library, rather than the \c CANTERA_VERSION macro that is available at compile time.
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
string version();
|
||||
|
||||
//! Returns the hash of the git commit from which %Cantera was compiled, if known
|
||||
@ -131,7 +131,7 @@ std::string gitCommit();
|
||||
bool debugModeEnabled();
|
||||
|
||||
//! Returns true if %Cantera was compiled with C++ \c HDF5 support.
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @since New in %Cantera 3.0.
|
||||
bool usesHDF5();
|
||||
|
||||
//! @}
|
||||
@ -142,7 +142,7 @@ bool usesHDF5();
|
||||
*
|
||||
* Writing diagnostic information to the screen or to a file. It is often
|
||||
* useful to be able to write diagnostic messages to the screen or to a file.
|
||||
* Cantera defines a set of procedures for this purpose designed to write text messages
|
||||
* %Cantera defines a set of procedures for this purpose designed to write text messages
|
||||
* to the screen to document the progress of a complex calculation, such as a
|
||||
* flame simulation.
|
||||
* @ingroup debugGroup
|
||||
@ -166,10 +166,10 @@ inline void debuglog(const std::string& msg, int loglevel)
|
||||
//!
|
||||
//! This function passes its arguments to the fmt library 'format' function to
|
||||
//! generate a formatted string from a Python-style (curly braces) format
|
||||
//! string. This method is used throughout Cantera to write log messages. It can
|
||||
//! string. This method is used throughout %Cantera to write log messages. It can
|
||||
//! also be called by user programs. The advantage of using writelog over
|
||||
//! writing directly to the standard output is that messages written with
|
||||
//! writelog will display correctly even when Cantera is used from MATLAB or
|
||||
//! writelog will display correctly even when %Cantera is used from MATLAB or
|
||||
//! other application that do not have a standard output stream.
|
||||
template <typename... Args>
|
||||
void writelog(const std::string& fmt, const Args&... args) {
|
||||
@ -322,7 +322,7 @@ void setLogger(Logger* logwriter);
|
||||
//! documentation says doing this from an error handler is not safe on all platforms
|
||||
//! and risks deadlocking. However, it can be useful for debugging and is therefore
|
||||
//! enabled when running tests.
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
//! @ingroup globalSettings
|
||||
void printStackTraceOnSegfault();
|
||||
|
||||
|
@ -24,7 +24,7 @@ namespace Cantera
|
||||
//! output stream or standard error stream, but classes may be derived from
|
||||
//! Logger that implement other output options. This is important when Cantera
|
||||
//! is used in applications that do not display the standard output, such as
|
||||
//! MATLAB. The Cantera MATLAB interface derives a class from Logger that
|
||||
//! MATLAB. The %Cantera MATLAB interface derives a class from Logger that
|
||||
//! implements these methods with MATLAB-specific procedures, insuring that the
|
||||
//! messages will be passed through to the user. It would also be possible to
|
||||
//! derive a class that displayed the messages in a pop-up window, or redirected
|
||||
@ -82,7 +82,7 @@ public:
|
||||
* The default behavior is to write to the standard error stream, and then
|
||||
* call exit(). Note that no end-of-line character is appended to the
|
||||
* message, and so if one is desired it must be included in the string. Note
|
||||
* that this default behavior will terminate the application Cantera is
|
||||
* that this default behavior will terminate the application %Cantera is
|
||||
* invoked from (MATLAB, Excel, etc.) If this is not desired, then derive a
|
||||
* class and reimplement this method.
|
||||
*
|
||||
|
@ -115,7 +115,7 @@ void tokenizeString(const std::string& oval,
|
||||
* @param oval String to be broken up
|
||||
* @param v Output vector of tokens.
|
||||
*
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
void tokenizePath(const std::string& oval,
|
||||
std::vector<std::string>& v);
|
||||
|
@ -122,7 +122,7 @@ extern "C" {
|
||||
CANTERA_CAPI int thermo_setState_Psat(int n, double p, double x);
|
||||
CANTERA_CAPI int thermo_setState_Tsat(int n, double t, double x);
|
||||
|
||||
//! @since Starting in Cantera 3.0, the "phasename" argument should be blank
|
||||
//! @since Starting in %Cantera 3.0, the "phasename" argument should be blank
|
||||
CANTERA_CAPI int kin_newFromFile(const char* filename, const char* phasename,
|
||||
int reactingPhase, int neighbor1, int neighbor2,
|
||||
int neighbor3, int neighbor4);
|
||||
|
@ -51,7 +51,7 @@ extern "C" {
|
||||
CANTERA_CAPI int flowdev_new(const char* type);
|
||||
CANTERA_CAPI int flowdev_del(int i);
|
||||
CANTERA_CAPI int flowdev_install(int i, int n, int m);
|
||||
//! @deprecated To be removed after Cantera 3.0; replaced by flowdev_setPrimary
|
||||
//! @deprecated To be removed after %Cantera 3.0; replaced by flowdev_setPrimary
|
||||
CANTERA_CAPI int flowdev_setMaster(int i, int n);
|
||||
CANTERA_CAPI int flowdev_setPrimary(int i, int n);
|
||||
CANTERA_CAPI double flowdev_massFlowRate(int i);
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @file core.h
|
||||
*
|
||||
* Support for Cantera core calculations from C++ application programs. This
|
||||
* Support for %Cantera core calculations from C++ application programs. This
|
||||
* header file includes a minimal set of headers needed to create and use objects
|
||||
* that evaluate thermo properties, chemical kinetics and transport properties.
|
||||
*/
|
||||
|
@ -20,7 +20,7 @@ class ThermoPhase;
|
||||
//! A class for multiphase mixtures. The mixture can contain any
|
||||
//! number of phases of any type.
|
||||
/*!
|
||||
* This object is the basic tool used by Cantera for use in Multiphase
|
||||
* This object is the basic tool used by %Cantera for use in Multiphase
|
||||
* equilibrium calculations.
|
||||
*
|
||||
* It is a container for a set of phases. Each phase has a given number of
|
||||
|
@ -51,7 +51,7 @@ class VCS_SOLVE;
|
||||
* contains structures that point to the species belonging to this phase in the
|
||||
* global vcs species list.
|
||||
*
|
||||
* This object is considered not to own the underlying Cantera ThermoPhase
|
||||
* This object is considered not to own the underlying %Cantera ThermoPhase
|
||||
* object for the phase.
|
||||
*
|
||||
* This object contains an idea of the temperature and pressure. It checks to
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include "cantera/base/global.h"
|
||||
namespace Cantera
|
||||
{
|
||||
//! define this Cantera function to replace printf
|
||||
//! define this %Cantera function to replace printf
|
||||
/*!
|
||||
* We can replace this with printf easily
|
||||
*/
|
||||
|
@ -11,7 +11,7 @@
|
||||
namespace Cantera
|
||||
{
|
||||
|
||||
//! Class for managing user-defined Cantera extensions written in Python
|
||||
//! Class for managing user-defined %Cantera extensions written in Python
|
||||
//!
|
||||
//! Handles Python initialization if the main application is not the Python interpreter.
|
||||
//!
|
||||
@ -21,7 +21,7 @@ namespace Cantera
|
||||
//! <a href="../../sphinx/html/cython/utilities.html#cantera.extension">`@extension`</a>
|
||||
//! in the Python documentation for more information.
|
||||
//!
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
class PythonExtensionManager : public ExtensionManager
|
||||
{
|
||||
public:
|
||||
|
@ -24,7 +24,7 @@ public:
|
||||
//! @{
|
||||
BulkKinetics();
|
||||
|
||||
//! @deprecated To be removed after Cantera 3.0; code base only uses default.
|
||||
//! @deprecated To be removed after %Cantera 3.0; code base only uses default.
|
||||
BulkKinetics(ThermoPhase* thermo);
|
||||
|
||||
string kineticsType() const override {
|
||||
|
@ -124,7 +124,7 @@ public:
|
||||
|
||||
void getParameters(AnyMap& rateNode) const;
|
||||
|
||||
//! @deprecated To be removed after Cantera 3.0.
|
||||
//! @deprecated To be removed after %Cantera 3.0.
|
||||
void getParameters(AnyMap& rateNode, const Units& rate_units) const {
|
||||
warn_deprecated("ChebyshevRate:getParameters",
|
||||
"To be removed after Cantera 3.0. Second argument is no longer needed.");
|
||||
|
@ -81,7 +81,7 @@ public:
|
||||
* @param c Vector of coefficients of the parameterization. The number and
|
||||
* meaning of these coefficients is subclass-dependent.
|
||||
*
|
||||
* @deprecated To be removed after Cantera 3.0; superseded by setFalloffCoeffs()
|
||||
* @deprecated To be removed after %Cantera 3.0; superseded by setFalloffCoeffs()
|
||||
*/
|
||||
void init(const vector_fp& c);
|
||||
|
||||
@ -144,7 +144,7 @@ public:
|
||||
|
||||
//! The size of the work array required.
|
||||
/**
|
||||
* @deprecated To be removed after Cantera 3.0; unused.
|
||||
* @deprecated To be removed after %Cantera 3.0; unused.
|
||||
*/
|
||||
virtual size_t workSize() const {
|
||||
warn_deprecated("FalloffRate::workSize",
|
||||
@ -171,7 +171,7 @@ public:
|
||||
//! Get the values of the parameters for this object. *params* must be an
|
||||
//! array of at least nParameters() elements.
|
||||
/**
|
||||
* @deprecated To be removed after Cantera 3.0; superseded by getFalloffCoeffs()
|
||||
* @deprecated To be removed after %Cantera 3.0; superseded by getFalloffCoeffs()
|
||||
*/
|
||||
virtual void getParameters(double* params) const {
|
||||
warn_deprecated("FalloffRate::getParameters",
|
||||
@ -366,7 +366,7 @@ public:
|
||||
|
||||
//! Sets params to contain, in order, \f[ (A, T_3, T_1, T_2) \f]
|
||||
/**
|
||||
* @deprecated To be removed after Cantera 3.0; superseded by getFalloffCoeffs()
|
||||
* @deprecated To be removed after %Cantera 3.0; superseded by getFalloffCoeffs()
|
||||
*/
|
||||
virtual void getParameters(double* params) const override;
|
||||
|
||||
@ -466,7 +466,7 @@ public:
|
||||
|
||||
//! Sets params to contain, in order, \f[ (a, b, c, d, e) \f]
|
||||
/**
|
||||
* @deprecated To be removed after Cantera 3.0; superseded by getFalloffCoeffs()
|
||||
* @deprecated To be removed after %Cantera 3.0; superseded by getFalloffCoeffs()
|
||||
*/
|
||||
virtual void getParameters(double* params) const override;
|
||||
|
||||
@ -572,7 +572,7 @@ public:
|
||||
|
||||
//! Sets params to contain, in order, \f[ (A, B) \f]
|
||||
/**
|
||||
* @deprecated To be removed after Cantera 3.0; superseded by getFalloffCoeffs()
|
||||
* @deprecated To be removed after %Cantera 3.0; superseded by getFalloffCoeffs()
|
||||
*/
|
||||
virtual void getParameters(double* params) const override;
|
||||
|
||||
|
@ -24,7 +24,7 @@ namespace Cantera
|
||||
* implements standard mass-action reaction rate expressions for low-density
|
||||
* gases.
|
||||
* @ingroup kineticsmgr
|
||||
* @deprecated Replace with BulkKinetics. To be removed after Cantera 3.0.
|
||||
* @deprecated Replace with BulkKinetics. To be removed after %Cantera 3.0.
|
||||
*/
|
||||
class GasKinetics : public BulkKinetics
|
||||
{
|
||||
@ -33,7 +33,7 @@ public:
|
||||
//! Constructor.
|
||||
GasKinetics() {}
|
||||
|
||||
//! @deprecated To be removed after Cantera 3.0; code base only uses default.
|
||||
//! @deprecated To be removed after %Cantera 3.0; code base only uses default.
|
||||
GasKinetics(ThermoPhase* thermo) : GasKinetics() {
|
||||
warn_deprecated("GasKinetics::GasKinetics(ThermoPhase*)",
|
||||
"To be removed after Cantera 3.0. Use default constructor instead.");
|
||||
|
@ -65,7 +65,7 @@ public:
|
||||
* HKM Note -> Since the interface kinetics object will
|
||||
* probably require multiple ThermoPhase objects, this is
|
||||
* probably not a good idea to have this parameter.
|
||||
* @deprecated To be removed after Cantera 3.0; code base only uses default.
|
||||
* @deprecated To be removed after %Cantera 3.0; code base only uses default.
|
||||
*/
|
||||
InterfaceKinetics(ThermoPhase* thermo);
|
||||
|
||||
|
@ -111,7 +111,7 @@ public:
|
||||
//! Store parameters needed to reconstruct coverage dependencies
|
||||
//! @param dependencies AnyMap receiving coverage information
|
||||
//! @param asVector Optional boolean flag to override map output
|
||||
//! @deprecated After Cantera 3.0, the optional asVector argument will be removed.
|
||||
//! @deprecated After %Cantera 3.0, the optional asVector argument will be removed.
|
||||
void getCoverageDependencies(AnyMap& dependencies, bool asVector=false) const;
|
||||
|
||||
//! Add a coverage dependency for species *sp*, with exponential dependence
|
||||
|
@ -140,7 +140,7 @@ public:
|
||||
//! Identifies the Kinetics manager type.
|
||||
//! Each class derived from Kinetics should override this method to return
|
||||
//! a meaningful identifier.
|
||||
//! @since Starting in Cantera 3.0, the name returned by this method corresponds
|
||||
//! @since Starting in %Cantera 3.0, the name returned by this method corresponds
|
||||
//! to the canonical name used in the YAML input format.
|
||||
virtual std::string kineticsType() const {
|
||||
return "none";
|
||||
@ -217,7 +217,7 @@ public:
|
||||
* cSurf. For heterogeneous mechanisms, this identifies the one surface
|
||||
* phase. For homogeneous mechanisms, this returns -1.
|
||||
*
|
||||
* @deprecated To be removed after Cantera 3.0. Use reactionPhaseIndex instead.
|
||||
* @deprecated To be removed after %Cantera 3.0. Use reactionPhaseIndex instead.
|
||||
*/
|
||||
size_t surfacePhaseIndex() const;
|
||||
|
||||
@ -229,8 +229,8 @@ public:
|
||||
* of phases. If there is more than one, the index of the first one is
|
||||
* returned. For homogeneous mechanisms, the value 0 is returned.
|
||||
*
|
||||
* @deprecated Starting in Cantera 3.0, the reacting phase will always be the
|
||||
* first phase in the InterfaceKinetics object. To be removed after Cantera 3.1.
|
||||
* @deprecated Starting in %Cantera 3.0, the reacting phase will always be the
|
||||
* first phase in the InterfaceKinetics object. To be removed after %Cantera 3.1.
|
||||
*/
|
||||
size_t reactionPhaseIndex() const {
|
||||
return m_rxnphase;
|
||||
@ -238,7 +238,7 @@ public:
|
||||
|
||||
/**
|
||||
* Return pointer to phase where the reactions occur.
|
||||
* @since New in Cantera 3.0
|
||||
* @since New in %Cantera 3.0
|
||||
*/
|
||||
shared_ptr<ThermoPhase> reactionPhase() const;
|
||||
|
||||
@ -324,7 +324,7 @@ public:
|
||||
*
|
||||
* @param nm Input string name of the species
|
||||
* @param ph Input string name of the phase.
|
||||
* @deprecated To be removed after Cantera 3.0. Species names should be unique
|
||||
* @deprecated To be removed after %Cantera 3.0. Species names should be unique
|
||||
* across all phases.
|
||||
*/
|
||||
size_t kineticsSpeciesIndex(const std::string& nm,
|
||||
@ -757,7 +757,7 @@ public:
|
||||
* @warning This method is an experimental part of the %Cantera API and
|
||||
* may be changed or removed without notice.
|
||||
*
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
virtual Eigen::SparseMatrix<double> fwdRatesOfProgress_ddCi()
|
||||
{
|
||||
@ -830,7 +830,7 @@ public:
|
||||
* @warning This method is an experimental part of the %Cantera API and
|
||||
* may be changed or removed without notice.
|
||||
*
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
virtual Eigen::SparseMatrix<double> revRatesOfProgress_ddCi()
|
||||
{
|
||||
@ -903,7 +903,7 @@ public:
|
||||
* @warning This method is an experimental part of the %Cantera API and
|
||||
* may be changed or removed without notice.
|
||||
*
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
virtual Eigen::SparseMatrix<double> netRatesOfProgress_ddCi()
|
||||
{
|
||||
@ -960,7 +960,7 @@ public:
|
||||
* @warning This method is an experimental part of the %Cantera API and
|
||||
* may be changed or removed without notice.
|
||||
*
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
Eigen::SparseMatrix<double> creationRates_ddCi();
|
||||
|
||||
@ -1013,7 +1013,7 @@ public:
|
||||
* @warning This method is an experimental part of the %Cantera API and
|
||||
* may be changed or removed without notice.
|
||||
*
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
Eigen::SparseMatrix<double> destructionRates_ddCi();
|
||||
|
||||
@ -1066,7 +1066,7 @@ public:
|
||||
* @warning This method is an experimental part of the %Cantera API and
|
||||
* may be changed or removed without notice.
|
||||
*
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
Eigen::SparseMatrix<double> netProductionRates_ddCi();
|
||||
|
||||
@ -1152,8 +1152,8 @@ public:
|
||||
* String specifying the type of reaction.
|
||||
*
|
||||
* @param i reaction index
|
||||
* @since Method returned magic number prior to Cantera 3.0.
|
||||
* @deprecated To be removed after Cantera 3.0. Replace with
|
||||
* @since Method returned magic number prior to %Cantera 3.0.
|
||||
* @deprecated To be removed after %Cantera 3.0. Replace with
|
||||
* `kin->reaction(i)->type()`
|
||||
*/
|
||||
virtual std::string reactionType(size_t i) const;
|
||||
@ -1162,7 +1162,7 @@ public:
|
||||
* String specifying the type of reaction.
|
||||
*
|
||||
* @param i reaction index
|
||||
* @deprecated To be removed after Cantera 3.0.
|
||||
* @deprecated To be removed after %Cantera 3.0.
|
||||
*/
|
||||
virtual std::string reactionTypeStr(size_t i) const;
|
||||
|
||||
@ -1181,18 +1181,18 @@ public:
|
||||
* Return a string representing the reaction.
|
||||
*
|
||||
* @param i reaction index
|
||||
* @deprecated To be removed after Cantera 3.0. Replace with
|
||||
* @deprecated To be removed after %Cantera 3.0. Replace with
|
||||
* `kin->reaction(i)->equation()`.
|
||||
*/
|
||||
std::string reactionString(size_t i) const;
|
||||
|
||||
//! Returns a string containing the reactants side of the reaction equation.
|
||||
//! @deprecated To be removed after Cantera 3.0. Replace with
|
||||
//! @deprecated To be removed after %Cantera 3.0. Replace with
|
||||
//! `kin->reaction(i)->reactantString()`
|
||||
std::string reactantString(size_t i) const;
|
||||
|
||||
//! Returns a string containing the products side of the reaction equation.
|
||||
//! @deprecated To be removed after Cantera 3.0. Replace with
|
||||
//! @deprecated To be removed after %Cantera 3.0. Replace with
|
||||
//! `kin->reaction(i)->productString()`
|
||||
std::string productString(size_t i) const;
|
||||
|
||||
@ -1255,12 +1255,12 @@ public:
|
||||
* kinetics manager object as the value.
|
||||
*
|
||||
* @param thermo Reference to the ThermoPhase to be added.
|
||||
* @since New in Cantera 3.0. Replaces addPhase.
|
||||
* @since New in %Cantera 3.0. Replaces addPhase.
|
||||
*/
|
||||
virtual void addThermo(shared_ptr<ThermoPhase> thermo);
|
||||
|
||||
//! @see Kinetics::addThermo(shared_ptr<ThermoPhase>)
|
||||
//! @deprecated To be removed after Cantera 3.0. Replaced by addThermo
|
||||
//! @deprecated To be removed after %Cantera 3.0. Replaced by addThermo
|
||||
//! pointer.
|
||||
virtual void addPhase(ThermoPhase& thermo);
|
||||
|
||||
@ -1391,7 +1391,7 @@ public:
|
||||
* reaction mechanism
|
||||
* @param phase_data Output array where the values for the the specified
|
||||
* phase are to be written.
|
||||
* @deprecated Unused. To be removed after Cantera 3.0.
|
||||
* @deprecated Unused. To be removed after %Cantera 3.0.
|
||||
*/
|
||||
void selectPhase(const double* data, const ThermoPhase* phase,
|
||||
double* phase_data);
|
||||
@ -1409,7 +1409,7 @@ public:
|
||||
|
||||
//! Calculate the reaction enthalpy of a reaction which
|
||||
//! has not necessarily been added into the Kinetics object
|
||||
//! @deprecated To be removed after Cantera 3.0
|
||||
//! @deprecated To be removed after %Cantera 3.0
|
||||
virtual double reactionEnthalpy(const Composition& reactants,
|
||||
const Composition& products);
|
||||
|
||||
@ -1486,7 +1486,7 @@ protected:
|
||||
std::vector<ThermoPhase*> m_thermo;
|
||||
|
||||
//! vector of shared pointers, @see m_thermo
|
||||
//! @todo replace m_thermo with shared version after Cantera 3.0
|
||||
//! @todo replace m_thermo with shared version after %Cantera 3.0
|
||||
vector<shared_ptr<ThermoPhase>> m_sharedThermo;
|
||||
|
||||
/**
|
||||
@ -1504,7 +1504,7 @@ protected:
|
||||
std::map<std::string, size_t> m_phaseindex;
|
||||
|
||||
//! Index in the list of phases of the one surface phase.
|
||||
//! @deprecated To be removed after Cantera 3.0.
|
||||
//! @deprecated To be removed after %Cantera 3.0.
|
||||
size_t m_surfphase = npos;
|
||||
|
||||
//! Phase Index where reactions are assumed to be taking place
|
||||
|
@ -69,7 +69,7 @@ shared_ptr<Kinetics> newKinetics(const vector<shared_ptr<ThermoPhase>>& phases,
|
||||
|
||||
//! @brief Create a new kinetics manager, initialize it, and add reactions.
|
||||
//! @see newKinetics(const vector<shared_ptr<ThermoPhase>>&, const AnyMap&, const AnyMap&, shared_ptr<Solution>)
|
||||
//! @deprecated To be removed after Cantera 3.0;
|
||||
//! @deprecated To be removed after %Cantera 3.0;
|
||||
//! superseded by newKinetics() returning shared_ptr
|
||||
unique_ptr<Kinetics> newKinetics(const std::vector<ThermoPhase*>& phases,
|
||||
const AnyMap& phaseNode,
|
||||
@ -81,13 +81,13 @@ unique_ptr<Kinetics> newKinetics(const std::vector<ThermoPhase*>& phases,
|
||||
* reactions, with the phase where the reactions occur (lowest-dimensional
|
||||
* phase) listed first.
|
||||
* @param filename File containing the phase definition for the phase where
|
||||
* the reactions occur. Searches the Cantera data for this file.
|
||||
* the reactions occur. Searches the %Cantera data for this file.
|
||||
* @param phase_name The name of the reacting phase in the input file (that is, the
|
||||
* name of the first phase in the `phases` vector)
|
||||
* @deprecated The 'phase_name' argument is deprecated and will be removed after
|
||||
* Cantera 3.0.
|
||||
* @since Starting with Cantera 3.0, if the reacting phase is not the first item in the
|
||||
* `phases` vector, a deprecation warning will be issued. In Cantera 3.1, this
|
||||
* %Cantera 3.0.
|
||||
* @since Starting with %Cantera 3.0, if the reacting phase is not the first item in
|
||||
* the `phases` vector, a deprecation warning will be issued. In %Cantera 3.1, this
|
||||
* warning will become an error.
|
||||
*/
|
||||
shared_ptr<Kinetics> newKinetics(const vector<shared_ptr<ThermoPhase>>& phases,
|
||||
@ -95,7 +95,7 @@ shared_ptr<Kinetics> newKinetics(const vector<shared_ptr<ThermoPhase>>& phases,
|
||||
const string& phase_name="");
|
||||
|
||||
//! @copydoc newKinetics(const vector<shared_ptr<ThermoPhase>>&, const string&, const string&)
|
||||
//! @deprecated To be removed after Cantera 3.0;
|
||||
//! @deprecated To be removed after %Cantera 3.0;
|
||||
//! superseded by newKinetics() returning shared_ptr
|
||||
unique_ptr<Kinetics> newKinetics(const std::vector<ThermoPhase*>& phases,
|
||||
const std::string& filename,
|
||||
|
@ -172,7 +172,7 @@ public:
|
||||
//! has a negative pre-exponential factor.
|
||||
void validate(const std::string& equation, const Kinetics& kin);
|
||||
|
||||
//! @deprecated To be removed after Cantera 3.0;
|
||||
//! @deprecated To be removed after %Cantera 3.0;
|
||||
//! superseded by two-parameter version
|
||||
void validate(const std::string& equation);
|
||||
|
||||
|
@ -60,7 +60,7 @@ public:
|
||||
UnitStack calculateRateCoeffUnits(const Kinetics& kin);
|
||||
|
||||
//! Calculate the units of the rate constant.
|
||||
//! @deprecated To be removed after Cantera 3.0. Replaceable by
|
||||
//! @deprecated To be removed after %Cantera 3.0. Replaceable by
|
||||
//! calculateRateCoeffUnits.
|
||||
UnitStack calculateRateCoeffUnits3(const Kinetics& kin) {
|
||||
warn_deprecated("Reaction::calculateRateCoeffUnits3",
|
||||
@ -70,11 +70,11 @@ public:
|
||||
}
|
||||
|
||||
//! Ensure that the rate constant and other parameters for this reaction are valid.
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @since New in %Cantera 3.0.
|
||||
void check();
|
||||
|
||||
//! Ensure that the rate constant and other parameters for this reaction are valid.
|
||||
//! @deprecated To be removed after Cantera 3.0. Replaceable by check.
|
||||
//! @deprecated To be removed after %Cantera 3.0. Replaceable by check.
|
||||
void validate() {
|
||||
warn_deprecated("Reaction::validate",
|
||||
"Deprecated in Cantera 3.0 and to be removed thereafter; replaceable "
|
||||
@ -178,7 +178,7 @@ public:
|
||||
}
|
||||
|
||||
//! Check whether reaction involves third body collider
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @since New in %Cantera 3.0.
|
||||
bool usesThirdBody() const {
|
||||
return bool(m_third_body);
|
||||
}
|
||||
@ -216,30 +216,30 @@ public:
|
||||
ThirdBody(const std::string& third_body);
|
||||
ThirdBody(const AnyMap& node);
|
||||
|
||||
//! @deprecated To be removed after Cantera 3.0; instantiate using string instead
|
||||
//! @deprecated To be removed after %Cantera 3.0; instantiate using string instead
|
||||
ThirdBody(double default_efficiency);
|
||||
|
||||
//! Name of the third body collider
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
std::string name() const {
|
||||
return m_name;
|
||||
}
|
||||
|
||||
//! Set name of the third body collider
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
void setName(const std::string& third_body);
|
||||
|
||||
//! Set third-body efficiencies from AnyMap *node*
|
||||
//! @deprecated To be removed after Cantera 3.0; renamed to setParameters
|
||||
//! @deprecated To be removed after %Cantera 3.0; renamed to setParameters
|
||||
void setEfficiencies(const AnyMap& node);
|
||||
|
||||
//! Set third-body efficiencies from AnyMap *node*
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
void setParameters(const AnyMap& node);
|
||||
|
||||
//! Get third-body efficiencies from AnyMap *node*
|
||||
//! @param node AnyMap receiving serialized parameters
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
void getParameters(AnyMap& node) const;
|
||||
|
||||
//! Get the third-body efficiency for species *k*
|
||||
@ -247,7 +247,7 @@ public:
|
||||
|
||||
//! Suffix representing the third body collider in reaction equation, for example
|
||||
//! `+ M` or `(+M)`
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
std::string collider() const;
|
||||
|
||||
//! Verify that all species involved in collision efficiencies are defined in the
|
||||
@ -256,7 +256,7 @@ public:
|
||||
//! species, in which case false is returned.
|
||||
//! @param rxn Reaction object
|
||||
//! @param kin Kinetics object
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
bool checkSpecies(const Reaction& rxn, const Kinetics& kin) const;
|
||||
|
||||
//! Map of species to third body efficiency
|
||||
@ -280,7 +280,7 @@ protected:
|
||||
|
||||
//! A reaction with a non-reacting third body "M" that acts to add or remove
|
||||
//! energy from the reacting species
|
||||
//! @deprecated To be removed after Cantera 3.0. Merged with Reaction
|
||||
//! @deprecated To be removed after %Cantera 3.0. Merged with Reaction
|
||||
class ThreeBodyReaction : public Reaction
|
||||
{
|
||||
public:
|
||||
@ -298,7 +298,7 @@ public:
|
||||
//! decreases as pressure increases due to collisional stabilization of a reaction
|
||||
//! intermediate; in this case, the forward rate constant is written as being
|
||||
//! proportional to the low-pressure rate constant.
|
||||
//! @deprecated To be removed after Cantera 3.0. Merged with Reaction
|
||||
//! @deprecated To be removed after %Cantera 3.0. Merged with Reaction
|
||||
class FalloffReaction : public Reaction
|
||||
{
|
||||
public:
|
||||
|
@ -115,7 +115,7 @@ public:
|
||||
//!
|
||||
//! These units are often the same as the units of the rate expression itself, but
|
||||
//! not always; sticking coefficients are a notable exception.
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
const Units& conversionUnits() const {
|
||||
return m_conversion_units;
|
||||
}
|
||||
@ -126,7 +126,7 @@ public:
|
||||
//! reaction rate expression, which often have the same units (for example, the
|
||||
//! Arrhenius pre-exponential) but may also be different (for example, sticking
|
||||
//! coefficients).
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
virtual void setRateUnits(const UnitStack& rate_units) {
|
||||
if (rate_units.size() > 1) {
|
||||
m_conversion_units = rate_units.product();
|
||||
@ -139,7 +139,7 @@ public:
|
||||
virtual void check(const std::string& equation) {}
|
||||
|
||||
//! Check basic syntax and settings of reaction rate expression
|
||||
//! @deprecated To be removed after Cantera 3.0.
|
||||
//! @deprecated To be removed after %Cantera 3.0.
|
||||
//! Superseded by single-parameter version
|
||||
void check(const std::string& equation, const AnyMap& node) {
|
||||
warn_deprecated("ReactionRate::check",
|
||||
@ -151,7 +151,7 @@ public:
|
||||
virtual void validate(const std::string& equation, const Kinetics& kin) {}
|
||||
|
||||
//! Validate the reaction rate expression (legacy call)
|
||||
//! @deprecated To be removed after Cantera 3.0.
|
||||
//! @deprecated To be removed after %Cantera 3.0.
|
||||
//! Superseded by two-parameter version
|
||||
virtual void validate(const std::string& equation) {
|
||||
warn_deprecated("ReactionRate::validate",
|
||||
@ -220,13 +220,13 @@ public:
|
||||
}
|
||||
|
||||
//! Boolean indicating whether rate has compositional dependence
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
bool compositionDependent() {
|
||||
return m_composition_dependent_rate;
|
||||
}
|
||||
|
||||
//! Set rate compositional dependence
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
void setCompositionDependence(bool comp_dep) {
|
||||
m_composition_dependent_rate = comp_dep;
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ namespace Cantera
|
||||
|
||||
//! Delegate methods of the ReactionData class to external functions
|
||||
//!
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
class ReactionDataDelegator : public Delegator, public ReactionData
|
||||
{
|
||||
public:
|
||||
@ -63,7 +63,7 @@ protected:
|
||||
|
||||
//! Delegate methods of the ReactionRate class to external functions
|
||||
//!
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
//! @ingroup otherRateGroup
|
||||
class ReactionRateDelegator : public Delegator, public ReactionRate
|
||||
{
|
||||
|
@ -20,7 +20,7 @@ namespace Cantera
|
||||
/**
|
||||
* @defgroup numerics Numerical Utilities
|
||||
*
|
||||
* @details Cantera contains some capabilities for solving nonlinear equations and
|
||||
* @details %Cantera contains some capabilities for solving nonlinear equations and
|
||||
* integrating both ODE and DAE equation systems in time.
|
||||
*/
|
||||
|
||||
|
@ -110,31 +110,31 @@ public:
|
||||
|
||||
virtual ~Func1() = default;
|
||||
|
||||
//! @deprecated To be removed after Cantera 3.0. Only used by deprecated methods.
|
||||
//! @deprecated To be removed after %Cantera 3.0. Only used by deprecated methods.
|
||||
Func1(const Func1& right);
|
||||
|
||||
//! @deprecated To be removed after Cantera 3.0. Only used by deprecated methods.
|
||||
//! @deprecated To be removed after %Cantera 3.0. Only used by deprecated methods.
|
||||
Func1& operator=(const Func1& right);
|
||||
|
||||
//! Duplicate the current function.
|
||||
/*!
|
||||
* This duplicates the current function, returning a reference to the newly
|
||||
* created function.
|
||||
* @deprecated To be removed after Cantera 3.0. Only used by deprecated methods.
|
||||
* @deprecated To be removed after %Cantera 3.0. Only used by deprecated methods.
|
||||
*/
|
||||
virtual Func1& duplicate() const;
|
||||
|
||||
//! @deprecated To be removed after Cantera 3.0. Replaced by type.
|
||||
//! @deprecated To be removed after %Cantera 3.0. Replaced by type.
|
||||
virtual int ID() const;
|
||||
|
||||
//! Returns a string describing the type of the function
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @since New in %Cantera 3.0.
|
||||
virtual string type() const {
|
||||
return "functor";
|
||||
}
|
||||
|
||||
//! Returns a string with the class name of the functor
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @since New in %Cantera 3.0.
|
||||
string typeName() const;
|
||||
|
||||
//! Calls method eval to evaluate the function
|
||||
@ -147,7 +147,7 @@ public:
|
||||
/*!
|
||||
* This will create a new derivative function and return a reference to the
|
||||
* function.
|
||||
* @deprecated To be changed after Cantera 3.0; for new behavior, see derivative3.
|
||||
* @deprecated To be changed after %Cantera 3.0; for new behavior, see derivative3.
|
||||
*/
|
||||
virtual Func1& derivative() const;
|
||||
|
||||
@ -155,7 +155,7 @@ public:
|
||||
/*!
|
||||
* This will create a new derivative function
|
||||
* @return shared pointer to new derivative function.
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
virtual shared_ptr<Func1> derivative3() const;
|
||||
|
||||
@ -177,7 +177,7 @@ public:
|
||||
doublereal c() const;
|
||||
|
||||
//! Function to set the stored constant
|
||||
//! @deprecated To be removed after Cantera 3.0. Only used by deprecated methods.
|
||||
//! @deprecated To be removed after %Cantera 3.0. Only used by deprecated methods.
|
||||
void setC(doublereal c);
|
||||
|
||||
//! accessor function for m_f1
|
||||
@ -185,17 +185,17 @@ public:
|
||||
Func1& func1() const;
|
||||
|
||||
//! Accessor function for m_f1_shared
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @since New in %Cantera 3.0.
|
||||
shared_ptr<Func1> func1_shared() const {
|
||||
return m_f1_shared;
|
||||
}
|
||||
|
||||
//! accessor function for m_f2
|
||||
//! @deprecated To be removed after Cantera 3.0. Only used by deprecated methods.
|
||||
//! @deprecated To be removed after %Cantera 3.0. Only used by deprecated methods.
|
||||
Func1& func2() const;
|
||||
|
||||
//! Accessor function for m_f2_shared
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @since New in %Cantera 3.0.
|
||||
shared_ptr<Func1> func2_shared() const {
|
||||
return m_f2_shared;
|
||||
}
|
||||
@ -203,16 +203,16 @@ public:
|
||||
//! Return the order of the function, if it makes sense
|
||||
virtual int order() const;
|
||||
|
||||
//! @deprecated To be removed after Cantera 3.0. Only used by deprecated methods.
|
||||
//! @deprecated To be removed after %Cantera 3.0. Only used by deprecated methods.
|
||||
Func1& func1_dup() const;
|
||||
|
||||
//! @deprecated To be removed after Cantera 3.0. Only used by deprecated methods.
|
||||
//! @deprecated To be removed after %Cantera 3.0. Only used by deprecated methods.
|
||||
Func1& func2_dup() const;
|
||||
|
||||
//! @deprecated To be removed after Cantera 3.0. Only used by deprecated methods.
|
||||
//! @deprecated To be removed after %Cantera 3.0. Only used by deprecated methods.
|
||||
Func1* parent() const;
|
||||
|
||||
//! @deprecated To be removed after Cantera 3.0. Only used by deprecated methods.
|
||||
//! @deprecated To be removed after %Cantera 3.0. Only used by deprecated methods.
|
||||
void setParent(Func1* p);
|
||||
|
||||
protected:
|
||||
@ -408,7 +408,7 @@ public:
|
||||
* The functor class with type \c "log" returns \f$ f(x) = \log(a x) \f$.
|
||||
* @param a Factor (default=1.0)
|
||||
* @ingroup func1simple
|
||||
* @since New in Cantera 3.0
|
||||
* @since New in %Cantera 3.0
|
||||
*/
|
||||
class Log1 : public Func1
|
||||
{
|
||||
@ -506,7 +506,7 @@ public:
|
||||
//! @param method Evaluation method. If \c "linear" (default), a linear
|
||||
//! interpolation between tabulated values is used; if \c "previous", the
|
||||
//! last tabulated value is held until a new tabulated time value is reached.
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
void setMethod(const string& method);
|
||||
|
||||
virtual std::string write(const std::string& arg) const;
|
||||
@ -1090,7 +1090,7 @@ public:
|
||||
* @param t0 offset
|
||||
* @param fwhm full width at half max
|
||||
* @ingroup func1advanced
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
class Gaussian1 : public Func1
|
||||
{
|
||||
@ -1146,7 +1146,7 @@ protected:
|
||||
* @param t0 offset
|
||||
* @param fwhm full width at half max
|
||||
* @ingroup func1advanced
|
||||
* @deprecated To be removed after Cantera 3.0; replaced by Gaussian1.
|
||||
* @deprecated To be removed after %Cantera 3.0; replaced by Gaussian1.
|
||||
*/
|
||||
class Gaussian : public Gaussian1
|
||||
{
|
||||
|
@ -19,7 +19,7 @@ namespace Cantera
|
||||
//! ```cpp
|
||||
//! shared_ptr<Func1> d1 = newFunc1("sin", {1.0});
|
||||
//! ```
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
class Func1Factory : public Factory<Func1, const vector<double>&>
|
||||
{
|
||||
public:
|
||||
@ -52,7 +52,7 @@ private:
|
||||
//! ```cpp
|
||||
//! shared_ptr<Func1> d1 = newFunc1("sum", f1, f2);
|
||||
//! ```
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
class Math1FactoryA
|
||||
: public Factory<Func1, const shared_ptr<Func1>, const shared_ptr<Func1>>
|
||||
{
|
||||
@ -86,7 +86,7 @@ private:
|
||||
//! ```cpp
|
||||
//! shared_ptr<Func1> d1 = newFunc1("plus-constant", f, 1.);
|
||||
//! ```
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
class Math1FactoryB : public Factory<Func1, const shared_ptr<Func1>, double>
|
||||
{
|
||||
public:
|
||||
@ -115,14 +115,14 @@ private:
|
||||
//! @param func1Type String identifying functor type.
|
||||
//! @param coeff Coefficient; definition depends on functor type.
|
||||
//! @ingroup func1simple
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
shared_ptr<Func1> newFunc1(const string& func1Type, double coeff=1.);
|
||||
|
||||
//! Create a new advanced functor object (see \ref func1advanced).
|
||||
//! @param func1Type String identifying functor type.
|
||||
//! @param params Parameter vector; definition depends on functor type.
|
||||
//! @ingroup func1advanced
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
shared_ptr<Func1> newFunc1(const string& func1Type, const vector<double>& params);
|
||||
|
||||
//! Create a new compound functor object (see \ref func1compound).
|
||||
@ -130,7 +130,7 @@ shared_ptr<Func1> newFunc1(const string& func1Type, const vector<double>& params
|
||||
//! @param f1 First Func1 object.
|
||||
//! @param f2 Second Func1 object.
|
||||
//! @ingroup func1compound
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
shared_ptr<Func1> newFunc1(const string& func1Type,
|
||||
const shared_ptr<Func1> f1, const shared_ptr<Func1> f2);
|
||||
|
||||
@ -139,7 +139,7 @@ shared_ptr<Func1> newFunc1(const string& func1Type,
|
||||
//! @param f Func1 object.
|
||||
//! @param coeff Coefficient; definition depends on functor type.
|
||||
//! @ingroup func1modified
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
shared_ptr<Func1> newFunc1(const string& func1Type,
|
||||
const shared_ptr<Func1> f, double coeff);
|
||||
|
||||
|
@ -32,7 +32,7 @@ const int c_LT_ZERO = -2;
|
||||
* \vec{F}(t,\vec{y}, \vec{y^\prime})
|
||||
* \f]
|
||||
* The DAE solver attempts to find a solution y(t) such that F = 0.
|
||||
* @deprecated Unused. To be removed after Cantera 3.0.
|
||||
* @deprecated Unused. To be removed after %Cantera 3.0.
|
||||
* @ingroup DAE_Group
|
||||
*/
|
||||
class ResidEval
|
||||
|
@ -46,18 +46,18 @@ enum ResidEval_Type_Enum {
|
||||
//! Wrappers for the function evaluators for Nonlinear solvers and Time steppers
|
||||
/*!
|
||||
* @attention This class currently does not have any test cases or examples. Its
|
||||
* implementation may be incomplete, and future changes to Cantera may
|
||||
* implementation may be incomplete, and future changes to %Cantera may
|
||||
* unexpectedly cause this class to stop working. If you use this class,
|
||||
* please consider contributing examples or test cases. In the absence of
|
||||
* new tests or examples, this class may be deprecated and removed in a
|
||||
* future version of Cantera. See
|
||||
* future version of %Cantera. See
|
||||
* https://github.com/Cantera/cantera/issues/267 for additional information.
|
||||
*
|
||||
* A class for full (non-sparse dense matrices with Fortran-compatible data
|
||||
* storage. The class adds support for identifying what types of calls are made
|
||||
* to the residual evaluator by adding the ResidEval_Type_Enum class.
|
||||
*
|
||||
* @deprecated Unused. To be removed after Cantera 3.0.
|
||||
* @deprecated Unused. To be removed after %Cantera 3.0.
|
||||
*/
|
||||
class ResidJacEval : public ResidEval
|
||||
{
|
||||
|
@ -53,12 +53,12 @@ public:
|
||||
Domain1D& operator=(const Domain1D&) = delete;
|
||||
|
||||
//! Domain type flag.
|
||||
//! @deprecated To be changed after Cantera 3.0; for new behavior, see type.
|
||||
//! @deprecated To be changed after %Cantera 3.0; for new behavior, see type.
|
||||
int domainType();
|
||||
|
||||
//! String indicating the domain implemented.
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @todo Transition back to domainType after Cantera 3.0
|
||||
//! @since New in %Cantera 3.0.
|
||||
//! @todo Transition back to domainType after %Cantera 3.0
|
||||
virtual string type() const {
|
||||
return "domain";
|
||||
}
|
||||
@ -74,19 +74,19 @@ public:
|
||||
}
|
||||
|
||||
//! Set the solution manager.
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @since New in %Cantera 3.0.
|
||||
void setSolution(shared_ptr<Solution> sol) {
|
||||
m_solution = sol;
|
||||
}
|
||||
|
||||
//! Set the kinetics manager.
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @since New in %Cantera 3.0.
|
||||
virtual void setKinetics(shared_ptr<Kinetics> kin) {
|
||||
throw NotImplementedError("Domain1D::setKinetics");
|
||||
}
|
||||
|
||||
//! Set transport model to existing instance
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @since New in %Cantera 3.0.
|
||||
virtual void setTransport(shared_ptr<Transport> trans) {
|
||||
throw NotImplementedError("Domain1D::setTransport");
|
||||
}
|
||||
@ -350,7 +350,7 @@ public:
|
||||
* @todo Despite the method's name, data are copied; the intent is to access data
|
||||
* directly in future revisions, where a non-const version will be implemented.
|
||||
*
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
virtual shared_ptr<SolutionArray> asArray(const double* soln) const {
|
||||
throw NotImplementedError("Domain1D::asArray", "Needs to be overloaded.");
|
||||
@ -362,7 +362,7 @@ public:
|
||||
* provide direct access to memory.
|
||||
* @param normalize If true, normalize concentrations (default=false)
|
||||
*
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
shared_ptr<SolutionArray> toArray(bool normalize=false) const;
|
||||
|
||||
@ -373,7 +373,7 @@ public:
|
||||
* @param[in] loglevel 0 to suppress all output; 1 to show warnings; 2 for
|
||||
* verbose output
|
||||
*
|
||||
* @deprecated To be removed after Cantera 3.0; restore from SolutionArray instead.
|
||||
* @deprecated To be removed after %Cantera 3.0; restore from SolutionArray instead.
|
||||
*/
|
||||
void restore(const AnyMap& state, double* soln, int loglevel);
|
||||
|
||||
@ -382,7 +382,7 @@ public:
|
||||
* @param[in] arr SolutionArray defining the state of this domain
|
||||
* @param[out] soln Value of the solution vector, local to this domain
|
||||
*
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
virtual void fromArray(SolutionArray& arr, double* soln) {
|
||||
throw NotImplementedError("Domain1D::fromArray", "Needs to be overloaded.");
|
||||
@ -392,12 +392,12 @@ public:
|
||||
/*!
|
||||
* This method serves as an external interface for high-level API's.
|
||||
* @param arr SolutionArray defining the state of this domain
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
void fromArray(const shared_ptr<SolutionArray>& arr);
|
||||
|
||||
//! Return thermo/kinetics/transport manager used in the domain
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @since New in %Cantera 3.0.
|
||||
shared_ptr<Solution> solution() const {
|
||||
return m_solution;
|
||||
}
|
||||
@ -585,7 +585,7 @@ protected:
|
||||
vector_fp m_z;
|
||||
OneDim* m_container = nullptr;
|
||||
size_t m_index;
|
||||
int m_type = 0; //!< @deprecated To be removed after Cantera 3.0
|
||||
int m_type = 0; //!< @deprecated To be removed after %Cantera 3.0
|
||||
|
||||
//! Starting location within the solution vector for unknowns that
|
||||
//! correspond to this domain
|
||||
|
@ -31,7 +31,7 @@ public:
|
||||
//! Construct a OneDim container for the domains in the list *domains*.
|
||||
OneDim(vector<shared_ptr<Domain1D>>& domains);
|
||||
|
||||
//! @deprecated To be removed after Cantera 3.0;
|
||||
//! @deprecated To be removed after %Cantera 3.0;
|
||||
//! superseded by OneDim() using vector<shared_ptr<Domain1D>>
|
||||
OneDim(std::vector<Domain1D*> domains);
|
||||
virtual ~OneDim();
|
||||
@ -41,7 +41,7 @@ public:
|
||||
//! Add a domain. Domains are added left-to-right.
|
||||
void addDomain(shared_ptr<Domain1D> d);
|
||||
|
||||
//! @deprecated To be removed after Cantera 3.0;
|
||||
//! @deprecated To be removed after %Cantera 3.0;
|
||||
//! superseded by addDomain() using shared_ptr<Domain1D>
|
||||
void addDomain(Domain1D* d);
|
||||
|
||||
@ -234,7 +234,7 @@ public:
|
||||
*/
|
||||
void writeStats(int printTime = 1);
|
||||
|
||||
//! @deprecated To be removed after Cantera 3.0; unused.
|
||||
//! @deprecated To be removed after %Cantera 3.0; unused.
|
||||
AnyMap serialize(const double* soln) const;
|
||||
|
||||
// options
|
||||
@ -355,9 +355,9 @@ protected:
|
||||
vector<shared_ptr<Domain1D>> m_sharedConnect;
|
||||
vector<shared_ptr<Domain1D>> m_sharedBulk;
|
||||
|
||||
vector<Domain1D*> m_dom; //!< @todo remove raw pointers after Cantera 3.0
|
||||
vector<Domain1D*> m_connect; //!< @todo remove raw pointers after Cantera 3.0
|
||||
vector<Domain1D*> m_bulk; //!< @todo remove raw pointers after Cantera 3.0
|
||||
vector<Domain1D*> m_dom; //!< @todo remove raw pointers after %Cantera 3.0
|
||||
vector<Domain1D*> m_connect; //!< @todo remove raw pointers after %Cantera 3.0
|
||||
vector<Domain1D*> m_bulk; //!< @todo remove raw pointers after %Cantera 3.0
|
||||
|
||||
bool m_init = false;
|
||||
std::vector<size_t> m_nvars;
|
||||
|
@ -37,7 +37,7 @@ public:
|
||||
*/
|
||||
Sim1D(vector<shared_ptr<Domain1D>>& domains);
|
||||
|
||||
//! @deprecated To be removed after Cantera 3.0;
|
||||
//! @deprecated To be removed after %Cantera 3.0;
|
||||
//! superseded by Sim1D() using shared_ptr
|
||||
Sim1D(std::vector<Domain1D*>& domains);
|
||||
|
||||
@ -120,13 +120,13 @@ public:
|
||||
/**
|
||||
* Output information on current solution for all domains to stream.
|
||||
* @param s Output stream
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
void show(std::ostream& s);
|
||||
|
||||
/**
|
||||
* Show logging information on current solution for all domains.
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
void show();
|
||||
|
||||
@ -136,7 +136,7 @@ public:
|
||||
* @param id Identifier of solution within the container file
|
||||
* @param desc Description of the solution
|
||||
* @param loglevel Level of diagnostic output
|
||||
* @deprecated To be removed after Cantera 3.0; loglevel is deprecated.
|
||||
* @deprecated To be removed after %Cantera 3.0; loglevel is deprecated.
|
||||
*/
|
||||
void save(const std::string& fname, const std::string& id,
|
||||
const std::string& desc, int loglevel);
|
||||
@ -155,7 +155,7 @@ public:
|
||||
* container files using the restore() method, while individual domains can be
|
||||
* loaded using SolutionArray::restore() for further analysis. While CSV do not
|
||||
* contain complete information, they can still be used for setting initial states
|
||||
* of individual simulation objects for some Cantera API's.
|
||||
* of individual simulation objects for some %Cantera API's.
|
||||
*
|
||||
* @param fname Name of output file (CSV, YAML or HDF)
|
||||
* @param name Identifier of storage location within the container file; this
|
||||
@ -178,7 +178,7 @@ public:
|
||||
* @param id Identifier of solution within the container file
|
||||
* @param desc Description of the solution
|
||||
* @param loglevel Level of diagnostic output
|
||||
* @deprecated To be removed after Cantera 3.0; loglevel is deprecated.
|
||||
* @deprecated To be removed after %Cantera 3.0; loglevel is deprecated.
|
||||
*/
|
||||
void saveResidual(const std::string& fname, const std::string& id,
|
||||
const std::string& desc, int loglevel);
|
||||
@ -199,7 +199,7 @@ public:
|
||||
* @param fname Name of container file
|
||||
* @param id Identifier of solution within the container file
|
||||
* @param loglevel Level of diagnostic output
|
||||
* @deprecated To be removed after Cantera 3.0; loglevel is deprecated.
|
||||
* @deprecated To be removed after %Cantera 3.0; loglevel is deprecated.
|
||||
* @return AnyMap containing header information
|
||||
*/
|
||||
AnyMap restore(const std::string& fname, const std::string& id, int loglevel);
|
||||
@ -220,7 +220,7 @@ public:
|
||||
|
||||
//! @}
|
||||
|
||||
// @deprecated To be removed after Cantera 3.0 (unused)
|
||||
//! @deprecated To be removed after %Cantera 3.0 (unused)
|
||||
const doublereal* solution() {
|
||||
warn_deprecated("Sim1D::solution",
|
||||
"This method is unused and will be removed after Cantera 3.0.");
|
||||
@ -302,14 +302,14 @@ public:
|
||||
|
||||
void getInitialSoln();
|
||||
|
||||
// @deprecated To be removed after Cantera 3.0 (unused)
|
||||
//! @deprecated To be removed after %Cantera 3.0 (unused)
|
||||
void setSolution(const doublereal* soln) {
|
||||
warn_deprecated("Sim1D::setSolution",
|
||||
"This method is unused and will be removed after Cantera 3.0.");
|
||||
std::copy(soln, soln + m_state->size(), m_state->data());
|
||||
}
|
||||
|
||||
// @deprecated To be removed after Cantera 3.0 (unused)
|
||||
//! @deprecated To be removed after %Cantera 3.0 (unused)
|
||||
const doublereal* solution() const {
|
||||
warn_deprecated("Sim1D::solution",
|
||||
"This method is unused and will be removed after Cantera 3.0.");
|
||||
|
@ -87,7 +87,7 @@ public:
|
||||
/**
|
||||
* Set the thermo manager.
|
||||
*
|
||||
* @deprecated To be removed after Cantera 3.0 (unused)
|
||||
* @deprecated To be removed after %Cantera 3.0 (unused)
|
||||
*/
|
||||
void setThermo(ThermoPhase& th);
|
||||
|
||||
@ -106,11 +106,11 @@ public:
|
||||
void setTransport(Transport& trans);
|
||||
|
||||
//! Set the transport model
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @since New in %Cantera 3.0.
|
||||
void setTransportModel(const std::string& trans);
|
||||
|
||||
//! Retrieve transport model
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @since New in %Cantera 3.0.
|
||||
std::string transportModel() const;
|
||||
|
||||
//! Enable thermal diffusion, also known as Soret diffusion.
|
||||
@ -212,7 +212,7 @@ public:
|
||||
void solveEnergyEqn(size_t j=npos);
|
||||
|
||||
//! Get the solving stage (used by IonFlow specialization)
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
virtual size_t getSolvingStage() const;
|
||||
|
||||
//! Solving stage mode for handling ionized species (used by IonFlow specialization)
|
||||
|
@ -18,7 +18,7 @@ namespace Cantera
|
||||
//! @name Types of Element Constraint Equations
|
||||
//!
|
||||
//! There may be several different types of element constraints handled by the
|
||||
//! equilibrium program and by Cantera in other contexts. These defines are used
|
||||
//! equilibrium program and by %Cantera in other contexts. These defines are used
|
||||
//! to assign each constraint to one category.
|
||||
//! @{
|
||||
|
||||
@ -104,7 +104,7 @@ const std::map<std::string, double>& elementWeights();
|
||||
|
||||
//! Get the atomic weight of an element.
|
||||
/*!
|
||||
* Get the atomic weight of an element defined in Cantera by its symbol
|
||||
* Get the atomic weight of an element defined in %Cantera by its symbol
|
||||
* or by its name. This includes the named isotopes defined in Cantera.
|
||||
*
|
||||
* @param ename String, name or symbol of the element
|
||||
@ -116,7 +116,7 @@ double getElementWeight(const std::string& ename);
|
||||
|
||||
//! Get the atomic weight of an element.
|
||||
/*!
|
||||
* Get the atomic weight of an element defined in Cantera by its atomic
|
||||
* Get the atomic weight of an element defined in %Cantera by its atomic
|
||||
* number. The named isotopes cannot be accessed from this function,
|
||||
* since the atomic number of the isotopes is the same as the regular
|
||||
* element from which they are derived.
|
||||
@ -132,7 +132,7 @@ double getElementWeight(int atomicNumber);
|
||||
|
||||
//! Get the symbol for an element
|
||||
/*!
|
||||
* Get the symbol for an element defined in Cantera by its name. This
|
||||
* Get the symbol for an element defined in %Cantera by its name. This
|
||||
* includes the named isotopes defined in Cantera.
|
||||
*
|
||||
* @param ename String, name of the element
|
||||
@ -143,7 +143,7 @@ std::string getElementSymbol(const std::string& ename);
|
||||
|
||||
//! Get the symbol for an element
|
||||
/*!
|
||||
* Get the symbol for an element defined in Cantera by its atomic
|
||||
* Get the symbol for an element defined in %Cantera by its atomic
|
||||
* number. The named isotopes cannot be accessed from this function,
|
||||
* since the atomic number of the isotopes is the same as the regular
|
||||
* element from which they are derived.
|
||||
@ -157,7 +157,7 @@ std::string getElementSymbol(int atomicNumber);
|
||||
|
||||
//! Get the name of an element
|
||||
/*!
|
||||
* Get the name of an element defined in Cantera by its symbol. This
|
||||
* Get the name of an element defined in %Cantera by its symbol. This
|
||||
* includes the named isotopes defined in Cantera.
|
||||
*
|
||||
* @param ename String, symbol for the element
|
||||
@ -168,7 +168,7 @@ std::string getElementName(const std::string& ename);
|
||||
|
||||
//! Get the name of an element
|
||||
/*!
|
||||
* Get the name of an element defined in Cantera by its atomic
|
||||
* Get the name of an element defined in %Cantera by its atomic
|
||||
* number. The named isotopes cannot be accessed from this function,
|
||||
* since the atomic number of the isotopes is the same as the regular
|
||||
* element from which they are derived.
|
||||
@ -182,7 +182,7 @@ std::string getElementName(int atomicNumber);
|
||||
|
||||
//! Get the atomic number for an element
|
||||
/*!
|
||||
* Get the atomic number of an element defined in Cantera by its symbol
|
||||
* Get the atomic number of an element defined in %Cantera by its symbol
|
||||
* or name. This includes the named isotopes included in Cantera.
|
||||
*
|
||||
* @param ename String, name or symbol of the element
|
||||
@ -193,12 +193,12 @@ int getAtomicNumber(const std::string& ename);
|
||||
|
||||
//! Get the number of named elements defined in Cantera.
|
||||
//! This array excludes named isotopes
|
||||
//! @since Type is `size_t` in Cantera 3.0
|
||||
//! @since Type is `size_t` in %Cantera 3.0
|
||||
size_t numElementsDefined();
|
||||
|
||||
//! Get the number of named isotopes defined in Cantera.
|
||||
//! This array excludes the named elements
|
||||
//! @since Type is `size_t` in Cantera 3.0
|
||||
//! @since Type is `size_t` in %Cantera 3.0
|
||||
size_t numIsotopesDefined();
|
||||
|
||||
} // namespace
|
||||
|
@ -217,7 +217,7 @@ public:
|
||||
* Length = m_kk. units are m^3/kmol.
|
||||
*/
|
||||
virtual void getPartialMolarVolumes(doublereal* vbar) const;
|
||||
//! @deprecated Unused. To be removed after Cantera 3.0.
|
||||
//! @deprecated Unused. To be removed after %Cantera 3.0.
|
||||
virtual const vector_fp& getPartialMolarVolumesVector() const;
|
||||
//! @}
|
||||
|
||||
@ -229,7 +229,7 @@ protected:
|
||||
//! utility routine to check mole fraction sum
|
||||
/*!
|
||||
* @param x vector of mole fractions.
|
||||
* @deprecated Unused. To be removed after Cantera 3.0.
|
||||
* @deprecated Unused. To be removed after %Cantera 3.0.
|
||||
*/
|
||||
double checkMFSum(const doublereal* const x) const;
|
||||
|
||||
|
@ -365,7 +365,7 @@ public:
|
||||
*
|
||||
* @param rho Density (kg/m^3)
|
||||
* @param p Pressure (Pa)
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
virtual void setState_DP(doublereal rho, doublereal p)
|
||||
{
|
||||
|
@ -3,7 +3,7 @@
|
||||
* with incompressible thermodynamics (see \ref thermoprops and
|
||||
* \link Cantera::IdealSolidSolnPhase IdealSolidSolnPhase\endlink).
|
||||
*
|
||||
* This class inherits from the Cantera class ThermoPhase and implements an
|
||||
* This class inherits from the %Cantera class ThermoPhase and implements an
|
||||
* ideal solid solution model with incompressible thermodynamics.
|
||||
*/
|
||||
|
||||
@ -306,7 +306,7 @@ public:
|
||||
*
|
||||
* @param mu Output vector of dimensionless chemical potentials.
|
||||
* Length = m_kk.
|
||||
* @deprecated To be removed after Cantera 3.0. Use getChemPotentials() instead.
|
||||
* @deprecated To be removed after %Cantera 3.0. Use getChemPotentials() instead.
|
||||
*/
|
||||
virtual void getChemPotentials_RT(doublereal* mu) const;
|
||||
|
||||
|
@ -40,11 +40,11 @@ enum IonSolnType_enumType {
|
||||
* this area employ symmetrical formulations.
|
||||
*
|
||||
* @attention This class currently does not have any test cases or examples. Its
|
||||
* implementation may be incomplete, and future changes to Cantera may
|
||||
* implementation may be incomplete, and future changes to %Cantera may
|
||||
* unexpectedly cause this class to stop working. If you use this class,
|
||||
* please consider contributing examples or test cases. In the absence of
|
||||
* new tests or examples, this class may be deprecated and removed in a
|
||||
* future version of Cantera. See
|
||||
* future version of %Cantera. See
|
||||
* https://github.com/Cantera/cantera/issues/267 for additional information.
|
||||
*
|
||||
* This class is used for molten salts.
|
||||
@ -64,7 +64,7 @@ enum IonSolnType_enumType {
|
||||
* This object can translate between any of the four mole fraction
|
||||
* representations.
|
||||
*
|
||||
* @deprecated To be removed after Cantera 3.0.
|
||||
* @deprecated To be removed after %Cantera 3.0.
|
||||
*/
|
||||
class IonsFromNeutralVPSSTP : public GibbsExcessVPSSTP
|
||||
{
|
||||
|
@ -2,7 +2,7 @@
|
||||
* @file MaskellSolidSolnPhase.h Header file for a solid solution model
|
||||
* following Maskell, Shaw, and Tye. Electrochimica Acta 1982
|
||||
*
|
||||
* This class inherits from the Cantera class ThermoPhase and implements a
|
||||
* This class inherits from the %Cantera class ThermoPhase and implements a
|
||||
* non-ideal solid solution model with incompressible thermodynamics.
|
||||
*/
|
||||
|
||||
@ -24,7 +24,7 @@ namespace Cantera
|
||||
*
|
||||
* @ingroup thermoprops
|
||||
*
|
||||
* @deprecated To be removed after Cantera 3.0. This class has numerous thermodynamic
|
||||
* @deprecated To be removed after %Cantera 3.0. This class has numerous thermodynamic
|
||||
* inconsistencies. See https://github.com/Cantera/cantera/issues/1321.
|
||||
*/
|
||||
class MaskellSolidSolnPhase : public VPStandardStateTP
|
||||
@ -83,7 +83,7 @@ public:
|
||||
|
||||
virtual void getActivityCoefficients(doublereal* ac) const;
|
||||
virtual void getChemPotentials(doublereal* mu) const;
|
||||
//! @deprecated To be removed after Cantera 3.0. Use getChemPotentials() instead.
|
||||
//! @deprecated To be removed after %Cantera 3.0. Use getChemPotentials() instead.
|
||||
virtual void getChemPotentials_RT(doublereal* mu) const;
|
||||
|
||||
//! @}
|
||||
|
@ -44,11 +44,11 @@ namespace Cantera
|
||||
* Kwong class.
|
||||
*
|
||||
* @attention This class currently does not have any test cases or examples. Its
|
||||
* implementation may be incomplete, and future changes to Cantera may
|
||||
* implementation may be incomplete, and future changes to %Cantera may
|
||||
* unexpectedly cause this class to stop working. If you use this class,
|
||||
* please consider contributing examples or test cases. In the absence of
|
||||
* new tests or examples, this class may be deprecated and removed in a
|
||||
* future version of Cantera. See
|
||||
* future version of %Cantera. See
|
||||
* https://github.com/Cantera/cantera/issues/267 for additional information.
|
||||
*
|
||||
* Several concepts are introduced. The first concept is there are temporary
|
||||
@ -136,7 +136,7 @@ public:
|
||||
*
|
||||
* @param mu Output vector of non-dimensional species chemical potentials
|
||||
* Length: m_kk.
|
||||
* @deprecated To be removed after Cantera 3.0. Use getChemPotentials() instead.
|
||||
* @deprecated To be removed after %Cantera 3.0. Use getChemPotentials() instead.
|
||||
*/
|
||||
virtual void getChemPotentials_RT(doublereal* mu) const;
|
||||
|
||||
|
@ -127,7 +127,7 @@ public:
|
||||
*
|
||||
* @param k Species Index
|
||||
* @deprecated The species index parameter is deprecated and will be removed after
|
||||
* Cantera 3.0. All species in a phase must have the same reference pressure.
|
||||
* %Cantera 3.0. All species in a phase must have the same reference pressure.
|
||||
*/
|
||||
virtual doublereal refPressure(size_t k=npos) const;
|
||||
|
||||
|
@ -67,7 +67,7 @@ namespace Cantera
|
||||
* handle the calculation of the reference state. This object adds the
|
||||
* pressure dependencies to the thermo functions.
|
||||
*
|
||||
* - PDSS_ConstVol (deprecated in Cantera 3.0)
|
||||
* - PDSS_ConstVol (deprecated in %Cantera 3.0)
|
||||
* - standardState model = "ConstVol" or "constant_incompressible"
|
||||
* - This model assumes that the species in the phase obeys the constant
|
||||
* partial molar volume pressure dependence. The manager uses a
|
||||
@ -247,22 +247,22 @@ public:
|
||||
|
||||
//! Get the difference in the standard state enthalpy
|
||||
//! between the current pressure and the reference pressure, p0.
|
||||
//! @deprecated To be removed after Cantera 3.0
|
||||
//! @deprecated To be removed after %Cantera 3.0
|
||||
virtual doublereal enthalpyDelp_mole() const;
|
||||
|
||||
//! Get the difference in the standard state entropy between
|
||||
//! the current pressure and the reference pressure, p0
|
||||
//! @deprecated To be removed after Cantera 3.0
|
||||
//! @deprecated To be removed after %Cantera 3.0
|
||||
virtual doublereal entropyDelp_mole() const;
|
||||
|
||||
//! Get the difference in the standard state Gibbs free energy
|
||||
//! between the current pressure and the reference pressure, p0.
|
||||
//! @deprecated To be removed after Cantera 3.0
|
||||
//! @deprecated To be removed after %Cantera 3.0
|
||||
virtual doublereal gibbsDelp_mole() const;
|
||||
|
||||
//! Get the difference in standard state heat capacity
|
||||
//! between the current pressure and the reference pressure, p0.
|
||||
//! @deprecated To be removed after Cantera 3.0
|
||||
//! @deprecated To be removed after %Cantera 3.0
|
||||
virtual doublereal cpDelp_mole() const;
|
||||
|
||||
//! @}
|
||||
@ -364,7 +364,7 @@ public:
|
||||
/*!
|
||||
* @param temp Temperature (Kelvin)
|
||||
* @param rho Density (kg m-3)
|
||||
* @deprecated To be removed after Cantera 3.0
|
||||
* @deprecated To be removed after %Cantera 3.0
|
||||
*/
|
||||
virtual void setState_TR(doublereal temp, doublereal rho);
|
||||
|
||||
@ -436,7 +436,7 @@ public:
|
||||
* @param minTemp output - Minimum temperature
|
||||
* @param maxTemp output - Maximum temperature
|
||||
* @param refPressure output - reference pressure (Pa).
|
||||
* @deprecated To be removed after Cantera 3.0. Use getParameters() instead.
|
||||
* @deprecated To be removed after %Cantera 3.0. Use getParameters() instead.
|
||||
*/
|
||||
virtual void reportParams(size_t& kindex, int& type, doublereal* const c,
|
||||
doublereal& minTemp, doublereal& maxTemp,
|
||||
|
@ -45,7 +45,7 @@ public:
|
||||
* Note this is just an extra routine to check the arithmetic
|
||||
*
|
||||
* @returns the species standard state enthalpy in J kmol-1
|
||||
* @deprecated To be removed after Cantera 3.0
|
||||
* @deprecated To be removed after %Cantera 3.0
|
||||
*/
|
||||
doublereal enthalpy_mole2() const;
|
||||
|
||||
@ -161,7 +161,7 @@ private:
|
||||
//! between the reference state at Tr, Pr and T,P
|
||||
/*!
|
||||
* This is an extra routine that was added to check the arithmetic
|
||||
* @deprecated To be removed after Cantera 3.0
|
||||
* @deprecated To be removed after %Cantera 3.0
|
||||
*/
|
||||
doublereal deltaH() const;
|
||||
|
||||
|
@ -20,7 +20,7 @@ namespace Cantera
|
||||
* This class is for a single Ideal Gas species.
|
||||
*
|
||||
* @ingroup pdssthermo
|
||||
* @deprecated To be removed after Cantera 3.0.
|
||||
* @deprecated To be removed after %Cantera 3.0.
|
||||
*/
|
||||
class PDSS_IdealGas : public PDSS_Nondimensional
|
||||
{
|
||||
|
@ -21,16 +21,16 @@ class ThermoPhase;
|
||||
//! Derived class for pressure dependent standard states of an ideal gas species
|
||||
/*!
|
||||
* @attention This class currently does not have any test cases or examples. Its
|
||||
* implementation may be incomplete, and future changes to Cantera may
|
||||
* implementation may be incomplete, and future changes to %Cantera may
|
||||
* unexpectedly cause this class to stop working. If you use this class,
|
||||
* please consider contributing examples or test cases. In the absence of
|
||||
* new tests or examples, this class may be deprecated and removed in a
|
||||
* future version of Cantera. See
|
||||
* future version of %Cantera. See
|
||||
* https://github.com/Cantera/cantera/issues/267 for additional information.
|
||||
*
|
||||
* This class is for a single Ideal Gas species.
|
||||
*
|
||||
* @deprecated To be removed after Cantera 3.0
|
||||
* @deprecated To be removed after %Cantera 3.0
|
||||
*
|
||||
* @ingroup pdssthermo
|
||||
*/
|
||||
|
@ -20,11 +20,11 @@ namespace Cantera
|
||||
//! volume model of some sort.
|
||||
/*!
|
||||
* @attention This class currently does not have any test cases or examples. Its
|
||||
* implementation may be incomplete, and future changes to Cantera may
|
||||
* implementation may be incomplete, and future changes to %Cantera may
|
||||
* unexpectedly cause this class to stop working. If you use this class,
|
||||
* please consider contributing examples or test cases. In the absence of
|
||||
* new tests or examples, this class may be deprecated and removed in a
|
||||
* future version of Cantera. See
|
||||
* future version of %Cantera. See
|
||||
* https://github.com/Cantera/cantera/issues/267 for additional information.
|
||||
*
|
||||
* Class PDSS_SSVol is an implementation class that compute the properties of a
|
||||
|
@ -122,14 +122,14 @@ public:
|
||||
* course of a calculation. For example, if duplicates of a phase object
|
||||
* are instantiated and used in multiple places (such as a ReactorNet), they
|
||||
* will have the same constitutive input, that is, the names of the phases will
|
||||
* be the same. Note that this is not a problem for Cantera internally;
|
||||
* be the same. Note that this is not a problem for %Cantera internally;
|
||||
* however, a user may want to rename phase objects in order to clarify.
|
||||
*/
|
||||
//!@{
|
||||
|
||||
//! Return the name of the phase.
|
||||
/*!
|
||||
* Names are unique within a Cantera problem.
|
||||
* Names are unique within a %Cantera problem.
|
||||
*/
|
||||
std::string name() const;
|
||||
|
||||
@ -140,7 +140,7 @@ public:
|
||||
//! String indicating the thermodynamic model implemented. Usually
|
||||
//! corresponds to the name of the derived class, less any suffixes such as
|
||||
//! "Phase", TP", "VPSS", etc.
|
||||
//! @since Starting in Cantera 3.0, the name returned by this method corresponds
|
||||
//! @since Starting in %Cantera 3.0, the name returned by this method corresponds
|
||||
//! to the canonical name used in the YAML input format.
|
||||
virtual std::string type() const {
|
||||
return "Phase";
|
||||
@ -226,7 +226,7 @@ public:
|
||||
//! @param k species index
|
||||
//! @param atomArray vector containing the atomic number in the species.
|
||||
//! Length: m_mm
|
||||
//! @deprecated Unused. To be removed after Cantera 3.0
|
||||
//! @deprecated Unused. To be removed after %Cantera 3.0
|
||||
void getAtoms(size_t k, double* atomArray) const;
|
||||
|
||||
//! Returns the index of a species named 'name' within the Phase object.
|
||||
@ -243,10 +243,10 @@ public:
|
||||
std::string speciesName(size_t k) const;
|
||||
|
||||
//! Returns the expanded species name of a species, including the phase name
|
||||
//! This is guaranteed to be unique within a Cantera problem.
|
||||
//! This is guaranteed to be unique within a %Cantera problem.
|
||||
//! @param k Species index within the phase
|
||||
//! @return The "phaseName:speciesName" string
|
||||
//! @deprecated Unused. To be removed after Cantera 3.0
|
||||
//! @deprecated Unused. To be removed after %Cantera 3.0
|
||||
std::string speciesSPName(int k) const;
|
||||
|
||||
//! Return a const reference to the vector of species names
|
||||
@ -294,7 +294,7 @@ public:
|
||||
//! Return string acronym representing the native state of a Phase.
|
||||
//! Examples: "TP", "TDY", "TPY".
|
||||
//! @see nativeState
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
string nativeMode() const;
|
||||
|
||||
//! Return a vector containing full states defining a phase.
|
||||
@ -379,7 +379,7 @@ public:
|
||||
//! @param t Temperature in kelvin
|
||||
//! @param dens Density (kg/m^3)
|
||||
//! @param x vector of species mole fractions, length m_kk
|
||||
//! @deprecated To be removed after Cantera 3.0; replaceable by calls to
|
||||
//! @deprecated To be removed after %Cantera 3.0; replaceable by calls to
|
||||
//! setMoleFractions() and setState_TD().
|
||||
void setState_TRX(doublereal t, doublereal dens, const doublereal* x);
|
||||
|
||||
@ -389,7 +389,7 @@ public:
|
||||
//! @param x Composition Map containing the mole fractions.
|
||||
//! Species not included in the map are assumed to have
|
||||
//! a zero mole fraction.
|
||||
//! @deprecated To be removed after Cantera 3.0; replaceable by calls to
|
||||
//! @deprecated To be removed after %Cantera 3.0; replaceable by calls to
|
||||
//! setMoleFractionsByName() and setState_TD().
|
||||
void setState_TRX(doublereal t, doublereal dens, const compositionMap& x);
|
||||
|
||||
@ -397,7 +397,7 @@ public:
|
||||
//! @param t Temperature in kelvin
|
||||
//! @param dens Density (kg/m^3)
|
||||
//! @param y vector of species mass fractions, length m_kk
|
||||
//! @deprecated To be removed after Cantera 3.0; replaceable by calls to
|
||||
//! @deprecated To be removed after %Cantera 3.0; replaceable by calls to
|
||||
//! setMassFractions() and setState_TD().
|
||||
void setState_TRY(doublereal t, doublereal dens, const doublereal* y);
|
||||
|
||||
@ -407,7 +407,7 @@ public:
|
||||
//! @param y Composition Map containing the mass fractions.
|
||||
//! Species not included in the map are assumed to have
|
||||
//! a zero mass fraction.
|
||||
//! @deprecated To be removed after Cantera 3.0; replaceable by calls to
|
||||
//! @deprecated To be removed after %Cantera 3.0; replaceable by calls to
|
||||
//! setMassFractionsByName() and setState_TD().
|
||||
void setState_TRY(doublereal t, doublereal dens, const compositionMap& y);
|
||||
|
||||
@ -416,43 +416,43 @@ public:
|
||||
//! @param t Temperature in kelvin
|
||||
//! @param n molar density (kmol/m^3)
|
||||
//! @param x vector of species mole fractions, length m_kk
|
||||
//! @deprecated Unused. To be removed after Cantera 3.0
|
||||
//! @deprecated Unused. To be removed after %Cantera 3.0
|
||||
void setState_TNX(doublereal t, doublereal n, const doublereal* x);
|
||||
|
||||
//! Set the internally stored temperature (K) and density (kg/m^3)
|
||||
//! @param t Temperature in kelvin
|
||||
//! @param rho Density (kg/m^3)
|
||||
//! @deprecated To be removed after Cantera 3.0; renamed to setState_TD()
|
||||
//! @deprecated To be removed after %Cantera 3.0; renamed to setState_TD()
|
||||
void setState_TR(doublereal t, doublereal rho);
|
||||
|
||||
//! Set the internally stored temperature (K) and density (kg/m^3)
|
||||
//! @param t Temperature in kelvin
|
||||
//! @param rho Density (kg/m^3)
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @since New in %Cantera 3.0.
|
||||
void setState_TD(double t, double rho);
|
||||
|
||||
//! Set the internally stored temperature (K) and mole fractions.
|
||||
//! @param t Temperature in kelvin
|
||||
//! @param x vector of species mole fractions, length m_kk
|
||||
//! @deprecated Unused. To be removed after Cantera 3.0
|
||||
//! @deprecated Unused. To be removed after %Cantera 3.0
|
||||
void setState_TX(doublereal t, doublereal* x);
|
||||
|
||||
//! Set the internally stored temperature (K) and mass fractions.
|
||||
//! @param t Temperature in kelvin
|
||||
//! @param y vector of species mass fractions, length m_kk
|
||||
//! @deprecated Unused. To be removed after Cantera 3.0
|
||||
//! @deprecated Unused. To be removed after %Cantera 3.0
|
||||
void setState_TY(doublereal t, doublereal* y);
|
||||
|
||||
//! Set the density (kg/m^3) and mole fractions.
|
||||
//! @param rho Density (kg/m^3)
|
||||
//! @param x vector of species mole fractions, length m_kk
|
||||
//! @deprecated Unused. To be removed after Cantera 3.0
|
||||
//! @deprecated Unused. To be removed after %Cantera 3.0
|
||||
void setState_RX(doublereal rho, doublereal* x);
|
||||
|
||||
//! Set the density (kg/m^3) and mass fractions.
|
||||
//! @param rho Density (kg/m^3)
|
||||
//! @param y vector of species mass fractions, length m_kk
|
||||
//! @deprecated Unused. To be removed after Cantera 3.0
|
||||
//! @deprecated Unused. To be removed after %Cantera 3.0
|
||||
void setState_RY(doublereal rho, doublereal* y);
|
||||
|
||||
//! @} end group set thermo state
|
||||
@ -464,7 +464,7 @@ public:
|
||||
|
||||
//! Copy the vector of molecular weights into vector weights.
|
||||
//! @param weights Output vector of molecular weights (kg/kmol)
|
||||
//! @deprecated Unused. To be removed after Cantera 3.0
|
||||
//! @deprecated Unused. To be removed after %Cantera 3.0
|
||||
void getMolecularWeights(vector_fp& weights) const;
|
||||
|
||||
//! Copy the vector of molecular weights into array weights.
|
||||
@ -639,7 +639,7 @@ public:
|
||||
//! Returns a const pointer to the start of the moleFraction/MW array.
|
||||
//! This array is the array of mole fractions, each divided by the mean
|
||||
//! molecular weight.
|
||||
//! @deprecated To be removed after Cantera 3.0. Generally replaceable by using
|
||||
//! @deprecated To be removed after %Cantera 3.0. Generally replaceable by using
|
||||
//! getMoleFractions() and meanMolecularWeight().
|
||||
const double* moleFractdivMMW() const;
|
||||
|
||||
@ -714,7 +714,7 @@ public:
|
||||
|
||||
//! Set the internally stored molar density (kmol/m^3) of the phase.
|
||||
//! @param[in] molarDensity Input molar density (kmol/m^3).
|
||||
//! @deprecated Unused. To be removed after Cantera 3.0
|
||||
//! @deprecated Unused. To be removed after %Cantera 3.0
|
||||
virtual void setMolarDensity(const double molarDensity);
|
||||
|
||||
//! Set the internally stored pressure (Pa) at constant temperature and
|
||||
|
@ -98,7 +98,7 @@ public:
|
||||
*
|
||||
* @param mu Output vector of non-dimensional species chemical potentials
|
||||
* Length: m_kk.
|
||||
* @deprecated To be removed after Cantera 3.0. Use getChemPotentials() instead.
|
||||
* @deprecated To be removed after %Cantera 3.0. Use getChemPotentials() instead.
|
||||
*/
|
||||
virtual void getChemPotentials_RT(doublereal* mu) const;
|
||||
|
||||
|
@ -51,7 +51,7 @@ namespace Cantera
|
||||
* http://webbook.nist.gov/
|
||||
*
|
||||
* Before being used within Cantera, the dimensions must be adjusted to those
|
||||
* used by Cantera (for example, Joules and kmol).
|
||||
* used by %Cantera (for example, Joules and kmol).
|
||||
*
|
||||
* @ingroup spthermo
|
||||
*/
|
||||
@ -224,7 +224,7 @@ protected:
|
||||
* http://webbook.nist.gov/
|
||||
*
|
||||
* Before being used within Cantera, the dimensions must be adjusted to those
|
||||
* used by Cantera (for example, Joules and kmol).
|
||||
* used by %Cantera (for example, Joules and kmol).
|
||||
*
|
||||
* This function uses two temperature regions, each with a Shomate polynomial
|
||||
* representation to represent the thermo functions. There are 15 coefficients,
|
||||
|
@ -125,7 +125,7 @@ public:
|
||||
*
|
||||
* @param murt On return, Contains the chemical potential / RT of the
|
||||
* single species and the phase. Units are unitless. Length = 1
|
||||
* @deprecated To be removed after Cantera 3.0. Use getChemPotentials() instead.
|
||||
* @deprecated To be removed after %Cantera 3.0. Use getChemPotentials() instead.
|
||||
*/
|
||||
virtual void getChemPotentials_RT(doublereal* murt) const;
|
||||
|
||||
|
@ -211,7 +211,7 @@ public:
|
||||
|
||||
//! Since interface phases have no volume, setting this to a value other than 0.0
|
||||
//! raises an exception.
|
||||
//! @deprecated Unused. To be removed after Cantera 3.0
|
||||
//! @deprecated Unused. To be removed after %Cantera 3.0
|
||||
virtual void setMolarDensity(const double vm);
|
||||
|
||||
//! Returns the site density
|
||||
|
@ -44,7 +44,7 @@ public:
|
||||
* @param model The name of the thermo model
|
||||
* @returns a pointer to a new ThermoPhase object of the type specified. Throws a
|
||||
* CanteraError if the named model isn't registered with ThermoFactory.
|
||||
* @deprecated To be removed after Cantera 3.0; superseded by newThermo()
|
||||
* @deprecated To be removed after %Cantera 3.0; superseded by newThermo()
|
||||
*/
|
||||
virtual ThermoPhase* newThermoPhase(const std::string& model);
|
||||
|
||||
@ -60,7 +60,7 @@ private:
|
||||
};
|
||||
|
||||
//! @copydoc newThermoModel(const string&)
|
||||
//! @deprecated To be removed after Cantera 3.0; superseded by newThermoModel()
|
||||
//! @deprecated To be removed after %Cantera 3.0; superseded by newThermoModel()
|
||||
ThermoPhase* newThermoPhase(const string& model);
|
||||
|
||||
//! Create a new ThermoPhase instance.
|
||||
@ -68,7 +68,7 @@ ThermoPhase* newThermoPhase(const string& model);
|
||||
* @param model String to look up the model against
|
||||
* @returns a shared pointer to a new ThermoPhase object of the type specified. Throws a
|
||||
* CanteraError if the named model is not registered with ThermoFactory.
|
||||
* @since New in Cantera 3.0. Replaces newThermo
|
||||
* @since New in %Cantera 3.0. Replaces newThermo
|
||||
*/
|
||||
shared_ptr<ThermoPhase> newThermoModel(const string& model);
|
||||
|
||||
@ -79,7 +79,7 @@ ThermoPhase* newThermoPhase(const string& model);
|
||||
* @param rootNode The root node of the tree containing the phase definition,
|
||||
* which will be used as the default location from which to read species
|
||||
* definitions.
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
shared_ptr<ThermoPhase> newThermo(const AnyMap& phaseNode,
|
||||
const AnyMap& rootNode=AnyMap());
|
||||
@ -94,18 +94,18 @@ shared_ptr<ThermoPhase> newThermo(const AnyMap& phaseNode,
|
||||
* @param id name (id) of the phase in the file.
|
||||
* If this is blank, the first phase in the file is used.
|
||||
* @returns an initialized ThermoPhase object.
|
||||
* @since Changed in Cantera 3.0. Prior to Cantera 3.0, the function used a single
|
||||
* @since Changed in %Cantera 3.0. Prior to %Cantera 3.0, the function used a single
|
||||
* argument specifying the thermo model, which is now deprecated.
|
||||
*/
|
||||
shared_ptr<ThermoPhase> newThermo(const string& infile, const string& id="");
|
||||
|
||||
//! @copydoc newThermo(const AnyMap&, const AnyMap&)
|
||||
//! @deprecated To be removed after Cantera 3.0; superseded by newThermo()
|
||||
//! @deprecated To be removed after %Cantera 3.0; superseded by newThermo()
|
||||
unique_ptr<ThermoPhase> newPhase(const AnyMap& phaseNode,
|
||||
const AnyMap& rootNode=AnyMap());
|
||||
|
||||
//! @copydoc newThermo(const string&, const string&)
|
||||
//! @deprecated To be removed after Cantera 3.0; superseded by newThermo()
|
||||
//! @deprecated To be removed after %Cantera 3.0; superseded by newThermo()
|
||||
ThermoPhase* newPhase(const std::string& infile, std::string id="");
|
||||
|
||||
//! Initialize a ThermoPhase object
|
||||
|
@ -53,7 +53,7 @@ enum class ThermoBasis
|
||||
* phases of matter of any type. It defines a common public interface, and
|
||||
* implements a few methods. Most of the methods, however, are declared virtual
|
||||
* and are meant to be overloaded in derived classes. The standard way used
|
||||
* throughout Cantera to compute properties of phases of matter is through
|
||||
* throughout %Cantera to compute properties of phases of matter is through
|
||||
* pointers of type ThermoPhase* that point to objects of subclasses of
|
||||
* ThermoPhase.
|
||||
*
|
||||
@ -66,7 +66,7 @@ enum class ThermoBasis
|
||||
*
|
||||
* Instances of subclasses of ThermoPhase should be created using the factory
|
||||
* class ThermoFactory, not by calling the constructor directly. This allows new
|
||||
* classes to be used with the various Cantera language interfaces.
|
||||
* classes to be used with the various %Cantera language interfaces.
|
||||
*
|
||||
* To implement a new equation of state, derive a class from ThermoPhase and
|
||||
* overload the virtual methods in ThermoPhase. Methods that are not needed can
|
||||
@ -483,7 +483,7 @@ public:
|
||||
* @param mu Output vector of dimensionless chemical potentials.
|
||||
* Length: m_kk.
|
||||
*
|
||||
* @deprecated To be removed after Cantera 3.0. Use getChemPotentials() instead.
|
||||
* @deprecated To be removed after %Cantera 3.0. Use getChemPotentials() instead.
|
||||
*/
|
||||
virtual void getChemPotentials_RT(doublereal* mu) const {
|
||||
throw NotImplementedError("ThermoPhase::getChemPotentials_RT");
|
||||
@ -888,7 +888,7 @@ public:
|
||||
* @param p Pressure (Pa)
|
||||
* @param x Vector of mole fractions.
|
||||
* Length is equal to m_kk.
|
||||
* @deprecated To be removed after Cantera 3.0.
|
||||
* @deprecated To be removed after %Cantera 3.0.
|
||||
*/
|
||||
virtual void setState_PX(doublereal p, doublereal* x);
|
||||
|
||||
@ -901,7 +901,7 @@ public:
|
||||
* @param p Pressure (Pa)
|
||||
* @param y Vector of mass fractions.
|
||||
* Length is equal to m_kk.
|
||||
* @deprecated To be removed after Cantera 3.0.
|
||||
* @deprecated To be removed after %Cantera 3.0.
|
||||
*/
|
||||
virtual void setState_PY(doublereal p, doublereal* y);
|
||||
|
||||
@ -1080,7 +1080,7 @@ public:
|
||||
*
|
||||
* @param rho Density (kg/m^3)
|
||||
* @param p Pressure (Pa)
|
||||
* @deprecated To be removed after Cantera 3.0; renamed to setState_DP()
|
||||
* @deprecated To be removed after %Cantera 3.0; renamed to setState_DP()
|
||||
*/
|
||||
void setState_RP(doublereal rho, doublereal p);
|
||||
|
||||
@ -1096,7 +1096,7 @@ public:
|
||||
*
|
||||
* @param rho Density (kg/m^3)
|
||||
* @param p Pressure (Pa)
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
virtual void setState_DP(double rho, double p) {
|
||||
throw NotImplementedError("ThermoPhase::setState_DP");
|
||||
@ -1112,7 +1112,7 @@ public:
|
||||
* @param p Pressure (Pa)
|
||||
* @param x Vector of mole fractions.
|
||||
* Length is equal to m_kk.
|
||||
* @deprecated To be removed after Cantera 3.0; replaceable by calls to
|
||||
* @deprecated To be removed after %Cantera 3.0; replaceable by calls to
|
||||
* setMoleFractions() and setState_DP().
|
||||
*/
|
||||
virtual void setState_RPX(doublereal rho, doublereal p, const doublereal* x);
|
||||
@ -1127,7 +1127,7 @@ public:
|
||||
* @param p Pressure (Pa)
|
||||
* @param x Composition map of mole fractions. Species not in
|
||||
* the composition map are assumed to have zero mole fraction
|
||||
* @deprecated To be removed after Cantera 3.0; replaceable by calls to
|
||||
* @deprecated To be removed after %Cantera 3.0; replaceable by calls to
|
||||
* setMoleFractionsByName() and setState_DP().
|
||||
*/
|
||||
virtual void setState_RPX(doublereal rho, doublereal p, const compositionMap& x);
|
||||
@ -1143,7 +1143,7 @@ public:
|
||||
* @param x String containing a composition map of the mole fractions.
|
||||
* Species not in the composition map are assumed to have zero
|
||||
* mole fraction
|
||||
* @deprecated To be removed after Cantera 3.0; replaceable by calls to
|
||||
* @deprecated To be removed after %Cantera 3.0; replaceable by calls to
|
||||
* setMoleFractionsByName() and setState_DP().
|
||||
*/
|
||||
virtual void setState_RPX(doublereal rho, doublereal p, const std::string& x);
|
||||
@ -1158,7 +1158,7 @@ public:
|
||||
* @param p Pressure (Pa)
|
||||
* @param y Vector of mole fractions.
|
||||
* Length is equal to m_kk.
|
||||
* @deprecated To be removed after Cantera 3.0; replaceable by calls to
|
||||
* @deprecated To be removed after %Cantera 3.0; replaceable by calls to
|
||||
* setMassFractions() and setState_DP().
|
||||
*/
|
||||
virtual void setState_RPY(doublereal rho, doublereal p, const doublereal* y);
|
||||
@ -1173,7 +1173,7 @@ public:
|
||||
* @param p Pressure (Pa)
|
||||
* @param y Composition map of mole fractions. Species not in
|
||||
* the composition map are assumed to have zero mole fraction
|
||||
* @deprecated To be removed after Cantera 3.0; replaceable by calls to
|
||||
* @deprecated To be removed after %Cantera 3.0; replaceable by calls to
|
||||
* setMassFractionsByName() and setState_DP().
|
||||
*/
|
||||
virtual void setState_RPY(doublereal rho, doublereal p, const compositionMap& y);
|
||||
@ -1189,7 +1189,7 @@ public:
|
||||
* @param y String containing a composition map of the mole fractions.
|
||||
* Species not in the composition map are assumed to have zero
|
||||
* mole fraction
|
||||
* @deprecated To be removed after Cantera 3.0; replaceable by calls to
|
||||
* @deprecated To be removed after %Cantera 3.0; replaceable by calls to
|
||||
* setMassFractionsByName() and setState_DP().
|
||||
*/
|
||||
virtual void setState_RPY(doublereal rho, doublereal p, const std::string& y);
|
||||
@ -1813,7 +1813,7 @@ public:
|
||||
* override the getCsvReportData method.
|
||||
*
|
||||
* @param csvFile ofstream file to print comma separated data for the phase
|
||||
* @deprecated To be removed after Cantera 3.0.
|
||||
* @deprecated To be removed after %Cantera 3.0.
|
||||
*/
|
||||
virtual void reportCSV(std::ofstream& csvFile) const;
|
||||
|
||||
@ -1827,7 +1827,7 @@ protected:
|
||||
|
||||
//! Fills `names` and `data` with the column names and species thermo
|
||||
//! properties to be included in the output of the reportCSV method.
|
||||
//! @deprecated To be removed after Cantera 3.0.
|
||||
//! @deprecated To be removed after %Cantera 3.0.
|
||||
virtual void getCsvReportData(std::vector<std::string>& names,
|
||||
std::vector<vector_fp>& data) const;
|
||||
|
||||
|
@ -72,7 +72,7 @@ public:
|
||||
*
|
||||
* @param mu Output vector of non-dimensional species chemical potentials
|
||||
* Length: m_kk.
|
||||
* @deprecated To be removed after Cantera 3.0. Use getChemPotentials() instead.
|
||||
* @deprecated To be removed after %Cantera 3.0. Use getChemPotentials() instead.
|
||||
*/
|
||||
virtual void getChemPotentials_RT(doublereal* mu) const;
|
||||
|
||||
|
@ -171,7 +171,7 @@ public:
|
||||
/*!
|
||||
* @param temperature temperature (kelvin)
|
||||
* @param rho density (kg m-3)
|
||||
* @deprecated To be removed after Cantera 3.0; renamed to setState_TD()
|
||||
* @deprecated To be removed after %Cantera 3.0; renamed to setState_TD()
|
||||
*/
|
||||
void setState_TR(doublereal temperature, doublereal rho);
|
||||
|
||||
@ -179,7 +179,7 @@ public:
|
||||
/*!
|
||||
* @param temperature temperature (kelvin)
|
||||
* @param rho density (kg m-3)
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
void setState_TD(double temperature, double rho);
|
||||
|
||||
@ -205,47 +205,47 @@ public:
|
||||
|
||||
//! Calculate the Helmholtz free energy in mks units of J kmol-1 K-1,
|
||||
//! using the last temperature and density
|
||||
//! @deprecated To be removed after Cantera 3.0. This class provides mass-based
|
||||
//! @deprecated To be removed after %Cantera 3.0. This class provides mass-based
|
||||
//! values only.
|
||||
doublereal helmholtzFE() const;
|
||||
|
||||
//! Calculate the Gibbs free energy in mks units of J kmol-1 K-1.
|
||||
//! using the last temperature and density
|
||||
//! @deprecated To be removed after Cantera 3.0. This class provides mass-based
|
||||
//! @deprecated To be removed after %Cantera 3.0. This class provides mass-based
|
||||
//! values only.
|
||||
doublereal Gibbs() const;
|
||||
|
||||
//! Calculate the enthalpy in mks units of J kmol-1
|
||||
//! using the last temperature and density
|
||||
//! @deprecated To be removed after Cantera 3.0. This class provides mass-based
|
||||
//! @deprecated To be removed after %Cantera 3.0. This class provides mass-based
|
||||
//! values only.
|
||||
doublereal enthalpy() const;
|
||||
|
||||
//! Calculate the internal energy in mks units of J kmol-1
|
||||
//! @deprecated To be removed after Cantera 3.0. This class provides mass-based
|
||||
//! @deprecated To be removed after %Cantera 3.0. This class provides mass-based
|
||||
//! values only.
|
||||
doublereal intEnergy() const;
|
||||
|
||||
//! Calculate the entropy in mks units of J kmol-1 K-1
|
||||
//! @deprecated To be removed after Cantera 3.0. This class provides mass-based
|
||||
//! @deprecated To be removed after %Cantera 3.0. This class provides mass-based
|
||||
//! values only.
|
||||
doublereal entropy() const;
|
||||
|
||||
//! Calculate the constant volume heat capacity in mks units of J kmol-1 K-1
|
||||
//! at the last temperature and density
|
||||
//! @deprecated To be removed after Cantera 3.0. This class provides mass-based
|
||||
//! @deprecated To be removed after %Cantera 3.0. This class provides mass-based
|
||||
//! values only.
|
||||
doublereal cv() const;
|
||||
|
||||
//! Calculate the constant pressure heat capacity in mks units of J kmol-1 K-1
|
||||
//! at the last temperature and density
|
||||
//! @deprecated To be removed after Cantera 3.0. This class provides mass-based
|
||||
//! @deprecated To be removed after %Cantera 3.0. This class provides mass-based
|
||||
//! values only.
|
||||
doublereal cp() const;
|
||||
|
||||
//! Calculate the molar volume (kmol m-3) at the last temperature and
|
||||
//! density
|
||||
//! @deprecated To be removed after Cantera 3.0. This class provides mass-based
|
||||
//! @deprecated To be removed after %Cantera 3.0. This class provides mass-based
|
||||
//! values only.
|
||||
doublereal molarVolume() const;
|
||||
|
||||
|
@ -200,7 +200,7 @@ private:
|
||||
*/
|
||||
std::unique_ptr<WaterProps> m_waterProps;
|
||||
|
||||
//! Molecular weight of Water -> Cantera assumption
|
||||
//! Molecular weight of Water -> %Cantera assumption
|
||||
double m_mw = 0.0;
|
||||
|
||||
//! Offset constants used to obtain consistency with the NIST database.
|
||||
|
@ -21,11 +21,11 @@ namespace Cantera
|
||||
//! high pressure gas mixtures.
|
||||
/*!
|
||||
* @attention This class currently does not have any test cases or examples. Its
|
||||
* implementation may be incomplete, and future changes to Cantera may
|
||||
* implementation may be incomplete, and future changes to %Cantera may
|
||||
* unexpectedly cause this class to stop working. If you use this class,
|
||||
* please consider contributing examples or test cases. In the absence of
|
||||
* new tests or examples, this class may be deprecated and removed in a
|
||||
* future version of Cantera. See
|
||||
* future version of %Cantera. See
|
||||
* https://github.com/Cantera/cantera/issues/267 for additional information.
|
||||
*
|
||||
* The implementation employs a method of corresponding states, using the
|
||||
|
@ -52,7 +52,7 @@ const int CK_Mode = 10;
|
||||
* quantities refers to the reference velocity being referenced to a particular
|
||||
* species. Below are the predefined constants for its value.
|
||||
*
|
||||
* @deprecated To be removed after Cantera 3.0.
|
||||
* @deprecated To be removed after %Cantera 3.0.
|
||||
*
|
||||
* - VB_MASSAVG Diffusion velocities are based on the mass averaged velocity
|
||||
* - VB_MOLEAVG Diffusion velocities are based on the mole averaged velocities
|
||||
@ -69,22 +69,22 @@ typedef int VelocityBasis;
|
||||
*/
|
||||
//! @{
|
||||
//! Diffusion velocities are based on the mass averaged velocity
|
||||
//! @deprecated To be removed after Cantera 3.0.
|
||||
//! @deprecated To be removed after %Cantera 3.0.
|
||||
const VelocityBasis VB_MASSAVG = -1;
|
||||
//! Diffusion velocities are based on the mole averaged velocities
|
||||
//! @deprecated To be removed after Cantera 3.0.
|
||||
//! @deprecated To be removed after %Cantera 3.0.
|
||||
const VelocityBasis VB_MOLEAVG = -2;
|
||||
//! Diffusion velocities are based on the relative motion wrt species 0
|
||||
//! @deprecated To be removed after Cantera 3.0.
|
||||
//! @deprecated To be removed after %Cantera 3.0.
|
||||
const VelocityBasis VB_SPECIES_0 = 0;
|
||||
//! Diffusion velocities are based on the relative motion wrt species 1
|
||||
//! @deprecated To be removed after Cantera 3.0.
|
||||
//! @deprecated To be removed after %Cantera 3.0.
|
||||
const VelocityBasis VB_SPECIES_1 = 1;
|
||||
//! Diffusion velocities are based on the relative motion wrt species 2
|
||||
//! @deprecated To be removed after Cantera 3.0.
|
||||
//! @deprecated To be removed after %Cantera 3.0.
|
||||
const VelocityBasis VB_SPECIES_2 = 2;
|
||||
//! Diffusion velocities are based on the relative motion wrt species 3
|
||||
//! @deprecated To be removed after Cantera 3.0.
|
||||
//! @deprecated To be removed after %Cantera 3.0.
|
||||
const VelocityBasis VB_SPECIES_3 = 3;
|
||||
//! @}
|
||||
|
||||
@ -154,7 +154,7 @@ public:
|
||||
* @param thermo Pointer to the ThermoPhase class representing this phase.
|
||||
* @param ndim Dimension of the flux vector used in the calculation.
|
||||
*
|
||||
* @deprecated The `thermo` and `ndim` parameters will be removed after Cantera 3.0.
|
||||
* @deprecated The `thermo` and `ndim` parameters will be removed after %Cantera 3.0.
|
||||
* The ThermoPhase object should be specifed when calling the `init` method.
|
||||
*
|
||||
* @see TransportFactory
|
||||
@ -169,7 +169,7 @@ public:
|
||||
|
||||
//! Identifies the model represented by this Transport object. Each derived class
|
||||
//! should override this method to return a meaningful identifier.
|
||||
//! @since New in Cantera 3.0. The name returned by this method corresponds
|
||||
//! @since New in %Cantera 3.0. The name returned by this method corresponds
|
||||
//! to the canonical name used in the YAML input format.
|
||||
virtual std::string transportModel() const {
|
||||
return "none";
|
||||
@ -177,7 +177,7 @@ public:
|
||||
|
||||
//! Identifies the Transport object type. Each derived class should override
|
||||
//! this method to return a meaningful identifier.
|
||||
//! @deprecated To be removed after Cantera 3.0. Replaced by transportModel
|
||||
//! @deprecated To be removed after %Cantera 3.0. Replaced by transportModel
|
||||
std::string transportType() const {
|
||||
warn_deprecated("Transport::transportType",
|
||||
"To be removed after Cantera 3.0. Replaced by transportModel().");
|
||||
@ -196,19 +196,19 @@ public:
|
||||
|
||||
/*!
|
||||
* Returns true if the transport manager is ready for use.
|
||||
* @deprecated To be removed after Cantera 3.0.
|
||||
* @deprecated To be removed after %Cantera 3.0.
|
||||
*/
|
||||
bool ready();
|
||||
|
||||
//! Set the number of dimensions to be expected in flux expressions
|
||||
/*!
|
||||
* @param ndim Number of dimensions in flux expressions
|
||||
* @deprecated Unused. To be removed after Cantera 3.0.
|
||||
* @deprecated Unused. To be removed after %Cantera 3.0.
|
||||
*/
|
||||
void setNDim(const int ndim);
|
||||
|
||||
//! Return the number of dimensions in flux expressions
|
||||
//! @deprecated Unused. To be removed after Cantera 3.0.
|
||||
//! @deprecated Unused. To be removed after %Cantera 3.0.
|
||||
size_t nDim() const {
|
||||
return m_nDim;
|
||||
}
|
||||
@ -256,7 +256,7 @@ public:
|
||||
}
|
||||
|
||||
//! The ionic conductivity in 1/ohm/m.
|
||||
//! @deprecated To be removed after Cantera 3.0. Not implemented by any model.
|
||||
//! @deprecated To be removed after %Cantera 3.0. Not implemented by any model.
|
||||
virtual double ionConductivity() {
|
||||
throw NotImplementedError("Transport::ionConductivity",
|
||||
"Not implemented for transport model '{}'.", transportModel());
|
||||
@ -268,7 +268,7 @@ public:
|
||||
*
|
||||
* @param ionCond Vector of ionic conductivities
|
||||
*
|
||||
* @deprecated To be removed after Cantera 3.0. Not implemented by any model.
|
||||
* @deprecated To be removed after %Cantera 3.0. Not implemented by any model.
|
||||
*/
|
||||
virtual void getSpeciesIonConductivity(double* const ionCond) {
|
||||
throw NotImplementedError("Transport::getSpeciesIonConductivity",
|
||||
@ -290,7 +290,7 @@ public:
|
||||
*
|
||||
* The size of mobRat must be at least equal to nsp*nsp
|
||||
*
|
||||
* @deprecated To be removed after Cantera 3.0. Not implemented by any model.
|
||||
* @deprecated To be removed after %Cantera 3.0. Not implemented by any model.
|
||||
*/
|
||||
virtual void mobilityRatio(double* mobRat) {
|
||||
throw NotImplementedError("Transport::mobilityRatio",
|
||||
@ -303,7 +303,7 @@ public:
|
||||
*
|
||||
* @param mobRat Vector of mobility ratios
|
||||
*
|
||||
* @deprecated To be removed after Cantera 3.0. Not implemented by any model.
|
||||
* @deprecated To be removed after %Cantera 3.0. Not implemented by any model.
|
||||
*/
|
||||
virtual void getSpeciesMobilityRatio(double** mobRat) {
|
||||
throw NotImplementedError("Transport::getSpeciesMobilityRatio",
|
||||
@ -365,7 +365,7 @@ public:
|
||||
* The array must be dimensioned at least as large as the
|
||||
* number of species.
|
||||
*
|
||||
* @deprecated To be removed after Cantera 3.0. Not implemented by any model.
|
||||
* @deprecated To be removed after %Cantera 3.0. Not implemented by any model.
|
||||
*/
|
||||
virtual void getFluidMobilities(double* const mobil_f) {
|
||||
throw NotImplementedError("Transport::getFluidMobilities",
|
||||
@ -391,7 +391,7 @@ public:
|
||||
*
|
||||
* The units are Siemens m-1, where 1 S = 1 A / volt = 1 s^3 A^2 /kg /m^2
|
||||
*
|
||||
* @deprecated To be removed after Cantera 3.0. Replaced by electricalConductivity()
|
||||
* @deprecated To be removed after %Cantera 3.0. Replaced by electricalConductivity()
|
||||
*/
|
||||
virtual double getElectricConduct() {
|
||||
throw NotImplementedError("Transport::getElectricConduct",
|
||||
@ -411,7 +411,7 @@ public:
|
||||
* @param grad_V The electrostatic potential gradient.
|
||||
* @param current The electric current in A/m^2. This is a vector of length ndim
|
||||
*
|
||||
* @deprecated To be removed after Cantera 3.0. Not implemented by any model.
|
||||
* @deprecated To be removed after %Cantera 3.0. Not implemented by any model.
|
||||
*/
|
||||
virtual void getElectricCurrent(int ndim,
|
||||
const double* grad_T,
|
||||
@ -468,7 +468,7 @@ public:
|
||||
* @param[out] fluxes The diffusive mass fluxes. Flat vector with the m_nsp
|
||||
* in the inner loop. length = ldx * ndim.
|
||||
*
|
||||
* @deprecated To be removed after Cantera 3.0. Not implemented by any model.
|
||||
* @deprecated To be removed after %Cantera 3.0. Not implemented by any model.
|
||||
*/
|
||||
virtual void getSpeciesFluxesES(size_t ndim,
|
||||
const double* grad_T,
|
||||
@ -495,7 +495,7 @@ public:
|
||||
* Flat vector with the m_nsp in the inner loop.
|
||||
* length = ldx * ndim. units are m / s.
|
||||
*
|
||||
* @deprecated To be removed after Cantera 3.0. Not implemented by any model.
|
||||
* @deprecated To be removed after %Cantera 3.0. Not implemented by any model.
|
||||
*/
|
||||
virtual void getSpeciesVdiff(size_t ndim,
|
||||
const double* grad_T,
|
||||
@ -525,7 +525,7 @@ public:
|
||||
* Flat vector with the m_nsp in the inner loop. length = ldx
|
||||
* * ndim. units are m / s.
|
||||
*
|
||||
* @deprecated To be removed after Cantera 3.0. Not implemented by any model.
|
||||
* @deprecated To be removed after %Cantera 3.0. Not implemented by any model.
|
||||
*/
|
||||
virtual void getSpeciesVdiffES(size_t ndim,
|
||||
const double* grad_T,
|
||||
@ -722,7 +722,7 @@ public:
|
||||
* @param k Species index to set the parameters on
|
||||
* @param p Vector of parameters. The length of the vector varies with
|
||||
* the parameterization
|
||||
* @deprecated To be removed after Cantera 3.0.
|
||||
* @deprecated To be removed after %Cantera 3.0.
|
||||
*/
|
||||
virtual void setParameters(const int type, const int k, const double* const p) {
|
||||
throw NotImplementedError("Transport::setParameters",
|
||||
@ -742,7 +742,7 @@ public:
|
||||
* operators including all of the gas-phase operators.
|
||||
*
|
||||
* @param ivb Species the velocity basis
|
||||
* @deprecated To be removed after Cantera 3.0.
|
||||
* @deprecated To be removed after %Cantera 3.0.
|
||||
*/
|
||||
void setVelocityBasis(VelocityBasis ivb) {
|
||||
m_velocityBasis = ivb;
|
||||
@ -755,7 +755,7 @@ public:
|
||||
* operators including all of the gas-phase operators.
|
||||
*
|
||||
* @returns the velocity basis
|
||||
* @deprecated To be removed after Cantera 3.0.
|
||||
* @deprecated To be removed after %Cantera 3.0.
|
||||
*/
|
||||
VelocityBasis getVelocityBasis() const {
|
||||
return m_velocityBasis;
|
||||
@ -790,13 +790,13 @@ public:
|
||||
*
|
||||
* @param thermo Reference to the ThermoPhase object that the transport
|
||||
* object will use
|
||||
* @deprecated To be removed after Cantera 3.0. The ThermoPhase object should be
|
||||
* @deprecated To be removed after %Cantera 3.0. The ThermoPhase object should be
|
||||
* set as part of the call to `init`.
|
||||
*/
|
||||
virtual void setThermo(ThermoPhase& thermo);
|
||||
|
||||
//! Set root Solution holding all phase information
|
||||
//! @deprecated Unused. To be removed after Cantera 3.0.
|
||||
//! @deprecated Unused. To be removed after %Cantera 3.0.
|
||||
virtual void setRoot(std::shared_ptr<Solution> root);
|
||||
|
||||
//! Boolean indicating the form of the transport properties polynomial fits.
|
||||
@ -812,7 +812,7 @@ protected:
|
||||
* Once finalize() has been called, the transport manager should be ready to
|
||||
* compute any supported transport property, and no further modifications to
|
||||
* the model parameters should be made.
|
||||
* @deprecated To be removed after Cantera 3.0.
|
||||
* @deprecated To be removed after %Cantera 3.0.
|
||||
*/
|
||||
void finalize();
|
||||
|
||||
@ -822,23 +822,23 @@ protected:
|
||||
ThermoPhase* m_thermo;
|
||||
|
||||
//! true if finalize has been called
|
||||
//! @deprecated To be removed after Cantera 3.0
|
||||
//! @deprecated To be removed after %Cantera 3.0
|
||||
bool m_ready = false;
|
||||
|
||||
//! Number of species
|
||||
size_t m_nsp = 0;
|
||||
|
||||
//! Number of dimensions used in flux expressions
|
||||
//! @deprecated To be removed after Cantera 3.0
|
||||
//! @deprecated To be removed after %Cantera 3.0
|
||||
size_t m_nDim;
|
||||
|
||||
//! Velocity basis from which diffusion velocities are computed.
|
||||
//! Defaults to the mass averaged basis = -2
|
||||
//! @deprecated To be removed after Cantera 3.0.
|
||||
//! @deprecated To be removed after %Cantera 3.0.
|
||||
int m_velocityBasis = VB_MASSAVG;
|
||||
|
||||
//! reference to Solution
|
||||
//! @deprecated To be removed after Cantera 3.0
|
||||
//! @deprecated To be removed after %Cantera 3.0
|
||||
std::weak_ptr<Solution> m_root;
|
||||
};
|
||||
|
||||
|
@ -87,7 +87,7 @@ private:
|
||||
};
|
||||
|
||||
//! @copydoc TransportFactory::newTransport(const std::string&, ThermoPhase*, int)
|
||||
//! @deprecated To be removed after Cantera 3.0; superseded by newTransport()
|
||||
//! @deprecated To be removed after %Cantera 3.0; superseded by newTransport()
|
||||
Transport* newTransportMgr(const std::string& model="", ThermoPhase* thermo=0,
|
||||
int log_level=0);
|
||||
|
||||
@ -103,7 +103,7 @@ shared_ptr<Transport> newTransport(shared_ptr<ThermoPhase> thermo,
|
||||
const string& model="default");
|
||||
|
||||
//! @copydoc newTransport(shared_ptr<ThermoPhase>, const string&)
|
||||
//! @deprecated To be removed after Cantera 3.0; superseded by newTransport()
|
||||
//! @deprecated To be removed after %Cantera 3.0; superseded by newTransport()
|
||||
shared_ptr<Transport> newTransport(ThermoPhase* thermo, const string& model="default");
|
||||
|
||||
//! Create a new transport manager instance.
|
||||
@ -111,7 +111,7 @@ shared_ptr<Transport> newTransport(ThermoPhase* thermo, const string& model="def
|
||||
* @param thermo ThermoPhase object associated with the phase
|
||||
* @param loglevel int containing the Loglevel, defaults to zero
|
||||
* @returns a transport manager for the phase
|
||||
* @deprecated To be removed after Cantera 3.0; superseded by newTransport()
|
||||
* @deprecated To be removed after %Cantera 3.0; superseded by newTransport()
|
||||
* @ingroup tranprops
|
||||
*/
|
||||
Transport* newDefaultTransportMgr(ThermoPhase* thermo, int loglevel = 0);
|
||||
|
@ -26,7 +26,7 @@ public:
|
||||
* @param ndim Number of dimensions of the flux expressions.
|
||||
* Defaults to a value of one.
|
||||
*
|
||||
* @deprecated The `thermo` and `ndim` parameters will be removed after Cantera 3.0.
|
||||
* @deprecated The `thermo` and `ndim` parameters will be removed after %Cantera 3.0.
|
||||
* The ThermoPhase object should be specifed when calling the `init` method.
|
||||
*/
|
||||
WaterTransport(ThermoPhase* thermo = 0, int ndim = -1);
|
||||
|
@ -14,7 +14,7 @@ namespace Cantera
|
||||
/*!
|
||||
* ConstPressureMoleReactor is a class for constant-pressure reactors
|
||||
* which use a state of moles.
|
||||
* @since New in Cantera 3.0
|
||||
* @since New in %Cantera 3.0
|
||||
* @ingroup reactorGroup
|
||||
*/
|
||||
class ConstPressureMoleReactor : public MoleReactor
|
||||
|
@ -83,7 +83,7 @@ public:
|
||||
* coefficient set by a flow device specific function; unless a user-defined
|
||||
* pressure function is set, this is the pressure difference across the device.
|
||||
* The calculation of mass flow rate depends to the flow device.
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
double evalPressureFunction();
|
||||
|
||||
@ -97,7 +97,7 @@ public:
|
||||
* The mass flow rate [kg/s] is calculated for a Flow device, and multiplied by a
|
||||
* function of time, which returns 1.0 unless a user-defined function is provided.
|
||||
* The calculation of mass flow rate depends on the flow device.
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
double evalTimeFunction();
|
||||
|
||||
@ -108,7 +108,7 @@ public:
|
||||
|
||||
//! Set current reactor network time
|
||||
/*!
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
void setSimTime(double time) {
|
||||
m_time = time;
|
||||
|
@ -29,7 +29,7 @@ public:
|
||||
//! Create a new flow device by type name.
|
||||
/*!
|
||||
* @param flowDeviceType the type to be created.
|
||||
* @deprecated To be removed after Cantera 3.0; replaceable by newFlowDevice3.
|
||||
* @deprecated To be removed after %Cantera 3.0; replaceable by newFlowDevice3.
|
||||
*/
|
||||
virtual FlowDevice* newFlowDevice(const std::string& flowDeviceType);
|
||||
|
||||
|
@ -62,7 +62,7 @@ public:
|
||||
return m_area;
|
||||
}
|
||||
|
||||
//! @deprecated To be removed after Cantera 3.0. Access distance through the
|
||||
//! @deprecated To be removed after %Cantera 3.0. Access distance through the
|
||||
//! ReactorNet object
|
||||
double distance() const;
|
||||
|
||||
|
@ -233,7 +233,7 @@ public:
|
||||
//! @warning This method is an experimental part of the %Cantera
|
||||
//! API and may be changed or removed without notice.
|
||||
//!
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
//!
|
||||
virtual bool preconditionerSupported() const {return false;};
|
||||
|
||||
|
@ -29,7 +29,7 @@ public:
|
||||
//! Create a new reactor by type name.
|
||||
/*!
|
||||
* @param reactorType the type to be created.
|
||||
* @deprecated To be removed after Cantera 3.0; replaceable by newReactor3.
|
||||
* @deprecated To be removed after %Cantera 3.0; replaceable by newReactor3.
|
||||
*/
|
||||
virtual ReactorBase* newReactor(const std::string& reactorType);
|
||||
|
||||
@ -51,7 +51,7 @@ private:
|
||||
//! @{
|
||||
|
||||
//! Create a Reactor object of the specified type
|
||||
//! @deprecated To be changed after %Cantera 3.0; for new behavior, see newReactor3().
|
||||
//! @deprecated To be changed after %Cantera 3.0; for new behavior, see newReactor3().
|
||||
ReactorBase* newReactor(const string& model);
|
||||
|
||||
//! Create a Reactor object of the specified type
|
||||
|
@ -53,7 +53,7 @@ public:
|
||||
|
||||
//! Get the initial value of the independent variable (typically time).
|
||||
/*!
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
double getInitialTime() const {
|
||||
return m_initial_time;
|
||||
|
@ -40,7 +40,7 @@ public:
|
||||
/*!
|
||||
* This method is called by Reactor::evalWalls(). Base class method
|
||||
* does nothing (that is, constant volume), but may be overloaded.
|
||||
* @deprecated To be removed after Cantera 3.0; replaceable by expansionRate.
|
||||
* @deprecated To be removed after %Cantera 3.0; replaceable by expansionRate.
|
||||
*/
|
||||
virtual double vdot(double t) {
|
||||
warn_deprecated("WallBase::vdot",
|
||||
@ -53,7 +53,7 @@ public:
|
||||
/*!
|
||||
* This method is called by Reactor::evalWalls(). Base class method
|
||||
* does nothing (that is, constant volume), but may be overloaded.
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
virtual double expansionRate() {
|
||||
return 0.0;
|
||||
@ -63,7 +63,7 @@ public:
|
||||
/*!
|
||||
* This method is called by Reactor::evalWalls(). Base class method
|
||||
* does nothing (that is, an adiabatic wall), but may be overloaded.
|
||||
* @deprecated To be removed after Cantera 3.0; replaceable by heatRate.
|
||||
* @deprecated To be removed after %Cantera 3.0; replaceable by heatRate.
|
||||
*/
|
||||
virtual double Q(double t) {
|
||||
warn_deprecated("WallBase::Q",
|
||||
@ -75,7 +75,7 @@ public:
|
||||
/*!
|
||||
* This method is called by Reactor::evalWalls(). Base class method
|
||||
* does nothing (that is, an adiabatic wall), but may be overloaded.
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
virtual double heatRate() {
|
||||
return 0.0;
|
||||
@ -112,7 +112,7 @@ public:
|
||||
|
||||
//! Set current reactor network time
|
||||
/*!
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
void setSimTime(double time) {
|
||||
m_time = time;
|
||||
@ -148,7 +148,7 @@ public:
|
||||
}
|
||||
|
||||
//! Wall velocity \f$ v(t) \f$ at current reactor network time.
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @since New in %Cantera 3.0.
|
||||
double velocity() const;
|
||||
|
||||
//! Set the wall velocity to a specified function of time, \f$ v(t) \f$.
|
||||
@ -183,12 +183,12 @@ public:
|
||||
* and and *F(t)* is a specified function evaluated at the current network time.
|
||||
* Positive values for `expansionRate` correspond to increases in the volume of
|
||||
* reactor on left, and decreases in the volume of the reactor on the right.
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
virtual double expansionRate();
|
||||
|
||||
//! Heat flux function \f$ q_0(t) \f$ evaluated at current reactor network time.
|
||||
//! @since New in Cantera 3.0.
|
||||
//! @since New in %Cantera 3.0.
|
||||
double heatFlux() const;
|
||||
|
||||
//! Specify the heat flux function \f$ q_0(t) \f$.
|
||||
@ -218,7 +218,7 @@ public:
|
||||
* where *h* is the heat transfer coefficient, *A* is the wall area, and
|
||||
* *G(t)* is a specified function of time evaluated at the current network
|
||||
* time. Positive values denote a flux from left to right.
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
virtual double heatRate();
|
||||
|
||||
|
@ -29,7 +29,7 @@ public:
|
||||
//! Create a new wall by type name.
|
||||
/*!
|
||||
* @param wallType the type to be created.
|
||||
* @deprecated To be removed after Cantera 3.0; replaceable by newWall3.
|
||||
* @deprecated To be removed after %Cantera 3.0; replaceable by newWall3.
|
||||
*/
|
||||
virtual WallBase* newWall(const std::string& wallType);
|
||||
|
||||
@ -51,7 +51,7 @@ private:
|
||||
//! @{
|
||||
|
||||
//! Create a WallBase object of the specified type
|
||||
//! @deprecated To be changed after %Cantera 3.0; for new behavior, see newWall3().
|
||||
//! @deprecated To be changed after %Cantera 3.0; for new behavior, see newWall3().
|
||||
WallBase* newWall(const string& model);
|
||||
|
||||
//! Create a WallBase object of the specified type
|
||||
|
@ -77,7 +77,7 @@ public:
|
||||
|
||||
//! Set the primary mass flow controller.
|
||||
/*!
|
||||
* @since New in Cantera 3.0.
|
||||
* @since New in %Cantera 3.0.
|
||||
*/
|
||||
void setPrimary(FlowDevice* primary) {
|
||||
m_primary = primary;
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* @file BoundaryValueProblem.h
|
||||
* Simplified interface to the capabilities provided by Cantera to
|
||||
* Simplified interface to the capabilities provided by %Cantera to
|
||||
* solve boundary value problems.
|
||||
*/
|
||||
|
||||
|
@ -19,10 +19,10 @@ namespace Cantera
|
||||
/*!
|
||||
* @defgroup globalData Global Data
|
||||
*
|
||||
* Global data are available anywhere. There are two kinds. Cantera has an
|
||||
* Global data are available anywhere. There are two kinds. %Cantera has an
|
||||
* assortment of constant values for physical parameters. Also, Cantera
|
||||
* maintains a collection of global data which is specific to each process that
|
||||
* invokes Cantera functions. This process-specific data is stored in the class
|
||||
* invokes %Cantera functions. This process-specific data is stored in the class
|
||||
* Application.
|
||||
*/
|
||||
|
||||
@ -54,7 +54,7 @@ protected:
|
||||
//! throwing an exception.
|
||||
/*!
|
||||
* This routine adds an error message to the end of the stack of errors
|
||||
* that Cantera accumulates in the Application class.
|
||||
* that %Cantera accumulates in the Application class.
|
||||
* @param r Procedure name which is generating the error condition
|
||||
* @param msg Descriptive message of the error condition.
|
||||
*
|
||||
@ -92,7 +92,7 @@ protected:
|
||||
//! Prints all of the error messages to an ostream
|
||||
/*!
|
||||
* Write out all of the saved error messages to the ostream f using
|
||||
* the function Logger::writelog. Cantera saves a stack of exceptions
|
||||
* the function Logger::writelog. %Cantera saves a stack of exceptions
|
||||
* that it has caught in the Application class. This routine writes
|
||||
* out all of the error messages to the ostream and then clears them
|
||||
* from internal storage.
|
||||
@ -117,11 +117,11 @@ protected:
|
||||
//! Write a message to the screen.
|
||||
/*!
|
||||
* The string may be of any length, and may contain end-of-line
|
||||
* characters. This method is used throughout Cantera to write log
|
||||
* characters. This method is used throughout %Cantera to write log
|
||||
* messages. It can also be called by user programs. The advantage of
|
||||
* using writelog over writing directly to the standard output is that
|
||||
* messages written with writelog will display correctly even when
|
||||
* Cantera is used from MATLAB or other application that do not have a
|
||||
* %Cantera is used from MATLAB or other application that do not have a
|
||||
* standard output stream.
|
||||
*
|
||||
* @param msg c++ string to be written to the screen
|
||||
@ -266,10 +266,10 @@ public:
|
||||
*/
|
||||
std::string findInputFile(const std::string& name);
|
||||
|
||||
//! Get the Cantera data directories
|
||||
//! Get the %Cantera data directories
|
||||
/*!
|
||||
* This routine returns a string including the names of all the
|
||||
* directories searched by Cantera for data files.
|
||||
* directories searched by %Cantera for data files.
|
||||
*
|
||||
* @param sep Separator to use between directories in the string
|
||||
* @return A string of directories separated by the input sep
|
||||
@ -287,13 +287,13 @@ public:
|
||||
//! parameter depends on the specific extension interface. For example, for
|
||||
//! Python extensions, this is the name of the Python module containing the
|
||||
//! models.
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
void loadExtension(const std::string& extType, const std::string& name);
|
||||
|
||||
//! Set the versions of Python to try when loading user-defined extensions,
|
||||
//! in order of preference. Separate multiple versions with commas, for example
|
||||
//! `"3.11,3.10"`.
|
||||
//! @since New in Cantera 3.0
|
||||
//! @since New in %Cantera 3.0
|
||||
void searchPythonVersions(const string& versions);
|
||||
|
||||
#ifdef _WIN32
|
||||
@ -354,7 +354,7 @@ public:
|
||||
return m_suppress_warnings;
|
||||
}
|
||||
|
||||
//! Turns Cantera warnings into exceptions. Activated within the test
|
||||
//! Turns %Cantera warnings into exceptions. Activated within the test
|
||||
//! suite to make sure that your warning message are being raised.
|
||||
void make_warnings_fatal() {
|
||||
m_fatal_warnings = true;
|
||||
@ -399,7 +399,7 @@ public:
|
||||
/*!
|
||||
* Delete the memory allocated per thread by Cantera. It should be called
|
||||
* from within the thread just before the thread terminates. If your
|
||||
* version of Cantera has not been specifically compiled for thread safety
|
||||
* version of %Cantera has not been specifically compiled for thread safety
|
||||
* this function does nothing.
|
||||
*/
|
||||
void thread_complete();
|
||||
@ -414,7 +414,7 @@ protected:
|
||||
* be called by user programs.
|
||||
*
|
||||
* The current directory (".") is always searched first. Then, on Windows, the
|
||||
* registry is checked to find the Cantera installation directory, and the
|
||||
* registry is checked to find the %Cantera installation directory, and the
|
||||
* 'data' subdirectory of the installation directory will be added to the search
|
||||
* path.
|
||||
*
|
||||
|
@ -18,7 +18,7 @@ namespace Cantera {
|
||||
* Template for classes to hold pointers to objects. The SharedCabinet<M> class
|
||||
* maintains a list of pointers to objects of class M (or of subclasses of M). These
|
||||
* classes are used by the 'clib' interface library functions that provide access to
|
||||
* Cantera C++ objects from outside C++. To refer to an existing object, the library
|
||||
* %Cantera C++ objects from outside C++. To refer to an existing object, the library
|
||||
* functions take an integer argument that specifies the location in the pointer list
|
||||
* maintained by the appropriate SharedCabinet<M> instance. The pointer is retrieved
|
||||
* from the list by the interface function, the desired method is invoked, and the
|
||||
|
Loading…
Reference in New Issue
Block a user