Cantera
2.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
include
cantera
thermo
EdgePhase.h
Go to the documentation of this file.
1
/**
2
* @file EdgePhase.h
3
* Declarations for the EdgePhase ThermoPhase object, which models the interface
4
* between two surfaces (see \ref thermoprops and \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 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.
26
* It should be noted however, that dimensional object with length dimensions,
27
* have their dimensions reduced by one.
28
*
29
* @ingroup thermoprops
30
*/
31
class
EdgePhase
:
public
SurfPhase
32
{
33
34
public
:
35
36
//! Constructor
37
/*!
38
* @param n0 Surface site density (kmol m-1).
39
*/
40
EdgePhase
(doublereal n0 = 0.0);
41
42
//! Copy Constructor
43
/*!
44
* @param right Object to be copied
45
*/
46
EdgePhase
(
const
EdgePhase
& right);
47
48
//! Assignment Operator
49
/*!
50
* @param right Object to be copied
51
*/
52
EdgePhase
&
operator=
(
const
EdgePhase
& right);
53
54
//! Destructor
55
virtual
~EdgePhase
() {}
56
57
//! Duplicator from a ThermoPhase object
58
ThermoPhase
*
duplMyselfAsThermoPhase
()
const
;
59
60
//! returns the equation of state type
61
virtual
int
eosType
()
const
{
62
return
cEdge
;
63
}
64
65
66
//! Set the Equation-of-State parameters by reading an XML Node Input
67
/*!
68
*
69
* The Equation-of-State data consists of one item, the site density.
70
*
71
* @param thermoData Reference to an XML_Node named thermo
72
* containing the equation-of-state data. The
73
* XML_Node is within the phase XML_Node describing
74
* the %EdgePhase object.
75
*
76
* An example of the contents of the thermoData XML_Node is provided
77
* below. The units attribute is used to supply the units of the
78
* site density in any convenient form. Internally it is changed
79
* into MKS form.
80
*
81
* @code
82
* <thermo model="Edge">
83
* <site_density units="mol/cm"> 3e-15 </site_density>
84
* </thermo>
85
* @endcode
86
*/
87
virtual
void
setParametersFromXML
(
const
XML_Node
& thermoData);
88
};
89
}
90
91
#endif
92
93
Generated by
1.8.2