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

PhysIBC.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 
00028 //  PhysIBC.H
00029 // ============
00030 //
00031 // Virtual base class through which a user specifies the initial and boundary
00032 // conditions for a hyperbolic system of PDEs.
00033 //
00034 
00035 #ifndef _PHYSIBC_H
00036 #define _PHYSIBC_H
00037 
00038 #include "FArrayBox.H"
00039 #include "REAL.H"
00040 #include "LevelData.H"
00041 #include "ProblemDomain.H"
00042 
00044 
00048 class PhysIBC
00049 {
00050 public:
00052 
00054   PhysIBC();
00055 
00057 
00059   virtual ~PhysIBC() {};
00060 
00062 
00066   virtual void define(const ProblemDomain& a_domain,
00067                       const Real&          a_dx);
00068 
00070 
00074   virtual PhysIBC* new_physIBC() = 0;
00075 
00077 
00079   virtual void fluxBC(FArrayBox&            a_F,
00080                       const FArrayBox&      a_W,
00081                       const FArrayBox&      a_Wextrap,
00082                       const int&            a_dir,
00083                       const Side::LoHiSide& a_side,
00084                       const Real&           a_time) = 0;
00085 
00087 
00092   virtual void setBdrySlopes(FArrayBox&       a_dW,
00093                              const FArrayBox& a_W,
00094                              const int&       a_dir,
00095                              const Real&      a_time) = 0;
00096 
00098 
00101   virtual void artViscBC(FArrayBox&       a_F,
00102                          const FArrayBox& a_U,
00103                          const FArrayBox& a_divVel,
00104                          const int&       a_dir,
00105                          const Real&      a_time);
00106 
00108 
00110   virtual void initialize(LevelData<FArrayBox>& a_U) = 0;
00111 
00112 protected:
00113   // define() has been called
00114   bool          m_isDefined;
00115 
00116   // The current level's problem domain
00117   ProblemDomain m_domain;
00118 
00119   // The current level's grid spacing
00120   Real          m_dx;
00121 
00122 private:
00123   // Disallowed for all the usual reasons
00124   void operator=(const PhysIBC& a_input)
00125   {
00126     MayDay::Error("invalid operator");
00127   }
00128 
00129   // Disallowed for all the usual reasons
00130   PhysIBC(const PhysIBC& a_input)
00131   {
00132     MayDay::Error("invalid operator");
00133   }
00134 };
00135 
00136 #endif

Generated on Tue Jul 2 10:42:20 2002 for Chombo by doxygen1.2.16