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

#include <InterpolatePoints.h>

Public Types

enum  InterpolationStatusEnum { notInterpolated =0, interpolated, extrapolated }
 
enum  { defaultNumberOfValidGhostPoints =-123456, interpolateAllGhostPoints =-234567 }
 

Public Member Functions

 InterpolatePoints ()
 
 ~InterpolatePoints ()
 
int interpolatePoints (const RealArray &positionToInterpolate, const realCompositeGridFunction &u, RealArray &uInterpolated, const Range &R0=nullRange, const Range &R1=nullRange, const Range &R2=nullRange, const Range &R3=nullRange, const Range &R4=nullRange)
 
int interpolationCoefficients (const CompositeGrid &cg, RealArray &uInterpolationCoeff)
 
int interpolateAllPoints (const realCompositeGridFunction &uFrom, realCompositeGridFunction &uTo, const Range &componentsFrom=nullRange, const Range &componentsTo=nullRange, const int numberOfGhostPointsToInterpolate=interpolateAllGhostPoints)
 
int interpolateAllPoints (const realCompositeGridFunction &uFrom, realMappedGridFunction &uTo, const Range &componentsFrom=nullRange, const Range &componentsTo=nullRange, const int numberOfGhostPointsToInterpolate=interpolateAllGhostPoints)
 
int buildInterpolationInfo (const RealArray &positionToInterpolate, CompositeGrid &cg, RealArray *projectedPoints=NULL, IntegerArray *checkTheseGrids=NULL)
 
int interpolatePoints (const realCompositeGridFunction &u, RealArray &uInterpolated, const Range &R0=nullRange, const Range &R1=nullRange, const Range &R2=nullRange, const Range &R3=nullRange, const Range &R4=nullRange)
 
const IntegerArraygetStatus () const
 
int getInterpolationInfo (CompositeGrid &cg, IntegerArray &indexValues, IntegerArray &interpoleeGrid) const
 
int setInfoLevel (int info)
 
int setInterpolationOffset (real widthInGridLines)
 
int setNumberOfValidGhostPoints (int numValidGhost=defaultNumberOfValidGhostPoints)
 : Set the number of valid ghost points
 

Static Public Attributes

static int debug =0
 

Protected Attributes

IntegerArrayindirection
 
IntegerArrayinterpolationLocation
 
IntegerArrayinterpolationLocationPlus
 
RealArrayinterpolationCoordinates
 
IntegerArray numberOfInterpolationPoints
 
IntegerArray status
 
real interpolationOffset
 
int infoLevel
 
int numberOfValidGhostPoints
 

Member Enumeration Documentation

anonymous enum
Enumerator
defaultNumberOfValidGhostPoints 
interpolateAllGhostPoints 
Enumerator
notInterpolated 
interpolated 
extrapolated 

Constructor & Destructor Documentation

InterpolatePoints::InterpolatePoints ( )
InterpolatePoints::~InterpolatePoints ( )

Member Function Documentation

int InterpolatePoints::buildInterpolationInfo ( const RealArray positionToInterpolate,
CompositeGrid cg,
RealArray projectedPoints = NULL,
IntegerArray checkTheseGrids = NULL 
)

