Go to the documentation of this file.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_QUADRATUREFAMILY_H
00032 #define SUNDANCE_QUADRATUREFAMILY_H
00033
00034 #include "SundanceDefs.hpp"
00035 #include "SundanceQuadratureFamilyBase.hpp"
00036 #include "PlayaHandle.hpp"
00037
00038 namespace Sundance
00039 {
00040
00041
00042
00043
00044
00045
00046
00047 class QuadratureFamily : public Playa::Handle<QuadratureFamilyStub>
00048 {
00049 public:
00050
00051 HANDLE_CTORS(QuadratureFamily, QuadratureFamilyStub);
00052
00053 XMLObject toXML() const ;
00054
00055
00056 int order() const ;
00057
00058
00059
00060
00061
00062 int getNumPoints( const CellType& cellType ) const;
00063
00064
00065
00066 void getPoints(const CellType& cellType,
00067 Array<Point>& quadPoints,
00068 Array<double>& quadWeights) const ;
00069
00070
00071 void getFacetPoints(const CellType& cellType,
00072 int facetDim,
00073 int facetIndex,
00074 Array<Point>& quadPoints,
00075 Array<double>& quadWeights) const ;
00076
00077
00078
00079 void getAdaptedWeights(const CellType& cellType ,
00080 int cellDim,
00081 int celLID,
00082 int facetIndex ,
00083 const Mesh& mesh ,
00084 const ParametrizedCurve& globalCurve ,
00085 Array<Point>& quadPoints ,
00086 Array<double>& quadWeights ,
00087 bool& isCut) const ;
00088
00089 private:
00090
00091 void getLineFacetQuad(int facetDim,
00092 int facetIndex,
00093 Array<Point>& quadPoints,
00094 Array<double>& quadWeights) const ;
00095
00096 void getTriangleFacetQuad(int facetDim,
00097 int facetIndex,
00098 Array<Point>& quadPoints,
00099 Array<double>& quadWeights) const ;
00100
00101
00102 void getQuadFacetQuad(int facetDim,
00103 int facetIndex,
00104 Array<Point>& quadPoints,
00105 Array<double>& quadWeights) const ;
00106
00107
00108 void getTetFacetQuad(int facetDim,
00109 int facetIndex,
00110 Array<Point>& quadPoints,
00111 Array<double>& quadWeights) const ;
00112
00113
00114 void getBrickFacetQuad(int facetDim,
00115 int facetIndex,
00116 Array<Point>& quadPoints,
00117 Array<double>& quadWeights) const ;
00118 };
00119
00120
00121
00122 void printQuad(std::ostream& os,
00123 const Array<Point>& pts, const Array<double>& wgts);
00124
00125
00126 }
00127
00128 #endif