Chombo + EB
3.2
|
#include <ComputeCutCellMoments.H>
Public Types | |
typedef IndexTM< int, dim > | IvDim |
typedef IndexTM< Real, dim > | RvDim |
typedef map< IvDim, Real, LexLT< IvDim > > | PthMoment |
typedef map< IndexTM< int, dim-1 >, Real, LexLT< IndexTM< int, dim-1 > > > | PthMomentLesserDimension |
typedef map< IndexTM< int, 1 >, Real > | OneDMoments |
typedef map< int, IvDim > | LocPthMoment |
typedef map< IvDim, int, LexLT< IvDim > > | PthMomentLoc |
typedef map< Iv2, CutCellMoments< dim-1 >, LexLT< Iv2 > > | BdCutCellMoments |
Public Member Functions | |
ComputeCutCellMoments () | |
ComputeCutCellMoments (const ComputeCutCellMoments< dim > &a_computeCutCellMoments) | |
ComputeCutCellMoments (const IFData< dim > &a_info) | |
~ComputeCutCellMoments () | |
void | computeMoments (const int &a_order, const int &a_degreeP, const bool &a_useConstraints, RefinementCriterion< dim > &a_refinementCriterion, const int &a_numberOfRefinements=0) |
Vector< Real > | computeRhs (LSProblem< dim > &a_lsp, const int &a_order) |
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) |
void | addMomentMaps (const Vector< CutCellMoments< dim > > &a_refinedCutCellVector, const int &a_degreeP, const bool &a_useConstraints) |
void | addMoments (PthMoment &a_momentMap, PthMoment &a_refinedMomentMap, const IndexTM< Real, dim > &a_refinedCenterDelta) |
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) |
void | computeResiduals (const Vector< CutCellMoments< dim > > &a_refinedCCMoms, const int &a_degreeP) |
void | print (ostream &out) const |
void | dump () const |
void | operator= (const ComputeCutCellMoments< dim > &a_computeCutCellMoments) |
Real | factorial (const IvDim &a_multiIndex) const |
Public Attributes | |
CutCellMoments< dim > | m_cutCellMoments |
bool | m_boundaryMomentsComputed |
typedef IndexTM<int,dim> ComputeCutCellMoments< dim >::IvDim |
typedef map<IndexTM<int,dim-1>,Real,LexLT < IndexTM<int,dim-1> > > ComputeCutCellMoments< dim >::PthMomentLesserDimension |
typedef map<IndexTM<int,1>,Real > ComputeCutCellMoments< dim >::OneDMoments |
typedef map<int,IvDim> ComputeCutCellMoments< dim >::LocPthMoment |
typedef map<IvDim,int,LexLT <IvDim> > ComputeCutCellMoments< dim >::PthMomentLoc |
typedef map<Iv2,CutCellMoments<dim-1>, LexLT<Iv2> > ComputeCutCellMoments< dim >::BdCutCellMoments |
ComputeCutCellMoments< dim >::ComputeCutCellMoments | ( | ) |
ComputeCutCellMoments< dim >::ComputeCutCellMoments | ( | const ComputeCutCellMoments< dim > & | a_computeCutCellMoments | ) |
ComputeCutCellMoments< dim >::ComputeCutCellMoments | ( | const IFData< dim > & | a_info | ) |
References BDID_DIR, BDID_HILO, dim, ComputeCutCellMoments< dim >::m_cutCellMoments, and IFData< dim >::m_maxOrder.
ComputeCutCellMoments< dim >::~ComputeCutCellMoments | ( | ) |
void ComputeCutCellMoments< dim >::computeMoments | ( | const int & | a_order, |
const int & | a_degreeP, | ||
const bool & | a_useConstraints, | ||
RefinementCriterion< dim > & | a_refinementCriterion, | ||
const int & | a_numberOfRefinements = 0 |
||
) |
References ComputeCutCellMoments< dim >::addMomentMaps(), RefinementCriterion< dim >::baseDoRefine(), CH_assert, LSProblem< dim >::computeBounds(), ComputeCutCellMoments< dim >::computeResiduals(), ComputeCutCellMoments< dim >::computeRhs(), dim, RefinementCriterion< dim >::doRefine(), MayDay::Error(), LSProblem< dim >::getMonomialLocMapDegreeP(), LSProblem< dim >::getMonomialLocMapDegreePLess1(), LSProblem< dim >::getNumberDegP(), LSProblem< dim >::getUnknown(), LSProblem< dim >::invertNormalEq(), LARGEREALVAL, ComputeCutCellMoments< dim >::m_boundaryMomentsComputed, ComputeCutCellMoments< dim >::m_cutCellMoments, LSProblem< dim >::numActiveBounds(), pout(), LSProblem< dim >::print(), ComputeCutCellMoments< dim >::refine(), and RefinementCriterion< dim >::setConstrantSuccessStatus().
Referenced by ComputeCutCellMoments< dim >::refine().
Vector< Real > ComputeCutCellMoments< dim >::computeRhs | ( | LSProblem< dim > & | a_lsp, |
const int & | a_order | ||
) |
References dim, MayDay::Error(), ComputeCutCellMoments< dim >::factorial(), generateMultiIndices(), LSProblem< dim >::getLocMonomialMapDegreeP(), LSProblem< dim >::getNumberDegP(), ComputeCutCellMoments< dim >::m_cutCellMoments, and Vector< T >::size().
Referenced by ComputeCutCellMoments< dim >::computeMoments(), and ComputeCutCellMoments< dim >::computeResiduals().
Vector< CutCellMoments< dim > > ComputeCutCellMoments< 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 | ||
) |
void ComputeCutCellMoments< dim >::addMomentMaps | ( | const Vector< CutCellMoments< dim > > & | a_refinedCutCellVector, |
const int & | a_degreeP, | ||
const bool & | a_useConstraints | ||
) |
References MayDay::Abort(), ComputeCutCellMoments< dim >::addBdMoments(), ComputeCutCellMoments< dim >::addMoments(), CH_assert, dim, LARGEINTVAL, CutCellMoments< dim >::m_bdCutCellMoments, ComputeCutCellMoments< dim >::m_cutCellMoments, CutCellMoments< dim >::m_EBmoments, CutCellMoments< dim >::m_IFData, CutCellMoments< dim >::m_moments, RECURSIVE_GEOMETRY_GENERATION, and sign().
Referenced by ComputeCutCellMoments< dim >::computeMoments().
void ComputeCutCellMoments< dim >::addMoments | ( | PthMoment & | a_momentMap, |
PthMoment & | a_refinedMomentMap, | ||
const IndexTM< Real, dim > & | a_refinedCenterDelta | ||
) |
References ComputeCutCellMoments< dim >::m_cutCellMoments.
Referenced by ComputeCutCellMoments< dim >::addMomentMaps().
void ComputeCutCellMoments< dim >::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 | ||
) |
Referenced by ComputeCutCellMoments< dim >::addMomentMaps().
void ComputeCutCellMoments< dim >::computeResiduals | ( | const int & | a_order, |
const int & | a_degreeP, | ||
const bool & | a_useConstraints | ||
) |
References Abs(), ComputeCutCellMoments< dim >::computeRhs(), dim, ComputeCutCellMoments< dim >::m_cutCellMoments, LSProblem< dim >::m_matrix, LSProblem< dim >::m_monoLocP, LSProblem< dim >::m_monoLocPLess1, LSProblem< dim >::m_numP, and LSProblem< dim >::m_numPLess1.
Referenced by ComputeCutCellMoments< dim >::computeMoments().
void ComputeCutCellMoments< dim >::computeResiduals | ( | const Vector< CutCellMoments< dim > > & | a_refinedCCMoms, |
const int & | a_degreeP | ||
) |
References LARGEREALVAL, and ComputeCutCellMoments< dim >::m_cutCellMoments.
void ComputeCutCellMoments< dim >::print | ( | ostream & | out | ) | const |
References ComputeCutCellMoments< dim >::m_cutCellMoments.
Referenced by ComputeCutCellMoments< dim >::dump(), and operator<<().
void ComputeCutCellMoments< dim >::dump | ( | ) | const |
References pout(), and ComputeCutCellMoments< dim >::print().
void ComputeCutCellMoments< dim >::operator= | ( | const ComputeCutCellMoments< dim > & | a_computeCutCellMoments | ) |
References ComputeCutCellMoments< dim >::m_cutCellMoments.
Real ComputeCutCellMoments< dim >::factorial | ( | const IvDim & | a_multiIndex | ) | const |
References dim.
Referenced by ComputeCutCellMoments< dim >::computeRhs().
CutCellMoments<dim> ComputeCutCellMoments< dim >::m_cutCellMoments |
Referenced by ComputeCutCellMoments< dim >::addMomentMaps(), ComputeCutCellMoments< dim >::addMoments(), ComputeCutCellMoments< dim >::ComputeCutCellMoments(), ComputeCutCellMoments< dim >::computeMoments(), ComputeCutCellMoments< dim >::computeResiduals(), ComputeCutCellMoments< dim >::computeRhs(), ComputeCutCellMoments< dim >::operator=(), ComputeCutCellMoments< dim >::print(), and ComputeCutCellMoments< dim >::refine().
bool ComputeCutCellMoments< dim >::m_boundaryMomentsComputed |
Referenced by ComputeCutCellMoments< dim >::computeMoments().