CG  Version 25
BoundaryData.h
Go to the documentation of this file.
1 #ifndef BOUNDARY_DATA_H
2 #define BOUNDARY_DATA_H
3 
4 #include "Overture.h"
5 #define KK_DEBUG
6 #include "DBase.hh"
7 using namespace DBase;
8 
9 // Here is a little class used to hold the boundary data for boundary conditions
11 {
12 public:
13 
14 BoundaryData();
15 
16 ~BoundaryData();
17 
18 BoundaryData(const BoundaryData & x);
19 
20 BoundaryData & operator=(const BoundaryData & x);
21 
22 typedef RealArray *BoundaryDataArray[2][3];
23 BoundaryDataArray boundaryData;
24 
26 {
27  variableCoefficientTemperatureBC=1, // bit 0
28  variableCoefficientOutflowBC = variableCoefficientTemperatureBC << 1 // bit 1
29 };
30 
31 // Return the bit flag which indicates which variable coefficient boundary conditions are defined.
32 int
34  return pHasVariableCoefficientBoundaryCondition[(side)+2*(axis)]; }
35 
36 RealArray&
37 getVariableCoefficientBoundaryConditionArray( VariableCoefficientBoundaryConditionEnum option, int side, int axis );
38 
39 protected:
40 
41 // This is a bit flag indicating which variable coefficient boundary conditions exist on a face:
42 int pHasVariableCoefficientBoundaryCondition[6];
43 
44 DataBase dbase;
45 
46 };
47 
48 #endif
49