Overture  Version 25
BCTypes.h
Go to the documentation of this file.
1 #ifndef BCTypes_H
2 #define BCTypes_H
3 
4 // The only purpose of this class is to hold the names of the
5 // Elementary Boundary Condition Types
6 class BCTypes
7 {
8 public:
9  // **** remember to also change GenericMappedGridOperators.h ****
10  // and assignBoundaryConditions.bf
11  enum BCNames
12  {
48  numberOfDifferentBoundaryConditionTypes, // counts number of entries in this list
49  allBoundaries=-99999, // default argument
50  boundary1=allBoundaries+1, // (side,axis)=(0,0)
51  boundary2=boundary1+1, // (side,axis)=(1,0)
52  boundary3=boundary2+1, // (side,axis)=(0,1)
53  boundary4=boundary3+1, // (side,axis)=(1,1)
54  boundary5=boundary4+1, // (side,axis)=(0,2)
55  boundary6=boundary5+1 // (side,axis)=(1,2)
56  };
57  BCTypes() {}
58  ~BCTypes() {}
59 
60  // return the BCNames values for a given face of a grid (side,axis)
61  static BCNames boundary(int side, int axis) {return BCNames(boundary1+side+2*axis); }
62 
63 
64 };
65 
66 
67 #endif