CG
Version 25
Main Page
Namespaces
Classes
Files
File List
File Members
cg.v25
common
src
SurfaceEquation.h
Go to the documentation of this file.
1
#ifndef SURFACE_EQUATION_H
2
#define SURFACE_EQUATION_H
3
4
#include "Overture.h"
5
#include "
Parameters.h
"
6
#include "GenericGraphicsInterface.h"
7
8
#ifndef OV_USE_OLD_STL_HEADERS
9
#include <vector>
10
#include <list>
11
#else
12
#include <vector.h>
13
#include <list.h>
14
#endif
15
16
// This little class holds the information about a face where the surface equation is applied.
17
class
SurfaceEquationFace
18
{
19
public
:
20
SurfaceEquationFace
();
21
SurfaceEquationFace
(
int
grid
,
int
side
,
int
axis
);
22
int
operator ==
(
const
SurfaceEquationFace
& face )
const
;
23
24
int
grid
,
side
,
axis
;
25
26
};
27
28
29
// This class keeps track of all the faces where a surface equation is applied.
30
class
SurfaceEquation
31
{
32
public
:
33
34
enum
SurfaceEquationType
35
{
36
heatEquation
=0,
37
numberOfEquationTypes
38
};
39
40
41
SurfaceEquation
();
42
~SurfaceEquation
();
43
44
SurfaceEquationType
getSurfaceEquationType
()
const
;
45
int
setSurfaceEquationType
(
SurfaceEquationType
type);
46
47
int
48
update
(CompositeGrid &
cg
,
const
IntegerArray & originalBoundaryCondition,
49
GenericGraphicsInterface & gi,
50
const
aString & command =nullString,
51
DialogData *interface=NULL );
52
53
54
std::vector<SurfaceEquationFace>
faceList
;
// list of faces of grids where the surface equation applies.
55
56
57
int
numberOfSurfaceEquationVariables
;
58
real
kThermal
,
Cp
,
rho
;
59
60
61
protected
:
62
63
SurfaceEquationType
surfaceEquationType
;
64
65
};
66
67
68
69
#endif
Generated on Fri Jan 4 2013 10:19:29 for CG by
1.8.3