46#include <blitz/array.h>
119 const real fieldValue;
136 const real fieldValue;
183 const real fieldValue;
200 const real fieldValue;
217 blitz::Array<bool, 3> wallMask;
218 blitz::Array<real, 3> wallData;
220 blitz::Array<real, 1> x, y, z;
221 blitz::Array<real, 1> xGlo, yGlo, zGlo;
223 const real patchRadius;
227 void createPatch(real patchRadius);
Contains all the global variables related to the imposing of boundary conditions, and functions to im...
Definition: boundary.h:51
const grid & mesh
A const reference to the global variables stored in the grid class to access mesh data.
Definition: boundary.h:59
bool rankFlag
The flag is true for MPI ranks on which the boundary condition has to be applied.
Definition: boundary.h:65
int shiftVal
The number of points by which the view of the wall slice is shifted to when applying the boundary con...
Definition: boundary.h:74
field & dField
Reference to the field onto which the boundary condition has to be applied.
Definition: boundary.h:62
int shiftDim
Denotes the dimension normal to the wall at which the boundary condition is applied.
Definition: boundary.h:71
virtual void imposeBC()
Prototype function to impose the boundary conditions on the given field.
Definition: boundary.cc:101
const int wallNum
The const integer denotes the wall at which the boundary condition is being applied.
Definition: boundary.h:68
boundary(const grid &mesh, field &inField, const int bcWall)
Constructor of the boundary class.
Definition: boundary.cc:57
The derived class from boundary to apply dirichlet boundary condition for a cell-centered variable.
Definition: boundary.h:113
dirichletCC(const grid &mesh, field &inField, const int bcWall, const real bcValue)
Constructor of the dirichletCC class.
Definition: dirichletCC.cc:58
void imposeBC()
Function to impose Dirichlet BC on a cell centered variable.
Definition: dirichletCC.cc:71
The derived class from boundary to apply dirichlet boundary condition for a face-centered variable.
Definition: boundary.h:130
dirichletFC(const grid &mesh, field &inField, const int bcWall, const real bcValue)
Constructor of the boundary class.
Definition: dirichletFC.cc:58
void imposeBC()
Function to impose Dirichlet BC on a face centered variable.
Definition: dirichletFC.cc:71
Field class to store data and perform finite difference operations on the data.
Definition: field.h:52
Contains all the global variables related to the grid, its slices, limits, and grid derivatives used ...
Definition: grid.h:53
The derived class from boundary to apply mixed boundary condition involving a heated plate for a cell...
Definition: boundary.h:211
hotPlateCC(const grid &mesh, field &inField, const int bcWall, const real plateRad)
Constructor of the hotPlateCC class.
Definition: hotPlateCC.cc:58
void imposeBC()
Function to impose Mixed BC of a heating plate on a cell centered variable.
Definition: hotPlateCC.cc:128
The derived class from boundary to apply neumann boundary condition for a cell-centered variable.
Definition: boundary.h:177
void imposeBC()
Function to impose Neumann BC on a cell centered variable.
Definition: neumannCC.cc:71
neumannCC(const grid &mesh, field &inField, const int bcWall, const real bcValue)
Constructor of the neumannCC class.
Definition: neumannCC.cc:58
The derived class from boundary to apply neumann boundary condition for a face-centered variable.
Definition: boundary.h:194
neumannFC(const grid &mesh, field &inField, const int bcWall, const real bcValue)
Constructor of the neumannFC class.
Definition: neumannFC.cc:58
void imposeBC()
Function to impose Neumann BC on a face centered variable.
Definition: neumannFC.cc:71
The derived class from boundary to impose null boundary condition that leaves the data unchanged.
Definition: boundary.h:238
void imposeBC()
Prototype function to impose the boundary conditions on the given field.
Definition: boundary.h:242
The derived class from boundary to apply periodic boundary condition for a cell-centered variable.
Definition: boundary.h:147
periodicCC(const grid &mesh, field &inField, const int bcWall)
Constructor of the periodicCC class.
Definition: periodicCC.cc:57
void imposeBC()
Function to impose periodic BC on a cell centered variable.
Definition: periodicCC.cc:72
The derived class from boundary to apply periodic boundary condition for a face-centered variable.
Definition: boundary.h:162
periodicFC(const grid &mesh, field &inField, const int bcWall)
Constructor of the periodicFC class.
Definition: periodicFC.cc:57
void imposeBC()
Function to impose periodic BC on a face centered variable.
Definition: periodicFC.cc:72
Class declaration of field.
Class declaration of grid.