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

The derived class from boundary to apply mixed boundary condition involving a heated plate for a cell-centered variable. More...

#include "lib/boundary/boundary.h"

Inheritance diagram for hotPlateCC:
boundary

Public Member Functions

 hotPlateCC (const grid &mesh, field &inField, const int bcWall, const real plateRad)
 Constructor of the hotPlateCC class. More...
 
void imposeBC ()
 Function to impose Mixed BC of a heating plate on a cell centered variable. 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 apply mixed boundary condition involving a heated plate for a cell-centered variable.

Constructor & Destructor Documentation

◆ hotPlateCC()

hotPlateCC::hotPlateCC ( const grid mesh,
field inField,
const int  bcWall,
const real  plateRad 
)

Constructor of the hotPlateCC class.

     The constructor initializes the base boundary class using part of the arguments supplied to it.
     The radius of the heating plate, denoted by patchRadius, is also set in the initialization list.
Parameters
meshis a const reference to the global data contained in the grid class
inFieldis a reference to scalar field to which the boundary conditions must be applied.
bcWallis a const integer which specifies the wall to which the BC must be applied.
plateRadis the const real value of the radius of the heating plate.

Member Function Documentation

◆ imposeBC()

void hotPlateCC::imposeBC ( )
virtual

Function to impose Mixed BC of a heating plate on a cell centered variable.

     For Saras solver, the wall passes through the cell centers of the variables.
     Hence the variable is lying on the wall for this case.
     Accordingly the value of the variable is directly set to 1.0 on the conducting sections of the wall.
     At the rest of the wall, Neumann BC is imposed using a boolean wallMask variable.

Reimplemented from boundary.


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