#include <CutCellMoments.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 | |
CutCellMoments () | |
CutCellMoments (const CutCellMoments< dim > &a_cutCellMoments) | |
CutCellMoments (const IFData< dim > &a_info) | |
~CutCellMoments () | |
const CutCellMoments< dim-1 > | getBdCutCellMoments (const Iv2 &a_bdId) const |
void | computeMoments (const int &a_order, const int &a_degreeP, const bool &a_useConstraints, RefinementCriterion &a_refinementCriterion) |
Real | fullCellQuadrature (const IvDim &a_mono) |
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 &a_refinementCriterion, const Vector< int > &a_refineInDir) |
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) |
Real | changeMomentCoordinates (PthMoment &a_refinedMomentMap, const IndexTM< int, dim > &a_monomial, const IndexTM< Real, dim > &a_refinedCenterDelta) |
void | initialize (CutCellMoments< dim > &a_refinedCutCell) |
void | initializeMap (PthMoment &a_map1, PthMoment &a_map2) |
void | initializeMap (PthMomentLesserDimension &a_map1, PthMomentLesserDimension &a_map2) |
void | initializeMap (OneDMoments &a_map1, OneDMoments &a_map2) |
Real | getBdMoment (const IvDim &a_mono, const IFData< dim+1 > &a_iFData, const IndexTM< Real, dim > &a_refinedCenterDelta, PthMoment a_fullCellMap=PthMoment()) |
Real | getBdEBMoment (const IvDim &a_mono, const IFData< dim+1 > &a_iFData, const IndexTM< Real, dim > &a_refinedCenterDelta) |
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) |
Real | getMoment (const IvDim &a_mono, const EBorVol &a_EBorVOL) const |
Real | getVol (const EBorVol &a_EBorVol) const |
RvDim | getCentroid (const EBorVol &a_EBorVOL) const |
Real | getResidual (const int &a_iDegree, const int &a_normJ) const |
bool | isCovered () const |
bool | isRegular () const |
void | print (ostream &out) const |
void | dump () const |
void | printMoments () |
void | printBdMoments () |
void | operator= (const CutCellMoments< dim > &a_cutCellMoments) |
Public Attributes | |
PthMoment | m_moments |
PthMoment | m_EBmoments |
BdCutCellMoments | m_bdCutCellMoments |
IFData< dim > | m_iFData |
bool | m_bdCCOn |
Vector< Vector< Real > > | m_residual |
typedef IndexTM<int,dim> CutCellMoments< dim >::IvDim |
typedef map<IndexTM<int,dim-1>,Real,LexLT < IndexTM<int,dim-1> > > CutCellMoments< dim >::PthMomentLesserDimension |
typedef map<IndexTM<int,1>,Real > CutCellMoments< dim >::OneDMoments |
typedef map<int,IvDim> CutCellMoments< dim >::LocPthMoment |
typedef map<IvDim,int,LexLT <IvDim> > CutCellMoments< dim >::PthMomentLoc |
typedef map<Iv2,CutCellMoments<dim-1>, LexLT<Iv2> > CutCellMoments< dim >::BdCutCellMoments |
CutCellMoments< dim >::CutCellMoments | ( | ) | [inline] |
CutCellMoments< dim >::CutCellMoments | ( | const CutCellMoments< dim > & | a_cutCellMoments | ) | [inline] |
CutCellMoments< dim >::CutCellMoments | ( | const IFData< dim > & | a_info | ) | [inline] |
References BDID_DIR, BDID_HILO, CH_TIME, dim, CutCellMoments< dim >::m_bdCCOn, and CutCellMoments< dim >::m_bdCutCellMoments.
CutCellMoments< dim >::~CutCellMoments | ( | ) | [inline] |
const CutCellMoments< dim-1 > CutCellMoments< dim >::getBdCutCellMoments | ( | const Iv2 & | a_bdId | ) | const [inline] |
References MayDay::Abort(), and CutCellMoments< dim >::m_bdCutCellMoments.
Referenced by LSProblem< dim >::computeBounds(), CutCellMoments< dim >::initialize(), and CutCellMoments< dim >::printBdMoments().
void CutCellMoments< dim >::computeMoments | ( | const int & | a_order, | |
const int & | a_degreeP, | |||
const bool & | a_useConstraints, | |||
RefinementCriterion & | a_refinementCriterion | |||
) | [inline] |
References CutCellMoments< dim >::addMomentMaps(), CH_TIME, LSProblem< dim >::computeBounds(), CutCellMoments< dim >::computeResiduals(), CutCellMoments< dim >::computeRhs(), dim, RefinementCriterion::doRefine(), CutCellMoments< dim >::fullCellQuadrature(), LSProblem< dim >::getMonomialLocMapDegreeP(), LSProblem< dim >::getMonomialLocMapDegreePLess1(), LSProblem< dim >::getNumberDegP(), LSProblem< dim >::getUnknown(), i, LSProblem< dim >::invertNormalEq(), LARGEREALVAL, CutCellMoments< dim >::m_bdCCOn, CutCellMoments< dim >::m_bdCutCellMoments, CutCellMoments< dim >::m_EBmoments, CutCellMoments< dim >::m_iFData, CutCellMoments< dim >::m_moments, CutCellMoments< dim >::m_residual, and CutCellMoments< dim >::refine().
Referenced by CutCellMoments< dim >::refine().
Real CutCellMoments< dim >::fullCellQuadrature | ( | const IvDim & | a_mono | ) | [inline] |
References dim, and CutCellMoments< dim >::m_iFData.
Referenced by CutCellMoments< dim >::addBdMoments(), and CutCellMoments< dim >::computeMoments().
Vector< Real > CutCellMoments< dim >::computeRhs | ( | LSProblem< dim > & | a_lsp, | |
const int & | a_order | |||
) | [inline] |
References MayDay::Abort(), dim, LSProblem< dim >::getLocMonomialMapDegreeP(), LSProblem< dim >::getNumberDegP(), CutCellMoments< dim >::m_bdCutCellMoments, CutCellMoments< dim >::m_EBmoments, and CutCellMoments< dim >::m_iFData.
Referenced by CutCellMoments< dim >::computeMoments(), and CutCellMoments< dim >::computeResiduals().
Vector< CutCellMoments< dim > > CutCellMoments< dim >::refine | ( | const int & | a_order, | |
const int & | a_degreeP, | |||
const bool & | a_useConstraints, | |||
RefinementCriterion & | a_refinementCriterion, | |||
const Vector< int > & | a_refineInDir | |||
) | [inline] |
References CutCellMoments< dim >::computeMoments(), dim, CutCellMoments< dim >::m_iFData, and sign().
Referenced by CutCellMoments< dim >::computeMoments().
void CutCellMoments< dim >::addMomentMaps | ( | const Vector< CutCellMoments< dim > > & | a_refinedCutCellVector, | |
const int & | a_degreeP, | |||
const bool & | a_useConstraints | |||
) | [inline] |
References MayDay::Abort(), CutCellMoments< dim >::addBdMoments(), CutCellMoments< dim >::addMoments(), dim, i, CutCellMoments< dim >::initialize(), j, k, LARGEINTVAL, CutCellMoments< dim >::m_bdCutCellMoments, CutCellMoments< dim >::m_EBmoments, CutCellMoments< dim >::m_iFData, CutCellMoments< dim >::m_moments, and sign().
Referenced by CutCellMoments< dim >::computeMoments().
void CutCellMoments< dim >::addMoments | ( | PthMoment & | a_momentMap, | |
PthMoment & | a_refinedMomentMap, | |||
const IndexTM< Real, dim > & | a_refinedCenterDelta | |||
) | [inline] |
References CutCellMoments< dim >::changeMomentCoordinates().
Referenced by CutCellMoments< dim >::addMomentMaps().
void CutCellMoments< 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 | |||
) | [inline] |
References dim, CutCellMoments< dim >::fullCellQuadrature(), CutCellMoments< dim >::getBdEBMoment(), CutCellMoments< dim >::getBdMoment(), LSProblem< dim >::getMonomialLocMapDegreeP(), LSProblem< dim >::getMonomialLocMapDegreePLess1(), LARGEINTVAL, IFData< dim >::m_allVerticesIn, CutCellMoments< dim >::m_bdCutCellMoments, CutCellMoments< dim >::m_EBmoments, CutCellMoments< dim >::m_iFData, and CutCellMoments< dim >::m_moments.
Referenced by CutCellMoments< dim >::addMomentMaps().
Real CutCellMoments< dim >::changeMomentCoordinates | ( | PthMoment & | a_refinedMomentMap, | |
const IndexTM< int, dim > & | a_monomial, | |||
const IndexTM< Real, dim > & | a_refinedCenterDelta | |||
) | [inline] |
References MayDay::Abort(), dim, i, j, and k.
Referenced by CutCellMoments< dim >::addMoments(), CutCellMoments< dim >::getBdEBMoment(), CutCellMoments< 1 >::getBdMoment(), and CutCellMoments< dim >::getBdMoment().
void CutCellMoments< dim >::initialize | ( | CutCellMoments< dim > & | a_refinedCutCell | ) | [inline] |
void CutCellMoments< dim >::initializeMap | ( | PthMoment & | a_map1, | |
PthMoment & | a_map2 | |||
) | [inline] |
Referenced by CutCellMoments< 1 >::initialize(), and CutCellMoments< dim >::initialize().
void CutCellMoments< dim >::initializeMap | ( | PthMomentLesserDimension & | a_map1, | |
PthMomentLesserDimension & | a_map2 | |||
) | [inline] |
void CutCellMoments< dim >::initializeMap | ( | OneDMoments & | a_map1, | |
OneDMoments & | a_map2 | |||
) | [inline] |
void CutCellMoments< dim >::computeResiduals | ( | const int & | a_order, | |
const int & | a_degreeP, | |||
const bool & | a_useConstraints | |||
) | [inline] |
References Abs(), CutCellMoments< dim >::computeRhs(), dim, i, j, CutCellMoments< dim >::m_EBmoments, CutCellMoments< dim >::m_iFData, LSProblem< dim >::m_matrix, CutCellMoments< dim >::m_moments, LSProblem< dim >::m_monoLocP, LSProblem< dim >::m_monoLocPLess1, LSProblem< dim >::m_numP, LSProblem< dim >::m_numPLess1, and CutCellMoments< dim >::m_residual.
Referenced by CutCellMoments< dim >::computeMoments().
void CutCellMoments< dim >::computeResiduals | ( | const Vector< CutCellMoments< dim > > & | a_refinedCCMoms, | |
const int & | a_degreeP | |||
) | [inline] |
References i, LARGEREALVAL, and CutCellMoments< dim >::m_residual.
Real CutCellMoments< dim >::getMoment | ( | const IvDim & | a_mono, | |
const EBorVol & | a_EBorVOL | |||
) | const [inline] |
References MayDay::Abort(), EBMoment, LARGEREALVAL, CutCellMoments< dim >::m_EBmoments, CutCellMoments< dim >::m_moments, and VolMoment.
Referenced by CutCellMoments< 1 >::getCentroid(), CutCellMoments< dim >::getCentroid(), CutCellMoments< 1 >::getMoment(), CutCellMoments< 1 >::getVol(), and CutCellMoments< dim >::getVol().
Real CutCellMoments< dim >::getVol | ( | const EBorVol & | a_EBorVol | ) | const [inline] |
References dim, and CutCellMoments< dim >::getMoment().
Referenced by CutCellMoments< 1 >::getCentroid(), and CutCellMoments< dim >::getCentroid().
Real CutCellMoments< dim >::getResidual | ( | const int & | a_iDegree, | |
const int & | a_normJ | |||
) | const [inline] |
References CutCellMoments< dim >::m_residual.
bool CutCellMoments< dim >::isCovered | ( | ) | const [inline] |
References CutCellMoments< dim >::m_iFData.
bool CutCellMoments< dim >::isRegular | ( | ) | const [inline] |
References CutCellMoments< dim >::m_bdCCOn, and CutCellMoments< dim >::m_iFData.
void CutCellMoments< dim >::print | ( | ostream & | out | ) | const [inline] |
References dim, CutCellMoments< dim >::m_bdCutCellMoments, CutCellMoments< dim >::m_EBmoments, CutCellMoments< dim >::m_iFData, and CutCellMoments< dim >::m_moments.
Referenced by CutCellMoments< dim >::dump(), and operator<<().
void CutCellMoments< dim >::dump | ( | ) | const [inline] |
References pout(), and CutCellMoments< dim >::print().
void CutCellMoments< dim >::printMoments | ( | ) | [inline] |
References CutCellMoments< dim >::m_EBmoments, CutCellMoments< dim >::m_moments, and pout().
void CutCellMoments< dim >::printBdMoments | ( | ) | [inline] |
References dim, CutCellMoments< dim >::getBdCutCellMoments(), and pout().
void CutCellMoments< dim >::operator= | ( | const CutCellMoments< dim > & | a_cutCellMoments | ) | [inline] |
PthMoment CutCellMoments< dim >::m_moments |
Referenced by CutCellMoments< 1 >::addBdMoments(), CutCellMoments< dim >::addBdMoments(), CutCellMoments< dim >::addMomentMaps(), LSProblem< dim >::computeBounds(), CutCellMoments< 1 >::computeMoments(), CutCellMoments< dim >::computeMoments(), CutCellMoments< 1 >::computeMomentsUsingBinomial(), CutCellMoments< dim >::computeResiduals(), CutCellMoments< 1 >::getBdMoment(), CutCellMoments< dim >::getBdMoment(), CutCellMoments< 1 >::getMoment(), CutCellMoments< dim >::getMoment(), CutCellMoments< 1 >::initialize(), CutCellMoments< dim >::initialize(), CutCellMoments< 1 >::operator=(), CutCellMoments< dim >::operator=(), CutCellMoments< 1 >::print(), CutCellMoments< dim >::print(), CutCellMoments< dim >::printMoments(), and CutCellMoments< 1 >::simpleComputeMoments().
PthMoment CutCellMoments< dim >::m_EBmoments |
Referenced by CutCellMoments< dim >::addBdMoments(), CutCellMoments< dim >::addMomentMaps(), LSProblem< dim >::computeBounds(), CutCellMoments< dim >::computeMoments(), CutCellMoments< dim >::computeResiduals(), CutCellMoments< dim >::computeRhs(), CutCellMoments< dim >::getBdEBMoment(), CutCellMoments< dim >::getMoment(), CutCellMoments< 1 >::initialize(), CutCellMoments< dim >::initialize(), CutCellMoments< dim >::operator=(), CutCellMoments< dim >::print(), and CutCellMoments< dim >::printMoments().
BdCutCellMoments CutCellMoments< dim >::m_bdCutCellMoments |
Referenced by CutCellMoments< dim >::addBdMoments(), CutCellMoments< dim >::addMomentMaps(), CutCellMoments< dim >::computeMoments(), CutCellMoments< dim >::computeRhs(), CutCellMoments< dim >::CutCellMoments(), CutCellMoments< dim >::getBdCutCellMoments(), CutCellMoments< dim >::initialize(), CutCellMoments< dim >::operator=(), and CutCellMoments< dim >::print().
IFData<dim> CutCellMoments< dim >::m_iFData |
Referenced by CutCellMoments< 1 >::addBdMoments(), CutCellMoments< dim >::addBdMoments(), CutCellMoments< dim >::addMomentMaps(), LSProblem< dim >::computeBounds(), CutCellMoments< 1 >::computeMoments(), CutCellMoments< dim >::computeMoments(), CutCellMoments< dim >::computeResiduals(), CutCellMoments< dim >::computeRhs(), CutCellMoments< dim >::fullCellQuadrature(), CutCellMoments< 1 >::getBdMoment(), CutCellMoments< 1 >::isCovered(), CutCellMoments< dim >::isCovered(), CutCellMoments< 1 >::isRegular(), CutCellMoments< dim >::isRegular(), CutCellMoments< 1 >::operator=(), CutCellMoments< dim >::operator=(), CutCellMoments< 1 >::print(), CutCellMoments< dim >::print(), and CutCellMoments< dim >::refine().
bool CutCellMoments< dim >::m_bdCCOn |
Vector<Vector<Real> > CutCellMoments< dim >::m_residual |