00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #ifndef SUNDANCE_RAVIARTTHOMAS_H
00032 #define SUNDANCE_RAVIARTTHOMAS_H
00033
00034 #include "SundanceDefs.hpp"
00035 #include "Teuchos_RefCountPtr.hpp"
00036 #include "SundanceBasisFamilyBase.hpp"
00037
00038 namespace Sundance
00039 {
00040
00041
00042
00043 class RaviartThomas : public HDivVectorBasis
00044 {
00045 public:
00046
00047 RaviartThomas(int spatialDim);
00048
00049
00050 int order() const {return 1;}
00051
00052
00053 void print(std::ostream& os) const ;
00054
00055
00056
00057
00058 bool supportsCellTypePair(
00059 const CellType& maximalCellType,
00060 const CellType& cellType
00061 ) const ;
00062
00063
00064 virtual void getReferenceDOFs(
00065 const CellType& maximalCellType,
00066 const CellType& cellType,
00067 Array<Array<Array<int> > >& dofs
00068 ) const ;
00069
00070
00071 virtual int nReferenceDOFsWithoutFacets(
00072 const CellType& maximalCellType,
00073 const CellType& cellType
00074 ) const ;
00075
00076
00077 virtual bool lessThan(const BasisDOFTopologyBase* other) const ;
00078
00079
00080 std::string description() const ;
00081
00082
00083 virtual void refEval(
00084 const CellType& cellType,
00085 const Array<Point>& pts,
00086 const SpatialDerivSpecifier& deriv,
00087 Array<Array<Array<double> > >& result,
00088 int verbosity=0) const ;
00089
00090
00091
00092 GET_RCP(BasisFamilyBase);
00093 private:
00094
00095
00096 };
00097 }
00098
00099 #endif