Overture  Version 25
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Interpolant Class Reference

#include <Interpolant.h>

Inheritance diagram for Interpolant:
Inheritance graph
[legend]
Collaboration diagram for Interpolant:
Collaboration graph
[legend]

Public Types

enum  InterpolationMethodEnum { standard, optimized, optimizedC, numberOfInterpolationMethods }
 
enum  ExplicitInterpolationStorageOptionEnum { precomputeAllCoefficients, precomputeSomeCoefficients, precomputeNoCoefficients }
 
enum  ImplicitInterpolationMethodEnum { directSolve, sparseSolve, iterateToInterpolate }
 
enum  InterpolationOptionEnum { interpolateOverlappingRefinementPoints, interpolateAllRefinementBoundaries, interpolateHiddenRefinementPoints }
 

Public Member Functions

 Interpolant ()
 
 Interpolant (CompositeGrid &cg)
 
 Interpolant (GridCollection &gc)
 
 Interpolant (const Interpolant &interpolant, const CopyType copyType=DEEP)
 
virtual ~Interpolant ()
 
Interpolantoperator= (const Interpolant &interpolant)
 
void reference (const Interpolant &interpolant)
 
virtual void breakReference ()
 
void updateToMatchGrid (CompositeGrid &cg, int refinementLevel=0)
 
int interpolate (realCompositeGridFunction &u, const Range &C0=nullRange, const Range &C1=nullRange, const Range &C2=nullRange)
 
int interpolate (realGridCollectionFunction &u, const Range &C0=nullRange, const Range &C1=nullRange, const Range &C2=nullRange)
 
int interpolate (int gridToInterpolate, realCompositeGridFunction &u, const Range &C0=nullRange, const Range &C1=nullRange, const Range &C2=nullRange)
 
int interpolate (realCompositeGridFunction &u, const IntegerArray &gridsToInterpolate, const Range &C0=nullRange, const Range &C1=nullRange, const Range &C2=nullRange)
 
int interpolate (realCompositeGridFunction &u, const IntegerArray &gridsToInterpolate, const IntegerArray &gridsToInterpolateFrom, const Range &C0=nullRange, const Range &C1=nullRange, const Range &C2=nullRange)
 
int interpolate (realArray &ui, int gridToInterpolate, int interpoleeGrid, realCompositeGridFunction &u, const Range &C0=nullRange, const Range &C1=nullRange, const Range &C2=nullRange)
 
bool interpolationIsExplicit () const
 
bool interpolationIsImplicit () const
 
int setInterpolationMethod (InterpolationMethodEnum method)
 
int setMaximumNumberOfIterations (int maximumNumberOfIterations)
 
int setExplicitInterpolationStorageOption (ExplicitInterpolationStorageOptionEnum option)
 
int setImplicitInterpolationMethod (ImplicitInterpolationMethodEnum method)
 
ImplicitInterpolationMethodEnum getImplicitInterpolationMethod () const
 
int setImplicitInterpolationTolerance (real tol)
 
int setInterpolationOption (InterpolationOptionEnum option, bool trueOrFalse)
 
int getInterpolationOption (InterpolationOptionEnum option)
 
int setInterpolateRefinements (InterpolateRefinements &interpolateRefinements)
 
int setMaximumRefinementLevelToInterpolate (int maxLevelToInterpolate)
 Only interpolate grids on refinement levels that are less than or equal to a given level.
 
int getMaximumRefinementLevelToInterpolate () const
 return the maximum refinement level to interpolate
 
virtual real sizeOf (FILE *file=NULL) const
 
int printMyStatistics (FILE *file=stdout)
 
int interpolateRefinementLevel (const int refinementLevel, realCompositeGridFunction &u, const Range &C0=nullRange, const Range &C1=nullRange, const Range &C2=nullRange)
 
- Public Member Functions inherited from ReferenceCounting
 ReferenceCounting ()
 
 ReferenceCounting (const ReferenceCounting &x, const CopyType ct=DEEP)
 
virtual ~ReferenceCounting ()
 
Integer incrementReferenceCount ()
 
Integer decrementReferenceCount ()
 
Integer getReferenceCount () const
 
Logical uncountedReferencesMayExist ()
 
virtual aString getClassName () const
 
Integer getGlobalID () const
 
void setGlobalID (int id)
 
virtual void consistencyCheck () const
 

Static Public Member Functions

static int printStatistics (FILE *file=stdout)
 
static int testInterpolation (CompositeGrid &cg, int problemType)
 

Public Attributes

BoundaryConditionParameters bcParams
 
int debug
 
RCData * rcData
 

Protected Member Functions

int getComponentRanges (const Range &C0, const Range &C1, const Range &C2, Range C[4], realCompositeGridFunction &u)
 

Member Enumeration Documentation

Enumerator
precomputeAllCoefficients 
precomputeSomeCoefficients 
precomputeNoCoefficients 
Enumerator
directSolve 
sparseSolve 
iterateToInterpolate 
Enumerator
standard 
optimized 
optimizedC 
numberOfInterpolationMethods 
Enumerator
interpolateOverlappingRefinementPoints 
interpolateAllRefinementBoundaries 
interpolateHiddenRefinementPoints 

Constructor & Destructor Documentation

Interpolant::Interpolant ( )
Interpolant::Interpolant ( CompositeGrid cg)

References updateToMatchGrid().

Interpolant::Interpolant ( GridCollection gc)
Interpolant::Interpolant ( const Interpolant interpolant,
const CopyType  copyType = DEEP 
)

References DEEP, NOCOPY, rcData, reference(), and SHALLOW.

Interpolant::~Interpolant ( )
virtual

Member Function Documentation

void Interpolant::breakReference ( void  )
virtual

Reimplemented from ReferenceCounting.

References rcData, and reference().

int Interpolant::getComponentRanges ( const Range &  C0,
const Range &  C1,
const Range &  C2,
Range  C[4],
realCompositeGridFunction u 
)
protected
Interpolant::ImplicitInterpolationMethodEnum Interpolant::getImplicitInterpolationMethod ( ) const
int Interpolant::getInterpolationOption ( InterpolationOptionEnum  option)
int Interpolant::getMaximumRefinementLevelToInterpolate ( ) const

return the maximum refinement level to interpolate

int Interpolant::interpolate ( realCompositeGridFunction u,
const Range &  C0 = nullRange,
const Range &  C1 = nullRange,
const Range &  C2 = nullRange 
)
int Interpolant::interpolate ( realGridCollectionFunction u,
const Range &  C0 = nullRange,
const Range &  C1 = nullRange,
const Range &  C2 = nullRange 
)
int Interpolant::interpolate ( int  gridToInterpolate,
realCompositeGridFunction u,
const Range &  C0 = nullRange,
const Range &  C1 = nullRange,
const Range &  C2 = nullRange 
)
int Interpolant::interpolate ( realCompositeGridFunction u,
const IntegerArray gridsToInterpolate,
const Range &  C0 = nullRange,
const Range &  C1 = nullRange,
const Range &  C2 = nullRange 
)
int Interpolant::interpolate ( realCompositeGridFunction u,
const IntegerArray gridsToInterpolate,
const IntegerArray gridsToInterpolateFrom,
const Range &  C0 = nullRange,
const Range &  C1 = nullRange,
const Range &  C2 = nullRange 
)
int Interpolant::interpolate ( realArray ui,
int  gridToInterpolate,
int  interpoleeGrid,
realCompositeGridFunction u,
const Range &  C0 = nullRange,
const Range &  C1 = nullRange,
const Range &  C2 = nullRange 
)
int Interpolant::interpolateRefinementLevel ( const int  refinementLevel,
realCompositeGridFunction u,
const Range &  C0 = nullRange,
const Range &  C1 = nullRange,
const Range &  C2 = nullRange 
)
bool Interpolant::interpolationIsExplicit ( ) const
bool Interpolant::interpolationIsImplicit ( ) const
Interpolant & Interpolant::operator= ( const Interpolant interpolant)

References rcData.

int Interpolant::printMyStatistics ( FILE *  file = stdout)

References NULL, printStatistics(), and rcData.

int Interpolant::printStatistics ( FILE *  file = stdout)
static

References max(), and REAL_MIN.

Referenced by printMyStatistics().

void Interpolant::reference ( const Interpolant interpolant)
int Interpolant::setExplicitInterpolationStorageOption ( ExplicitInterpolationStorageOptionEnum  option)
int Interpolant::setImplicitInterpolationMethod ( ImplicitInterpolationMethodEnum  method)
int Interpolant::setImplicitInterpolationTolerance ( real  tol)
int Interpolant::setInterpolateRefinements ( InterpolateRefinements interpolateRefinements)

Referenced by main().

int Interpolant::setInterpolationMethod ( InterpolationMethodEnum  method)
int Interpolant::setInterpolationOption ( InterpolationOptionEnum  option,
bool  trueOrFalse 
)
int Interpolant::setMaximumNumberOfIterations ( int  maximumNumberOfIterations)
int Interpolant::setMaximumRefinementLevelToInterpolate ( int  maxLevelToInterpolate)

Only interpolate grids on refinement levels that are less than or equal to a given level.

This option is used by the error estimator.

real Interpolant::sizeOf ( FILE *  file = NULL) const
virtual

References NULL.

int Interpolant::testInterpolation ( CompositeGrid cg,
int  problemType 
)
static
void Interpolant::updateToMatchGrid ( CompositeGrid cg,
int  refinementLevel = 0 
)

Member Data Documentation

BoundaryConditionParameters Interpolant::bcParams
int Interpolant::debug

Referenced by main(), and testInterpolation().

RCData* Interpolant::rcData

The documentation for this class was generated from the following files: