Overture  Version 25
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 
11 {
12  public:
13 
15  BodyDefinition( const BodyDefinition & bd );
16 
18 
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 
49 
50  friend class Integrate; // fix this
51  friend class CutCells;
52 };
53 
54 #endif