References abs(), bb, MappedGrid::boundaryCondition(), MappedGrid::boundingBox(), boundingBox, CanInterpolate::canInterpolate(), debug, defaultNumberOfValidGhostPoints, delta, dimension, DIMENSION, MappedGrid::dimension(), MappedGrid::discretizationWidth(), display(), DR, dr, DRA, End, extendedGridIndexRange(), extrapolated, fabs(), MappedGrid::getGridType(), MappingRC::getMapping(), MappingProjectionParameters::getRealArray(), MappedGrid::gridIndexRange(), gridIndexRange, gridSpacing, GRIDSPACING, MappedGrid::gridSpacing(), ia, IA, IA0, indexRange, INDEXRANGE, MappedGrid::indexRange(), indirection, infoLevel, interpolated, interpolationCoordinates, interpolationLocation, interpolationLocationPlus, interpolationOffset, Mapping::inverseMap(), Mapping::inverseMapS(), ip, IP, ip0, IP1, ip1, iRange, MappedGrid::isAllVertexCentered(), isPeriodic, MappedGrid::isPeriodic(), MappedGrid::mapping(), mask, MASK, MappedGrid::mask(), max(), min(), MODR, notInterpolated, NULL, Overture::nullRealDistributedArray(), GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), numberOfInterpolationPoints, NUMBEROFINTERPOLATIONPOINTS, numberOfValidGhostPoints, printF(), Mapping::project(), Mapping::projectS(), MappingProjectionParameters::r, R, RA, ra, rbb, REAL_EPSILON, RPROJECT, sPrintF(), Start, status, STATUS, MappedGrid::THEboundingBox, MappedGrid::THEcenter, MappedGrid::THEvertex, GenericGrid::unstructuredGrid, CompositeGrid::update(), X, x, XA, and XPROJECT.

Referenced by Integrate::computeStitchedSurfaceWeights(), Integrate::computeStitchedSurfaceWeightsOld(), PlotIt::contourCuts(), displayValuesAtAPoint(), SurfaceStitcher::enlargeGapWidth(), and interpolatePoints().

int InterpolatePoints::getInterpolationInfo ( CompositeGrid cg,
IntegerArray indexValues,
IntegerArray interpoleeGrid 
) const
const IntegerArray & InterpolatePoints::getStatus ( ) const
int InterpolatePoints::interpolateAllPoints ( const realCompositeGridFunction uFrom,
realCompositeGridFunction uTo,
const Range &  componentsFrom = nullRange,
const Range &  componentsTo = nullRange,
const int  numberOfGhostPointsToInterpolate = interpolateAllGhostPoints 
)
int InterpolatePoints::interpolateAllPoints ( const realCompositeGridFunction uFrom,
realMappedGridFunction uTo,
const Range &  componentsFrom = nullRange,
const Range &  componentsTo = nullRange,
const int  numberOfGhostPointsToInterpolate = interpolateAllGhostPoints 
)
int InterpolatePoints::interpolatePoints ( const RealArray positionToInterpolate,
const realCompositeGridFunction u,
RealArray uInterpolated,
const Range &  R0 = nullRange,
const Range &  R1 = nullRange,
const Range &  R2 = nullRange,
const Range &  R3 = nullRange,
const Range &  R4 = nullRange 
)
int InterpolatePoints::interpolatePoints ( const realCompositeGridFunction u,
RealArray uInterpolated,
const Range &  R0 = nullRange,
const Range &  R1 = nullRange,
const Range &  R2 = nullRange,
const Range &  R3 = nullRange,
const Range &  R4 = nullRange 
)
int InterpolatePoints::interpolationCoefficients ( const CompositeGrid cg,
RealArray uInterpolationCoeff 
)
int InterpolatePoints::setInfoLevel ( int  info)

References infoLevel.

Referenced by SurfaceStitcher::enlargeGapWidth(), and main().

int InterpolatePoints::setInterpolationOffset ( real  widthInGridLines)
int InterpolatePoints::setNumberOfValidGhostPoints ( int  numValidGhost = defaultNumberOfValidGhostPoints)

: Set the number of valid ghost points

References numberOfValidGhostPoints.

Member Data Documentation

int InterpolatePoints::debug =0
static

Referenced by buildInterpolationInfo().

IntegerArray* InterpolatePoints::indirection
protected
int InterpolatePoints::infoLevel
protected
RealArray* InterpolatePoints::interpolationCoordinates
protected
IntegerArray* InterpolatePoints::interpolationLocation
protected
IntegerArray* InterpolatePoints::interpolationLocationPlus
protected
real InterpolatePoints::interpolationOffset
protected
IntegerArray InterpolatePoints::numberOfInterpolationPoints
protected
int InterpolatePoints::numberOfValidGhostPoints
protected
IntegerArray InterpolatePoints::status
protected

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