Cantera  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 "SurfPhase.h"
13 
14 namespace Cantera
15 {
16 
17 //! A thermodynamic phase representing a one dimensional edge between two
18 //! surfaces.
19 /*!
20  * This thermodynamic function is largely a wrapper around the SurfPhase
21  * thermodynamic object.
22  *
23  * All of the equations and formulations carry through from SurfPhase to this
24  * EdgePhase object. It should be noted however, that dimensional object with
25  * length dimensions, have their dimensions reduced by one.
26  *
27  * @ingroup thermoprops
28  */
29 class EdgePhase : public SurfPhase
30 {
31 public:
32  //! Constructor
33  /*!
34  * @param n0 Surface site density (kmol m-1).
35  */
36  EdgePhase(doublereal n0=1.0);
37 
38  //! Copy Constructor
39  /*!
40  * @param right Object to be copied
41  */
42  EdgePhase(const EdgePhase& right);
43 
44  //! Assignment Operator
45  /*!
46  * @param right Object to be copied
47  */
48  EdgePhase& operator=(const EdgePhase& right);
49 
50  //! Duplicator from a ThermoPhase object
52 
53  //! returns the equation of state type
54  virtual int eosType() const {
55  return cEdge;
56  }
57 
58  //! Set the Equation-of-State parameters by reading an XML Node Input
59  /*!
60  * The Equation-of-State data consists of one item, the site density.
61  *
62  * @param thermoData Reference to an XML_Node named thermo
63  * containing the equation-of-state data. The
64  * XML_Node is within the phase XML_Node describing
65  * the EdgePhase object.
66  *
67  * An example of the contents of the thermoData XML_Node is provided
68  * below. The units attribute is used to supply the units of the
69  * site density in any convenient form. Internally it is changed
70  * into MKS form.
71  *
72  * @code
73  * <thermo model="Edge">
74  * <site_density units="mol/cm"> 3e-15 </site_density>
75  * </thermo>
76  * @endcode
77  */
78  virtual void setParametersFromXML(const XML_Node& thermoData);
79 };
80 }
81 
82 #endif
ThermoPhase * duplMyselfAsThermoPhase() const
Duplicator from a ThermoPhase object.
Definition: SurfPhase.cpp:409
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:97
EdgePhase & operator=(const EdgePhase &right)
Assignment Operator.
Definition: SurfPhase.cpp:400
A thermodynamic phase representing a one dimensional edge between two surfaces.
Definition: EdgePhase.h:29
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:414
virtual int eosType() const
returns the equation of state type
Definition: EdgePhase.h:54
EdgePhase(doublereal n0=1.0)
Constructor.
Definition: SurfPhase.cpp:388