Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

NeumannBC Class Reference

Class to enforce homogeneous Neumann boundary conditions. More...

#include <PoissonBC.H>

Inheritance diagram for NeumannBC:

Inheritance graph
[legend]
Collaboration diagram for NeumannBC:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NeumannBC ()
 Null constructor.
 NeumannBC (int dir, Side::LoHiSide sd)
 Basic constructor -- sets Interval to (0,0).
 NeumannBC (int dir, Side::LoHiSide sd, const Interval &a_comps)
 Full constructor.
 ~NeumannBC ()
 Destructor.
void setInhomVal (Real a_inhomVal)

Protected Member Functions

virtual void fillBCValues (FArrayBox &a_neumfac, FArrayBox &a_dircfac, FArrayBox &a_inhmval, Real a_dx, const Box &a_domain) const
virtual void fillBCValues (FArrayBox &a_neumfac, FArrayBox &a_dircfac, FArrayBox &a_inhmval, Real a_dx, const ProblemDomain &a_domain) const
BoxGhostBC * new_boxghostbc () const

Friends

class DomainGhostBC

Detailed Description

Class to enforce homogeneous Neumann boundary conditions.

BoxGhostBC class implentation to enforce homogeneous neumann boundary conditions Recall that 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. For homogeneous Neumann BCs, A=C=0, B= 1 These functions are only meant to be called by DomainGhostBC


Constructor & Destructor Documentation

NeumannBC::NeumannBC (   ) 
 

Null constructor.

NeumannBC::NeumannBC (  int  dir,
Side::LoHiSide  sd
) 
 

Basic constructor -- sets Interval to (0,0).

NeumannBC::NeumannBC (  int  dir,
Side::LoHiSide  sd,
const Interval &  a_comps
) 
 

Full constructor.

NeumannBC::~NeumannBC (   ) 
 

Destructor.


Member Function Documentation

virtual void NeumannBC::fillBCValues (  FArrayBox &  a_neumfac,
FArrayBox &  a_dircfac,
FArrayBox &  a_inhmval,
Real  a_dx,
const ProblemDomain &  a_domain
)  const [protected, virtual]
 

Fills coefficient arrays -- fills neumann factor with 1.0 and other two fields with 0.0.

Implements BoxGhostBC.

virtual void NeumannBC::fillBCValues (  FArrayBox &  a_neumfac,
FArrayBox &  a_dircfac,
FArrayBox &  a_inhmval,
Real  a_dx,
const Box &  a_domain
)  const [protected, virtual]
 

Fills coefficient arrays -- fills neumann factor with 1.0 and other two fields with 0.0.

Implements BoxGhostBC.

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

Virtual constructor workaround.

Implements BoxGhostBC.

void NeumannBC::setInhomVal (  Real  a_inhomVal  ) 
 


Friends And Related Function Documentation

friend class DomainGhostBC [friend]
 

Reimplemented from BoxGhostBC.


The documentation for this class was generated from the following file:
Generated on Wed Oct 5 14:01:34 2005 for Chombo&AMRSelfGravity by  doxygen 1.4.1