Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

DomainGhostBC Class Reference

Class to enforce ghost-cell based boundary conditions. More...

#include <GhostBC.H>

Collaboration diagram for DomainGhostBC:

Collaboration graph
[legend]
List of all members.

Public Methods

 DomainGhostBC ()
 ~DomainGhostBC ()
void setBoxGhostBC (const BoxGhostBC &ghost_bc)
const BoxGhostBCoperator() (int direction, Side::LoHiSide side) const
void applyHomogeneousBCs (FArrayBox &state, const Box &Domain, Real dx) const
void applyHomogeneousBCs (FArrayBox &state, const ProblemDomain &Domain, Real dx) const
void applyInhomogeneousBCs (FArrayBox &state, const Box &Domain, Real dx) const
void applyInhomogeneousBCs (FArrayBox &state, const ProblemDomain &Domain, Real dx) const
DomainGhostBC & operator= (const DomainGhostBC &)
 DomainGhostBC (const DomainGhostBC &)

Protected Methods

bool isBCDefined (const int a_dir, const Side::LoHiSide a_side) const
 returns true if this GhostBC is defined

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

Protected Attributes

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

Detailed Description

Class to enforce ghost-cell based boundary conditions.

This class which holds a domain's worth of boxghostbcs, one for each face. The user adds a BoxGhostBC-derived 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 are 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.


Constructor & Destructor Documentation

DomainGhostBC::DomainGhostBC  
 

DomainGhostBC::~DomainGhostBC  
 

DomainGhostBC::DomainGhostBC const DomainGhostBC &   
 


Member Function Documentation

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

apply boundary conditions on all sides compares sides of state to domain.

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

apply boundary conditions on all sides compares sides of state to domain.

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

apply boundary conditions on all sides compares sides of state to domain.

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

apply boundary conditions on all sides compares sides of state to domain.

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

returns true if this GhostBC is defined

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

DomainGhostBC& DomainGhostBC::operator= const DomainGhostBC &   
 

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

void DomainGhostBC::setBoxGhostBC const BoxGhostBC   ghost_bc
 

Set boundary conditions at a face with ghost_bc.


Member Data Documentation

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

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


The documentation for this class was generated from the following file:
Generated on Wed Apr 16 14:27:39 2003 for Chombo by doxygen1.2.16