Overture
Version 25
Main Page
Namespaces
Classes
Files
File List
File Members
Overture.v25.d
include
BodyDefinition.h
Go to the documentation of this file.
1
#ifndef BODY_DEFINITION_H
2
#define BODY_DEFINITION_H "BodyDefinition.h"
3
4
// =======================================================================================
5
// Use this class to define the relationship between a body and a grid.
6
// =======================================================================================
7
8
#include "
Overture.h
"
9
10
class
BodyDefinition
11
{
12
public
:
13
14
BodyDefinition
();
15
BodyDefinition
(
const
BodyDefinition
& bd );
16
17
~BodyDefinition
();
18
19
BodyDefinition
&
operator =
(
const
BodyDefinition
& x0 );
20
21
int
defineSurface
(
const
int
& surfaceNumber,
const
int
& numberOfFaces_,
IntegerArray
& boundary );
22
23
// get from a database file:
24
int
get
(
const
GenericDataBase
& dir,
const
aString
& name);
25
26
int
getFace
(
int
surfaceNumber,
int
face,
int
& side,
int
& axis,
int
& grid)
const
;
27
28
int
getSurface
(
const
int
& surfaceNumber,
int
& numberOfFaces_,
IntegerArray
& boundary )
const
;
29
30
int
getSurfaceNumber
(
const
int
surface )
const
;
31
32
int
numberOfFacesOnASurface
(
int
surfaceNumber)
const
;
33
34
// put to a database file:
35
int
put
(
GenericDataBase
& dir,
const
aString
& name)
const
;
36
37
int
totalNumberOfSurfaces
()
const
;
38
39
protected
:
40
41
int
initialize
();
42
int
surfaceIndex
(
int
surfaceNumber )
const
;
43
44
aString
className
;
// Name of the Class
45
46
int
numberOfSurfaces
,
maximumNumberOfFaces
;
47
IntegerArray
surfaceIdentifier
,
numberOfFaces
;
48
IntegerArray
boundaryFaces
;
49
50
friend
class
Integrate
;
// fix this
51
friend
class
CutCells
;
52
};
53
54
#endif
Generated on Fri Jan 4 2013 10:17:48 for Overture by
1.8.3