Cantera  2.1.2
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 // Copyright 2002 California Institute of Technology
8 
9 #ifndef CT_EDGEPHASE_H
10 #define CT_EDGEPHASE_H
11 
12 #include "mix_defs.h"
13 #include "ThermoPhase.h"
14 #include "SurfPhase.h"
15 
16 namespace Cantera
17 {
18 
19 //! A thermodynamic phase representing a one dimensional edge between two
20 //! surfaces.
21 /*!
22  * This thermodynamic function is largely a wrapper around the SurfPhase
23  * thermodynamic object.
24  *
25  * All of the equations and formulations carry through from SurfPhase to this
26  * EdgePhase object. It should be noted however, that dimensional object with
27  * length dimensions, have their dimensions reduced by one.
28  *
29  * @ingroup thermoprops
30  */
31 class EdgePhase : public SurfPhase
32 {
33 public:
34  //! Constructor
35  /*!
36  * @param n0 Surface site density (kmol m-1).
37  */
38  EdgePhase(doublereal n0 = 0.0);
39 
40  //! Copy Constructor
41  /*!
42  * @param right Object to be copied
43  */
44  EdgePhase(const EdgePhase& right);
45 
46  //! Assignment Operator
47  /*!
48  * @param right Object to be copied
49  */
50  EdgePhase& operator=(const EdgePhase& right);
51 
52  //! Duplicator from a ThermoPhase object
54 
55  //! returns the equation of state type
56  virtual int eosType() const {
57  return cEdge;
58  }
59 
60  //! Set the Equation-of-State parameters by reading an XML Node Input
61  /*!
62  * The Equation-of-State data consists of one item, the site density.
63  *
64  * @param thermoData Reference to an XML_Node named thermo
65  * containing the equation-of-state data. The
66  * XML_Node is within the phase XML_Node describing
67  * the %EdgePhase object.
68  *
69  * An example of the contents of the thermoData XML_Node is provided
70  * below. The units attribute is used to supply the units of the
71  * site density in any convenient form. Internally it is changed
72  * into MKS form.
73  *
74  * @code
75  * <thermo model="Edge">
76  * <site_density units="mol/cm"> 3e-15 </site_density>
77  * </thermo>
78  * @endcode
79  */
80  virtual void setParametersFromXML(const XML_Node& thermoData);
81 };
82 }
83 
84 #endif
ThermoPhase * duplMyselfAsThermoPhase() const
Duplicator from a ThermoPhase object.
Definition: SurfPhase.cpp:411
Header for a simple thermodynamics model of a surface phase derived from ThermoPhase, assuming an ideal solution model (see Thermodynamic Properties and class SurfPhase).
Class XML_Node is a tree-based representation of the contents of an XML file.
Definition: xml.h:100
Base class for a phase with thermodynamic properties.
Definition: ThermoPhase.h:101
EdgePhase & operator=(const EdgePhase &right)
Assignment Operator.
Definition: SurfPhase.cpp:402
A thermodynamic phase representing a one dimensional edge between two surfaces.
Definition: EdgePhase.h:31
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:416
virtual int eosType() const
returns the equation of state type
Definition: EdgePhase.h:56
EdgePhase(doublereal n0=0.0)
Constructor.
Definition: SurfPhase.cpp:390
Header file for class ThermoPhase, the base class for phases with thermodynamic properties, and the text for the Module thermoprops (see Thermodynamic Properties and class ThermoPhase).