Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

DomainGhostBC Class Reference

#include <GhostBC.H>

Collaboration diagram for DomainGhostBC:

Collaboration graph
[legend]
List of all members.

Detailed Description

Class to enforce ghost-cell based boundary conditions.

This class holds a domain's worth of boxghostbcs, one for each face. The user adds a BoxGhostBC-derived object for each face to enforce boundary conditions. If the solution is phi and the face normal direction is x, the boundary conditions at a face may often be expressed as A*phi + B*dphi/dx = C. The class derived from BoxGhostBC provides a function to to fill A B and C. DomainGhostBC calls this function and fills the ghost cells outside the domain appropriately.


Public Member Functions

 DomainGhostBC ()
 ~DomainGhostBC ()
void setBoxGhostBC (const BoxGhostBC &ghost_bc)
 Set boundary conditions at a face to those defined in ghost_bc.
const BoxGhostBCoperator() (int direction, Side::LoHiSide side) const
 Access function -- returns a reference to the BC on the given face.
void applyHomogeneousBCs (FArrayBox &state, const Box &Domain, Real dx) const
 Deprecated function -- use ProblemDomain instead of a Box for the domain.
void applyHomogeneousBCs (FArrayBox &state, const ProblemDomain &Domain, Real dx) const
 apply boundary conditions on all sides of state which abut domain edge
void applyInhomogeneousBCs (FArrayBox &state, const Box &Domain, Real dx) const
 Deprecated function -- use ProblemDomain instead of a Box for the domain.
void applyInhomogeneousBCs (FArrayBox &state, const ProblemDomain &Domain, Real dx) const
 Apply boundary conditions on all sides of state which abut the domain edge *.
DomainGhostBCoperator= (const DomainGhostBC &)
 Assignment operator.
 DomainGhostBC (const DomainGhostBC &)
 Copy constructor.

Protected Member Functions

bool isBCDefined (const int a_dir, const Side::LoHiSide a_side) const
void resetBoxGhostBC (const int a_dir, const Side::LoHiSide a_side)

Protected Attributes

Tuple< BoxGhostBC *, SpaceDimm_loGhostBC
Tuple< BoxGhostBC *, SpaceDimm_hiGhostBC


Constructor & Destructor Documentation

DomainGhostBC::DomainGhostBC  ) 
 

DomainGhostBC::~DomainGhostBC  ) 
 

DomainGhostBC::DomainGhostBC const DomainGhostBC  ) 
 

Copy constructor.


Member Function Documentation

void DomainGhostBC::setBoxGhostBC const BoxGhostBC ghost_bc  ) 
 

Set boundary conditions at a face to those defined in ghost_bc.

const BoxGhostBC& DomainGhostBC::operator() int  direction,
Side::LoHiSide  side
const
 

Access function -- returns a reference to the BC on the given face.

void DomainGhostBC::applyHomogeneousBCs FArrayBox state,
const Box Domain,
Real  dx
const
 

Deprecated function -- use ProblemDomain instead of a Box for the domain.

void DomainGhostBC::applyHomogeneousBCs FArrayBox state,
const ProblemDomain Domain,
Real  dx
const
 

apply boundary conditions on all sides of state which abut domain edge

void DomainGhostBC::applyInhomogeneousBCs FArrayBox state,
const Box Domain,
Real  dx
const
 

Deprecated function -- use ProblemDomain instead of a Box for the domain.

void DomainGhostBC::applyInhomogeneousBCs FArrayBox state,
const ProblemDomain Domain,
Real  dx
const
 

Apply boundary conditions on all sides of state which abut the domain edge *.

DomainGhostBC& DomainGhostBC::operator= const DomainGhostBC  ) 
 

Assignment operator.

bool DomainGhostBC::isBCDefined const int  a_dir,
const Side::LoHiSide  a_side
const [protected]
 

Returns true if this GhostBC is defined

void DomainGhostBC::resetBoxGhostBC const int  a_dir,
const Side::LoHiSide  a_side
[protected]
 

Resets BC in the given direction and side to an unset state


Member Data Documentation

Tuple<BoxGhostBC*, SpaceDim> DomainGhostBC::m_loGhostBC [protected]
 

Contains the lo-side boundary conditions

Tuple<BoxGhostBC*, SpaceDim> DomainGhostBC::m_hiGhostBC [protected]
 

Contains the hi-side boundary conditions


The documentation for this class was generated from the following file:
Generated on Thu May 12 18:21:10 2005 for Chombo by doxygen 1.3.8