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

GaussBC.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 // F. Miniati th, 21.10.04
00028 
00029 #ifndef _GAUSS_BC_H_
00030 #define _GAUSS_BC_H_
00031 
00032 #include "Box.H"
00033 #include "FArrayBox.H"
00034 #include "Vector.H"
00035 #include "RealVect.H"
00036 #include "LoHiSide.H"
00037 #include "GhostBC.H"
00038 
00040 
00057 class GaussBC: public BoxGhostBC
00058 {
00059 public:
00060   friend class DomainGhostBC;
00061 
00063   GaussBC();
00064 
00066   GaussBC(int dir,
00067           Side::LoHiSide sd);
00068 
00070   GaussBC(int             dir,
00071           Side::LoHiSide  sd, 
00072           const Interval& a_comps);
00073 
00075   ~GaussBC();
00076 
00078   virtual void setParameters(const Real& a_mass, const Real& a_lScale =1, 
00079                              const RealVect& a_center = RealVect(D_DECL(0.5,0.5,0.5)));
00080 
00081 protected:
00083 
00088   virtual void fillBCValues(FArrayBox& a_neumfac,
00089                             FArrayBox& a_dircfac,
00090                             FArrayBox& a_inhmval,
00091                             Real       a_dx,
00092                             const Box& a_domain) const;
00093 
00095 
00100   virtual void fillBCValues(FArrayBox&           a_neumfac,
00101                             FArrayBox&           a_dircfac,
00102                             FArrayBox&           a_inhmval,
00103                             Real                 a_dx,
00104                             const ProblemDomain& a_domain) const;
00105 
00107 
00110   BoxGhostBC* new_boxghostbc() const;
00111 
00113   Real m_mass;
00114 
00116   Real m_scale;
00117 
00119   RealVect m_center;
00120 
00121 private:
00122   GaussBC(const GaussBC& a_neuin){;}
00123   virtual void operator=(const GaussBC& a_neuin){;}
00124 };
00125 
00126 #endif

Generated on Wed Oct 5 13:52:08 2005 for Chombo&AMRSelfGravity by  doxygen 1.4.1