Cantera  2.3.0
EdgePhase.h
Go to the documentation of this file.
1 /**
2  * @file EdgePhase.h Declarations for the EdgePhase ThermoPhase object, which
3  * models the interface between two surfaces (see \ref thermoprops and
4  * \link Cantera::EdgePhase EdgePhase\endlink).
5  */
6 
7 // This file is part of Cantera. See License.txt in the top-level directory or
8 // at http://www.cantera.org/license.txt for license and copyright information.
9 
10 #ifndef CT_EDGEPHASE_H
11 #define CT_EDGEPHASE_H
12 
13 #include "SurfPhase.h"
14 
15 namespace Cantera
16 {
17 
18 //! A thermodynamic phase representing a one dimensional edge between two
19 //! surfaces.
20 /*!
21  * This thermodynamic function is largely a wrapper around the SurfPhase
22  * thermodynamic object.
23  *
24  * All of the equations and formulations carry through from SurfPhase to this
25  * EdgePhase object. It should be noted however, that dimensional object with
26  * length dimensions, have their dimensions reduced by one.
27  *
28  * @ingroup thermoprops
29  */
30 class EdgePhase : public SurfPhase
31 {
32 public:
33  //! Constructor
34  /*!
35  * @param n0 Surface site density (kmol m-1).
36  */
37  EdgePhase(doublereal n0=1.0);
38 
39  EdgePhase(const EdgePhase& right);
40  EdgePhase& operator=(const EdgePhase& right);
41  virtual ThermoPhase* duplMyselfAsThermoPhase() const;
42 
43  virtual int eosType() const {
44  warn_deprecated("EdgePhase::eosType",
45  "To be removed after Cantera 2.3.");
46  return cEdge;
47  }
48  virtual std::string type() const {
49  return "Edge";
50  }
51 
52  //! Set the Equation-of-State parameters by reading an XML Node Input
53  /*!
54  * The Equation-of-State data consists of one item, the site density.
55  *
56  * @param thermoData Reference to an XML_Node named thermo containing the
57  * equation-of-state data. The XML_Node is within the
58  * phase XML_Node describing the EdgePhase object.
59  *
60  * An example of the contents of the thermoData XML_Node is provided below.
61  * The units attribute is used to supply the units of the site density in
62  * any convenient form. Internally it is changed into MKS form.
63  *
64  * @code
65  * <thermo model="Edge">
66  * <site_density units="mol/cm"> 3e-15 </site_density>
67  * </thermo>
68  * @endcode
69  */
70  virtual void setParametersFromXML(const XML_Node& thermoData);
71 };
72 }
73 
74 #endif
Header for a simple thermodynamics model of a surface phase derived from ThermoPhase, assuming an ideal solution model (see Thermodynamic Properties and class SurfPhase).
virtual int eosType() const
Equation of state type flag.
Definition: EdgePhase.h:43
Class XML_Node is a tree-based representation of the contents of an XML file.
Definition: xml.h:97
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
Definition: global.cpp:54
virtual std::string type() const
String indicating the thermodynamic model implemented.
Definition: EdgePhase.h:48
virtual ThermoPhase * duplMyselfAsThermoPhase() const
Duplication routine for objects which inherit from ThermoPhase.
Definition: SurfPhase.cpp:378
Base class for a phase with thermodynamic properties.
Definition: ThermoPhase.h:93
A thermodynamic phase representing a one dimensional edge between two surfaces.
Definition: EdgePhase.h:30
A simple thermodynamic model for a surface phase, assuming an ideal solution model.
Definition: SurfPhase.h:143
const int cEdge
An edge between two 2D surfaces.
Definition: mix_defs.h:58
virtual void setParametersFromXML(const XML_Node &thermoData)
Set the Equation-of-State parameters by reading an XML Node Input.
Definition: SurfPhase.cpp:383
EdgePhase(doublereal n0=1.0)
Constructor.
Definition: SurfPhase.cpp:357
Namespace for the Cantera kernel.
Definition: application.cpp:29