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

BoxGhostBC Class Reference

class to encapsulate the operations of ghost-cell boundary conditions. More...

#include <GhostBC.H>

Inheritance diagram for BoxGhostBC:

Inheritance graph
[legend]
Collaboration diagram for BoxGhostBC:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual ~BoxGhostBC ()
 BoxGhostBC ()
 BoxGhostBC (int a_dir, Side::LoHiSide a_sd)
 sets interval to be (0,0)

 BoxGhostBC (int a_dir, Side::LoHiSide a_sd, const Interval &a_comps)

Protected Methods

virtual BoxGhostBC * new_boxghostbc () const=0
 virtual constructor workaround.

void define (int a_dir, Side::LoHiSide a_sd)
 sets interval to be (0,0)

void define (int a_dir, Side::LoHiSide a_sd, const Interval &a_comps)
virtual void applyInhomogeneousBCs (FArrayBox &a_state, const Box &a_domain, Real a_dx) const
virtual void applyHomogeneousBCs (FArrayBox &a_state, const Box &domain, Real a_dx) const
virtual void applyInhomogeneousBCs (FArrayBox &a_state, const ProblemDomain &a_domain, Real a_dx) const
virtual void applyHomogeneousBCs (FArrayBox &a_state, const ProblemDomain &a_domain, Real a_dx) const
virtual void fillBCValues (FArrayBox &a_neumfac, FArrayBox &a_dircfac, FArrayBox &a_inhmval, Real a_dx, const Box &domain) const=0
virtual void applyBCs (const Box &a_bcbox, FArrayBox &a_state, const FArrayBox &a_neumfac, const FArrayBox &a_dircfac, const FArrayBox &a_inhmval, Real a_dx) const
virtual void fillBCValues (FArrayBox &a_neumfac, FArrayBox &a_dircfac, FArrayBox &a_inhmval, Real a_dx, const ProblemDomain &domain) const=0

Protected Attributes

Side::LoHiSide m_side
int m_direction
Interval m_components

Friends

class DomainGhostBC

Detailed Description

class to encapsulate the operations of ghost-cell boundary conditions.

BoxGhostBC is a class to encapsulate the operations of ghost-cell boundary conditions at a face. If the solution is phi and the face normal direction is x, the boundary conditions usually used can be expressed as A*phi + B*dphi/dx = C. The derived class provides a function to to fill A B and C. These functions are only meant to be called by DomainGhostBC.


Constructor & Destructor Documentation

virtual BoxGhostBC::~BoxGhostBC (    )  [inline, virtual]
 

BoxGhostBC::BoxGhostBC (    )  [inline]
 

BoxGhostBC::BoxGhostBC (  int    a_dir,
Side::LoHiSide    a_sd
) 
 

sets interval to be (0,0)

BoxGhostBC::BoxGhostBC (  int    a_dir,
Side::LoHiSide    a_sd,
const Interval &    a_comps
) 
 


Member Function Documentation

virtual void BoxGhostBC::applyBCs (  const Box &    a_bcbox,
FArrayBox &    a_state,
const FArrayBox &    a_neumfac,
const FArrayBox &    a_dircfac,
const FArrayBox &    a_inhmval,
Real    a_dx
)  const [protected, virtual]
 

Reimplemented in BoxEdgeBC.

virtual void BoxGhostBC::applyHomogeneousBCs (  FArrayBox &    a_state,
const ProblemDomain &    a_domain,
Real    a_dx
)  const [protected, virtual]
 

Reimplemented in BoxEdgeBC, NoOpBC, ExtrapBC, HOExtrapBC, ReflectBC, and ReflectOddBC.

virtual void BoxGhostBC::applyHomogeneousBCs (  FArrayBox &    a_state,
const Box &    domain,
Real    a_dx
)  const [protected, virtual]
 

Reimplemented in BoxEdgeBC, NoOpBC, ExtrapBC, HOExtrapBC, ReflectBC, and ReflectOddBC.

virtual void BoxGhostBC::applyInhomogeneousBCs (  FArrayBox &    a_state,
const ProblemDomain &    a_domain,
Real    a_dx
)  const [protected, virtual]
 

Reimplemented in BoxEdgeBC, NoOpBC, ExtrapBC, HOExtrapBC, ReflectBC, and ReflectOddBC.

virtual void BoxGhostBC::applyInhomogeneousBCs (  FArrayBox &    a_state,
const Box &    a_domain,
Real    a_dx
)  const [protected, virtual]
 

Reimplemented in BoxEdgeBC, NoOpBC, ExtrapBC, HOExtrapBC, ReflectBC, and ReflectOddBC.

void BoxGhostBC::define (  int    a_dir,
Side::LoHiSide    a_sd,
const Interval &    a_comps
)  [protected]
 

Reimplemented in BoxEdgeBC, and NoOpBC.

void BoxGhostBC::define (  int    a_dir,
Side::LoHiSide    a_sd
)  [protected]
 

sets interval to be (0,0)

Reimplemented in BoxEdgeBC, and NoOpBC.

virtual void BoxGhostBC::fillBCValues (  FArrayBox &    a_neumfac,
FArrayBox &    a_dircfac,
FArrayBox &    a_inhmval,
Real    a_dx,
const ProblemDomain &    domain
)  const [protected, pure virtual]
 

Implemented in InflowVelBC, BoxEdgeBC, edgeDirichletBC, NoOpBC, ExtrapBC, HOExtrapBC, ReflectBC, ReflectOddBC, and NeumannBC.

virtual void BoxGhostBC::fillBCValues (  FArrayBox &    a_neumfac,
FArrayBox &    a_dircfac,
FArrayBox &    a_inhmval,
Real    a_dx,
const Box &    domain
)  const [protected, pure virtual]
 

Implemented in InflowVelBC, BoxEdgeBC, edgeDirichletBC, NoOpBC, ExtrapBC, HOExtrapBC, ReflectBC, ReflectOddBC, NormalInflowVelBC, and NeumannBC.

virtual BoxGhostBC* BoxGhostBC::new_boxghostbc (    )  const [protected, pure virtual]
 

virtual constructor workaround.

Implemented in InflowVelBC, BoxEdgeBC, edgeDirichletBC, NoOpBC, ExtrapBC, HOExtrapBC, ReflectBC, ReflectOddBC, NormalInflowVelBC, and NeumannBC.


Friends And Related Function Documentation

friend class DomainGhostBC [friend]
 

Reimplemented in InflowVelBC, edgeDirichletBC, ExtrapBC, HOExtrapBC, ReflectBC, ReflectOddBC, scalarDirichletBC, scalarInflowBC, scalarInflowChannelBC, NormalInflowVelBC, NeumannBC, and DircheletBC.


Member Data Documentation

Interval BoxGhostBC::m_components [protected]
 

int BoxGhostBC::m_direction [protected]
 

Side::LoHiSide BoxGhostBC::m_side [protected]
 


The documentation for this class was generated from the following file:
Generated on Thu Aug 29 11:07:37 2002 for Chombo&INS by doxygen1.2.16