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

RegDomainGhostBC Class Reference

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

#include <RegGhostBC.H>

Collaboration diagram for RegDomainGhostBC:

Collaboration graph
[legend]
List of all members.

Public Methods

 RegDomainGhostBC ()
 RegDomainGhostBC (const RegDomainGhostBC &a_dgbcin)
 ~RegDomainGhostBC ()
RegDomainGhostBC & operator= (const RegDomainGhostBC &a_dgbcin)
const RegBoxGhostBCoperator() (int a_direction, Side::LoHiSide a_side) const
void setBoxGhostBC (const RegBoxGhostBC &a_ghostBC)
void applyHomogeneousBCs (FArrayBox &a_state, const Box &a_domain, Real a_dx) const
void applyHomogeneousBCs (FArrayBox &a_state, const ProblemDomain &a_domain, Real a_dx) const
void applyInhomogeneousBCs (FArrayBox &a_state, const Box &a_domain, Real a_dx) const
void applyInhomogeneousBCs (FArrayBox &a_state, const ProblemDomain &a_domain, Real a_dx) const

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< RegBoxGhostBC *, SpaceDimm_loGhostBC
Tuple< RegBoxGhostBC *, 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 RegBoxGhostBC-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 RegBoxGhostBC provides a function to to fill A B and C. RegDomainGhostBC calls this function and fills the ghost cells outside the domain appropriately.


Constructor & Destructor Documentation

RegDomainGhostBC::RegDomainGhostBC  
 

RegDomainGhostBC::RegDomainGhostBC const RegDomainGhostBC &    a_dgbcin
 

RegDomainGhostBC::~RegDomainGhostBC  
 


Member Function Documentation

void RegDomainGhostBC::applyHomogeneousBCs FArrayBox   a_state,
const ProblemDomain   a_domain,
Real    a_dx
const
 

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

void RegDomainGhostBC::applyHomogeneousBCs FArrayBox   a_state,
const Box   a_domain,
Real    a_dx
const
 

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

void RegDomainGhostBC::applyInhomogeneousBCs FArrayBox   a_state,
const ProblemDomain   a_domain,
Real    a_dx
const
 

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

void RegDomainGhostBC::applyInhomogeneousBCs FArrayBox   a_state,
const Box   a_domain,
Real    a_dx
const
 

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

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

returns true if this GhostBC is defined

const RegBoxGhostBC& RegDomainGhostBC::operator() int    a_direction,
Side::LoHiSide    a_side
const
 

RegDomainGhostBC& RegDomainGhostBC::operator= const RegDomainGhostBC &    a_dgbcin
 

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

void RegDomainGhostBC::setBoxGhostBC const RegBoxGhostBC   a_ghostBC
 

Set boundary conditions at a face with ghostBc.


Member Data Documentation

Tuple<RegBoxGhostBC*, SpaceDim> RegDomainGhostBC::m_hiGhostBC [protected]
 

Tuple<RegBoxGhostBC*, SpaceDim> RegDomainGhostBC::m_loGhostBC [protected]
 


The documentation for this class was generated from the following file:
Generated on Wed Apr 16 14:35:29 2003 for EBChombo by doxygen1.2.16