#include <PetscCompGridVTO.H>
Public Member Functions | |
CompGridVTOBC (int a_nSource=1, IntVect a_nGhosts=IntVect::Unit) | |
virtual | ~CompGridVTOBC () |
void | setDiri (int dir, int side, int comp, bool a_diri=true) |
bool | isDiri (int dir, int side, int comp) |
virtual void | createCoefs () |
virtual void | operator() (FArrayBox &a_state, const Box &a_valid, const ProblemDomain &a_domain, Real a_dx, bool a_homogeneous) |
virtual void | operator() (FArrayBox &a_state, const Box &a_valid, const ProblemDomain &a_domain, Real a_dx, const DataIndex &a_index, bool a_homogeneous) |
Public Attributes | |
bool | m_bcDiri [CH_SPACEDIM][2][CH_SPACEDIM] |
CompGridVTOBC::CompGridVTOBC | ( | int | a_nSource = 1 , |
|
IntVect | a_nGhosts = IntVect::Unit | |||
) | [inline] |
virtual CompGridVTOBC::~CompGridVTOBC | ( | ) | [inline, virtual] |
void CompGridVTOBC::setDiri | ( | int | dir, | |
int | side, | |||
int | comp, | |||
bool | a_diri = true | |||
) | [inline] |
References m_bcDiri.
bool CompGridVTOBC::isDiri | ( | int | dir, | |
int | side, | |||
int | comp | |||
) | [inline] |
References m_bcDiri.
virtual void CompGridVTOBC::createCoefs | ( | ) | [virtual] |
Implements CompBC.
virtual void CompGridVTOBC::operator() | ( | FArrayBox & | a_state, | |
const Box & | a_valid, | |||
const ProblemDomain & | a_domain, | |||
Real | a_dx, | |||
bool | a_homogeneous | |||
) | [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. |
Implements CompBC.
Referenced by operator()().
virtual void CompGridVTOBC::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 from CompBC.
References operator()().
bool CompGridVTOBC::m_bcDiri[CH_SPACEDIM][2][CH_SPACEDIM] |
Referenced by CompGridVTOBC(), isDiri(), and setDiri().