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

RegPoissonBC.H

Go to the documentation of this file.
00001 /* _______              __
00002   / ___/ /  ___  __ _  / /  ___
00003  / /__/ _ \/ _ \/  ' \/ _ \/ _ \
00004  \___/_//_/\___/_/_/_/_.__/\___/ 
00005 */
00006 //
00007 // This software is copyright (C) by the Lawrence Berkeley
00008 // National Laboratory.  Permission is granted to reproduce
00009 // this software for non-commercial purposes provided that
00010 // this notice is left intact.
00011 // 
00012 // It is acknowledged that the U.S. Government has rights to
00013 // this software under Contract DE-AC03-765F00098 between
00014 // the U.S.  Department of Energy and the University of
00015 // California.
00016 //
00017 // This software is provided as a professional and academic
00018 // contribution for joint exchange. Thus it is experimental,
00019 // is provided ``as is'', with no warranties of any kind
00020 // whatsoever, no support, no promise of updates, or printed
00021 // documentation. By using this software, you acknowledge
00022 // that the Lawrence Berkeley National Laboratory and
00023 // Regents of the University of California shall have no
00024 // liability with respect to the infringement of other
00025 // copyrights by any part of this software.
00026 //
00027 // DTGraves, Mon, July 19, 1999
00028 
00029 #ifndef _REGPOISSONBC_H_
00030 #define _REGPOISSONBC_H_
00031 
00032 #include "Box.H"
00033 #include "FArrayBox.H"
00034 #include "Vector.H"
00035 #include "LoHiSide.H"
00036 
00037 #include "RegGhostBC.H"
00038 
00040 
00053 class RegNeumannBC : public RegBoxGhostBC
00054 {
00055 public:
00056   friend class RegDomainGhostBC;
00057 
00059   RegNeumannBC();
00060 
00062   RegNeumannBC(int            a_dir,
00063                Side::LoHiSide a_side);
00064 
00066   RegNeumannBC(int             a_dir,
00067                Side::LoHiSide  a_side, 
00068                const Interval& a_comps);
00069 
00071   ~RegNeumannBC();
00072 
00073 protected:
00075   RegNeumannBC* newBoxGhostBC() const;
00076 
00078 
00082   virtual void fillBCValues(FArrayBox& a_neumfac,
00083                             FArrayBox& a_dircfac,
00084                             FArrayBox& a_inhmval,
00085                             Real       a_dx,
00086                             const Box& a_domain) const;
00087 
00089 
00093   virtual void fillBCValues(FArrayBox&           a_neumfac,
00094                             FArrayBox&           a_dircfac,
00095                             FArrayBox&           a_inhmval,
00096                             Real                 a_dx,
00097                             const ProblemDomain& a_domain) const;
00098 
00099 private:
00100   RegNeumannBC(const RegNeumannBC&) {};
00101   void operator= (const RegNeumannBC&) {};
00102 };
00103 
00105 
00117 class RegDirichletBC : public RegBoxGhostBC
00118 {
00119 public:
00120   friend class RegDomainGhostBC;
00121 
00123   RegDirichletBC();
00124 
00126   RegDirichletBC(int            a_dir,
00127                  Side::LoHiSide a_side);
00128 
00130   RegDirichletBC(int             a_dir,
00131                  Side::LoHiSide  a_side, 
00132                  const Interval& a_comps);
00133 
00135   ~RegDirichletBC();
00136 
00137 private:
00139   RegDirichletBC* newBoxGhostBC() const;
00140 
00142 
00146   virtual void fillBCValues(FArrayBox& a_neumfac,
00147                             FArrayBox& a_dircfac,
00148                             FArrayBox& a_inhmval,
00149                             Real       a_dx,
00150                             const Box& a_domain) const;
00151 
00153 
00157   virtual void fillBCValues(FArrayBox&           a_neumfac,
00158                             FArrayBox&           a_dircfac,
00159                             FArrayBox&           a_inhmval,
00160                             Real                 a_dx,
00161                             const ProblemDomain& a_domain) const;
00162 
00163 private:
00164   RegDirichletBC(const RegDirichletBC&) {};
00165   void operator= (const RegDirichletBC&) {};
00166 };
00167 
00168 #endif

Generated on Wed Apr 16 14:31:05 2003 for EBChombo by doxygen1.2.16