Saras
Finite   Difference   Solver   for   Fluid   Dynamics   Simulations
Public Member Functions | List of all members
nullBC Class Reference

The derived class from boundary to impose null boundary condition that leaves the data unchanged. More...

#include "lib/boundary/boundary.h"

Inheritance diagram for nullBC:
boundary

Public Member Functions

 nullBC (const grid &mesh, field &inField, const int bcWall)
 
void imposeBC ()
 Prototype function to impose the boundary conditions on the given field. More...
 
- Public Member Functions inherited from boundary
 boundary (const grid &mesh, field &inField, const int bcWall)
 Constructor of the boundary class. More...
 

Additional Inherited Members

- Protected Attributes inherited from boundary
const gridmesh
 A const reference to the global variables stored in the grid class to access mesh data.
 
fielddField
 Reference to the field onto which the boundary condition has to be applied.
 
bool rankFlag
 The flag is true for MPI ranks on which the boundary condition has to be applied.
 
const int wallNum
 The const integer denotes the wall at which the boundary condition is being applied.
 
int shiftDim
 Denotes the dimension normal to the wall at which the boundary condition is applied.
 
int shiftVal
 The number of points by which the view of the wall slice is shifted to when applying the boundary condition.
 

Detailed Description

The derived class from boundary to impose null boundary condition that leaves the data unchanged.

Member Function Documentation

◆ imposeBC()

void nullBC::imposeBC ( )
inlinevirtual

Prototype function to impose the boundary conditions on the given field.

     Based on the values of wallNum, shiftDim, shiftVal and fieldVal, the appropriate BC (neumann/dirichlet/mixed)
     is imposed on the field.

Reimplemented from boundary.


The documentation for this class was generated from the following file: