class DomainGhostBC

Class to enforce ghost-cell based boundary conditions

Inheritance:

DomainGhostBC


public members:

DomainGhostBC()
~DomainGhostBC()
void setBoxGhostBC(const BoxGhostBC & ghost_bc)
const BoxGhostBC & operator() (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 members:

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

Documentation

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.
void setBoxGhostBC (const BoxGhostBC & ghost_bc)
Set boundary conditions at a face with ghost_bc.

void applyHomogeneousBCs ( FArrayBox & state, const Box& Domain, Real dx) const
apply boundary conditions on all sides compares sides of state to domain.

void applyHomogeneousBCs ( FArrayBox & state, const ProblemDomain & Domain, Real dx) const
apply boundary conditions on all sides compares sides of state to domain.

void applyInhomogeneousBCs ( FArrayBox & state, const Box& Domain, Real dx) const
apply boundary conditions on all sides compares sides of state to domain.

void applyInhomogeneousBCs ( FArrayBox & state, const ProblemDomain & Domain, Real dx) const
apply boundary conditions on all sides compares sides of state to domain.


this class has no child classes.

alphabetic index hierarchy of classes


Chombo

Copyright Notice

This software is copyright (C) by the Lawrence Berkeley National Laboratory. Permission is granted to reproduce this software for non-commercial purposes provided that this notice is left intact.

It is acknowledged that the U.S. Government has rights to this software under Contract DE-AC03-765F00098 between the U.S. Department of Energy and the University of California.

This software is provided as a professional and academic contribution for joint exchange. Thus it is experimental, is provided ``as is'', with no warranties of any kind whatsoever, no support, no promise of updates, or printed documentation. By using this software, you acknowledge that the Lawrence Berkeley National Laboratory and Regents of the University of California shall have no liability with respect to the infringement of other copyrights by any part of this software.