Mushy Layer
1.0
|
Boundary condition function for fields which are advected and diffused. More...
Public Member Functions | |
AdvectDiffuseScalarBC (bool a_isDefined, MushyLayerParams a_params, bool a_homogeneous, LevelData< FluxBox > *a_advVel, Real a_dx, Vector< Real > a_plumeVals, Interval a_interval, Vector< Vector< int > > &a_customLoBC, Vector< Vector< int > > &a_customHiBC, Vector< Vector< Real > > &a_customLoBCVal, Vector< Vector< Real > > &a_customHiBCVal) | |
Constructor. | |
virtual void | operator() (FArrayBox &a_state, const Box &a_valid, const ProblemDomain &a_domain, Real a_dx, bool a_homogeneous) |
Apply BC. | |
![]() | |
AbstractScalarBCFunction () | |
Default constructor. | |
AbstractScalarBCFunction (bool a_isDefined, MushyLayerParams a_params, bool a_homogeneous, LevelData< FluxBox > *a_advVel, Real a_dx, Interval a_interval=Interval(0, 0)) | |
Full constructor. | |
![]() | |
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) |
void | fillGhostCells (const Vector< LevelData< FArrayBox > *> &phi, const Real dx0, const Vector< int > &refV, const bool homogeneous) |
Public Attributes | |
Vector< Real > | m_plumeVal |
Each element of the vector corresponds to a different interval. | |
Vector< Vector< int > > | m_customLoBC |
BC type on the lo side. First index refers to direction, second to component. | |
Vector< Vector< int > > | m_customHiBC |
BC type on the hi side. First index refers to direction, second to component. | |
Vector< Vector< Real > > | m_customLoBCVal |
BC value on the lo side. First index refers to direction, second to component. | |
Vector< Vector< Real > > | m_customHiBCVal |
BC value on the hi side. First index refers to direction, second to component. | |
![]() | |
bool | m_isDefined |
Is object defined? | |
MushyLayerParams | m_params |
Physical parameters for the problem. | |
bool | m_homogeneous |
Always enforce homogeneous BCs? | |
LevelData< FluxBox > * | m_advVel |
Advection velocity - for inflow/outflow BCs. | |
Real | m_dx |
Grid spacing for m_advVel. | |
Interval | m_interval |
Interval to fill. | |
Boundary condition function for fields which are advected and diffused.
All these fields have the same type of conditions at each boundary, but just different values. This boundary condition can also handle a plume inflow, if required.