#include <BCFunc.H>
Public Member Functions | |
BCFunction () | |
Base class constructor. Called by all subclass constructors. | |
virtual | ~BCFunction () |
Destructor. | |
virtual void | operator() (FArrayBox &a_state, const Box &a_valid, const ProblemDomain &a_domain, Real a_dx, bool a_homogeneous)=0 |
virtual void | operator() (FArrayBox &a_state, const Box &a_valid, const ProblemDomain &a_domain, Real a_dx, const DataIndex &a_index, bool a_homogeneous) |
virtual void | setTime (const Real &a_time) |
void | fillGhostCells (const LevelData< FArrayBox > &phi, const Real dx, const bool homogeneous) |
Fill the ghost cells for a single level. | |
void | fillGhostCells (const Vector< LevelData< FArrayBox > * > &phi, const Real dx0, const Vector< int > &refV, const bool homogeneous) |
Fill the ghost cells for a Hierarchy of levels. | |
Private Member Functions | |
BCFunction (const BCFunction &) | |
BCFunction & | operator= (const BCFunction &) |
BCFunction::BCFunction | ( | ) | [inline] |
Base class constructor. Called by all subclass constructors.
virtual BCFunction::~BCFunction | ( | ) | [inline, virtual] |
Destructor.
BCFunction::BCFunction | ( | const BCFunction & | ) | [private] |
virtual void BCFunction::operator() | ( | FArrayBox & | a_state, | |
const Box & | a_valid, | |||
const ProblemDomain & | a_domain, | |||
Real | a_dx, | |||
bool | a_homogeneous | |||
) | [pure virtual] |
Computes values of a solution, , on ghost cells. These ghost values impose the boundary condition represented by the BCFunction object.
a_state | The values of on the box given by a_valid. | |
a_valid | The box on which the boundary condition is to be imposed. | |
a_domain | The problem domain on which this boundary condition is imposed. | |
a_dx | The grid spacing. | |
a_homogeneous | If set to true, ghost values are computed for a homogeneous boundary condition. This is useful for multigrid solves. |
Implemented in BCFuncWrapper, ConstBCFunction, CompBC, ConstDiriBC, and CompGridVTOBC.
Referenced by operator()().
virtual void BCFunction::operator() | ( | FArrayBox & | a_state, | |
const Box & | a_valid, | |||
const ProblemDomain & | a_domain, | |||
Real | a_dx, | |||
const DataIndex & | a_index, | |||
bool | a_homogeneous | |||
) | [inline, virtual] |
Computes the values of on ghost cells specifying a data index. By default, this calls the version of the method without a DataIndex.
a_state | The values of on the box given by a_valid. | |
a_valid | The box on which the boundary condition is to be imposed. | |
a_domain | The problem domain on which this boundary condition is imposed. | |
a_dx | The grid spacing. | |
a_index | A DataIndex that can be used in the calculation. | |
a_homogeneous | If set to true, ghost values are computed for a homogeneous boundary condition. This is useful for multigrid solves. |
Reimplemented in CompBC, and CompGridVTOBC.
References operator()().
virtual void BCFunction::setTime | ( | const Real & | a_time | ) | [inline, virtual] |
Sets the time associated with this boundary condition. By default, this method does nothing, so this aspect of BCFunction can be ignored for time-independent boundary conditions.
a_time | The time to be passed to the boundary condition. |
void BCFunction::fillGhostCells | ( | const LevelData< FArrayBox > & | phi, | |
const Real | dx, | |||
const bool | homogeneous | |||
) | [inline] |
Fill the ghost cells for a single level.
References LayoutData< T >::dataIterator(), LevelData< T >::disjointBoxLayout(), LayoutIterator::ok(), and DisjointBoxLayout::physDomain().
Referenced by fillGhostCells().
BCFunction& BCFunction::operator= | ( | const BCFunction & | ) | [private] |