11 #ifndef _COMPUTECUTCELLMOMENTS_H_ 12 #define _COMPUTECUTCELLMOMENTS_H_ 14 #if defined(CH_Darwin) && defined(__GNUC__) && ( __GNUC__ == 3 ) 17 #define _GLIBCPP_USE_C99 1 33 #include "NamespaceHeader.H" 63 #if RECURSIVE_GEOMETRY_GENERATION == 0 65 const int & a_degreeP,
66 const bool & a_useConstraints,
68 const int & a_numberOfRefinements = 0);
71 const int & a_degreePmax,
72 const bool & a_useConstraints,
74 const int & a_numberOfRefinements = 0);
76 void computeMomentsRecursively(
const int & a_orderPmax,
77 const int & a_degreePmax,
78 const bool & a_useConstraints,
80 const int & a_numberOfRefinements);
87 #if RECURSIVE_GEOMETRY_GENERATION == 0 89 const int & a_degreeP,
92 const int & a_degreePmax,
94 const bool & a_useConstraints,
97 const int & a_numberOfRefinements);
101 const int & a_degreeP,
103 const int & a_degreePmax,
105 const bool & a_useConstraints);
108 PthMoment & a_refinedMomentMap,
114 const int & a_degreeP,
116 const int & a_degreePmax,
118 const bool & a_useConstraints,
122 #if RECURSIVE_GEOMETRY_GENERATION == 0 124 const int & a_degreeP,
127 const int & a_degreePmax,
129 const bool & a_useConstraints);
133 const int & a_degreeP);
135 const int & a_degreePmax);
139 void print(ostream& out)
const;
146 Real
factorial(
const IvDim & a_multiIndex)
const;
169 #if RECURSIVE_GEOMETRY_GENERATION == 0 171 const int & a_degree,
174 const int & a_degreePmax,
176 const bool & a_useConstraints,
179 void simpleComputeMoments(
const Real & a_loPt,
182 const int & a_degree);
184 const int & a_degreePmax);
187 void computeMomentsUsingBinomial(
const Real & a_loPt,
189 const int & a_loSign,
190 const int & a_hiSign,
192 const int & a_degree);
194 const int & a_degreePmax);
198 void print(ostream& out)
const;
209 #include "NamespaceFooter.H"
Real factorial(const IvDim &a_multiIndex) const
Definition: ComputeCutCellMomentsImplem.H:1004
Definition: CutCellMoments.H:157
void addMoments(PthMoment &a_momentMap, PthMoment &a_refinedMomentMap, const IndexTM< Real, dim > &a_refinedCenterDelta)
Definition: ComputeCutCellMomentsImplem.H:832
Definition: ComputeCutCellMoments.H:156
map< int, IvDim > LocPthMoment
Definition: ComputeCutCellMoments.H:48
void operator=(const ComputeCutCellMoments< dim > &a_computeCutCellMoments)
Definition: ComputeCutCellMomentsImplem.H:988
Definition: ComputeCutCellMoments.H:37
CutCellMoments< 1 > m_cutCellMoments
Definition: ComputeCutCellMoments.H:206
Vector< CutCellMoments< dim > > refine(const int &a_order, const int &a_degreeP, const bool &a_useConstraints, RefinementCriterion< dim > &a_refinementCriterion, const IndexTM< int, dim > &a_refineInDir, const int &a_numberOfRefinements)
Definition: ComputeCutCellMomentsImplem.H:592
map< IvDim, Real, LexLT< IvDim > > PthMoment
Definition: ComputeCutCellMoments.H:43
Vector< Real > computeRhs(LSProblem< dim > &a_lsp, const int &a_order)
Definition: ComputeCutCellMomentsImplem.H:485
~ComputeCutCellMoments()
Definition: ComputeCutCellMomentsImplem.H:82
CutCellMoments< dim > m_cutCellMoments
Definition: ComputeCutCellMoments.H:149
Definition: ComputeCutCellMoments.H:35
Definition: RefinementCriterion.H:27
map< IndexTM< int, 1 >, Real > OneDMoments
Definition: ComputeCutCellMoments.H:47
void addBdMoments(CutCellMoments< dim > &a_coarseCutCell, const IFData< dim+1 > &a_IFData, const int &a_degreeP, const bool &a_useConstraints, const IndexTM< Real, dim > &a_refinedCenterDelta, const IndexTM< int, dim > &a_localHilo)
void computeResiduals(const int &a_order, const int &a_degreeP, const bool &a_useConstraints)
Definition: ComputeCutCellMomentsImplem.H:848
IndexTM< Real, dim > RvDim
Definition: ComputeCutCellMoments.H:41
IndexTM< int, dim > IvDim
Definition: ComputeCutCellMoments.H:40
double Real
Definition: REAL.H:33
void addMomentMaps(const Vector< CutCellMoments< dim > > &a_refinedCutCellVector, const int &a_degreeP, const bool &a_useConstraints)
Definition: ComputeCutCellMomentsImplem.H:700
map< Iv2, CutCellMoments< dim-1 >, LexLT< Iv2 > > BdCutCellMoments
Definition: ComputeCutCellMoments.H:51
void computeMoments(const int &a_order, const int &a_degreeP, const bool &a_useConstraints, RefinementCriterion< dim > &a_refinementCriterion, const int &a_numberOfRefinements=0)
Definition: ComputeCutCellMomentsImplem.H:87
void dump() const
Definition: ComputeCutCellMomentsImplem.H:982
map< IndexTM< int, dim-1 >, Real, LexLT< IndexTM< int, dim-1 > > > PthMomentLesserDimension
Definition: ComputeCutCellMoments.H:45
Definition: Notation.H:92
void print(ostream &out) const
Definition: ComputeCutCellMomentsImplem.H:977
map< IndexTM< int, 1 >, Real > OneDMoments
Definition: ComputeCutCellMoments.H:159
ComputeCutCellMoments()
Definition: ComputeCutCellMomentsImplem.H:36
IndexTM< int, 2 > Iv2
Definition: Notation.H:108
int dim
Definition: EBInterface.H:146
bool m_boundaryMomentsComputed
Definition: ComputeCutCellMoments.H:152
Definition: CutCellMoments.H:32
#define RECURSIVE_GEOMETRY_GENERATION
Definition: Notation.H:40
map< IvDim, int, LexLT< IvDim > > PthMomentLoc
Definition: ComputeCutCellMoments.H:49