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

#include <ExposedPoints.h>

Collaboration diagram for ExposedPoints:
Collaboration graph
[legend]

Public Types

enum  ExposedPointTypeEnum { exposedPointIsNeededForDiscretization, exposedDiscretization }
 
enum  InterpolationQualityEnum {
  canInterpolateQuality1 =0, canInterpolateQuality2, canInterpolateQuality3, canInterpolateWithExtrapolation,
  canInterpolateQualityBad, canInterpolateQualityVeryBad, canNotInterpolate, numberOfInterpolationQualityTypes
}
 

Public Member Functions

 ExposedPoints ()
 
 ~ExposedPoints ()
 
void setFillExposedInterpolationPoints (bool trueOrFalse)
 
int getNumberOfExposedPoints (const int grid=-1) const
 
int initialize (CompositeGrid &cg1, CompositeGrid &cg2, int stencilWidth=-1)
 
int interpolate (realCompositeGridFunction &u1, OGFunction *TZFlow=NULL, real t=0.)
 
void setAssumeInterpolationNeighboursAreAssigned (const bool trueOrFalse=true)
 
void setExposedPointType (const ExposedPointTypeEnum type)
 
int setInterpolationWidth (int width)
 : Set the width the interpolation stencil.
 
int setNumberOfValidGhostPoints (int numValidGhost)
 : Set the number of valid ghost points that can be used when interpolating from a grid function
 
int setInterpolationOption (int option)
 : Choose the interpolation option
 

Static Public Attributes

static int debug =0
 
static int info =0
 

Static Protected Member Functions

static int getInterpolationStencil (CompositeGrid &cg1, const int grid2, const int numToCheck, IntegerArray &ia, IntegerArray &ibg, RealArray &r2, IntegerArray &interpolationQuality, IntegerArray &interpoleeGrid, IntegerArray &interpoleeLocation, IntegerArray &interpolationPoint, IntegerArray &variableInterpolationWidth, RealArray &interpolationCoordinates)
 
static int checkForBetterQualityInterpolation (CompositeGrid &cg1, const int gridI, const int numToCheck, IntegerArray &ia, IntegerArray &ic, const RealArray &x, IntegerArray &interpolationQuality, IntegerArray &interpoleeGrid, IntegerArray &interpoleeLocation, IntegerArray &interpolationPoint, IntegerArray &variableInterpolationWidth, RealArray &interpolationCoordinates)
 Check to see if a point x can interpolate from gridI with a better quality interpolation.
 
static int interpolatePoints (const realCompositeGridFunction &u, RealArray &uInterpolated_, int *numDonor, const IntegerArray &ia_, const IntegerArray *ib, const IntegerArray &interpoleeGrid_, const IntegerArray &interpoleeLocation_, const IntegerArray &interpolationPoint_, const IntegerArray &variableInterpolationWidth_, const RealArray &interpolationCoordinates_, const Range &R0=nullRange, const Range &R1=nullRange, const Range &R2=nullRange, const Range &R3=nullRange, const Range &R4=nullRange)
 

Protected Attributes

ExposedPointTypeEnum exposedPointType
 
int isInitialized
 
int ipogIsInitialized
 
int numberOfExposedPoints
 
int assumeInterpolationNeighboursAreAssigned
 
int interpolationWidth
 
int numberOfValidGhostPoints
 
int useIPOG
 
InterpolatePointsOnAGridipog
 
IntegerArray periodicUpdateNeeded
 
IntegerArray ia_
 
IntegerArray numberPerGrid
 
RealArray x_
 
int * numDonor
 
IntegerArrayib
 
IntegerArray exposedInterpoleeGrid
 
IntegerArray exposedInterpoleeLocation
 
IntegerArray exposedInterpolationPoint
 
IntegerArray exposedVariableInterpolationWidth
 
IntegerArray exposedInterpolationQuality
 
RealArray exposedInterpolationCoordinates
 
bool fillExposedInterpolationPoints
 

Static Protected Attributes

static FILE * debugFile =NULL
 

Member Enumeration Documentation

Enumerator
exposedPointIsNeededForDiscretization 
exposedDiscretization 
Enumerator
canInterpolateQuality1 
canInterpolateQuality2 
canInterpolateQuality3 
canInterpolateWithExtrapolation 
canInterpolateQualityBad 
canInterpolateQualityVeryBad 
canNotInterpolate 
numberOfInterpolationQualityTypes 

Constructor & Destructor Documentation

ExposedPoints::ExposedPoints ( )
ExposedPoints::~ExposedPoints ( )

References ib, ipog, and numDonor.

Member Function Documentation

int ExposedPoints::checkForBetterQualityInterpolation ( CompositeGrid cg1,
const int  gridI,
const int  numToCheck,
IntegerArray ia,
IntegerArray ic,
const RealArray x,
IntegerArray interpolationQuality,
IntegerArray interpoleeGrid,
IntegerArray interpoleeLocation,
IntegerArray interpolationPoint,
IntegerArray variableInterpolationWidth,
RealArray interpolationCoordinates 
)
staticprotected

Check to see if a point x can interpolate from gridI with a better quality interpolation.

/param gridI (input): try interpolating from this grid. /param interpolationQuality (input/output) : on input the current quality, on output the new quality /param inverseGrid, inverseCoordinates (input/output) :

References assert, debug, display(), getInterpolationStencil(), Mapping::inverseMap(), Mapping::inverseMapS(), GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), r, R, and Mapping::useRobustInverse().

Referenced by initialize().

int ExposedPoints::getInterpolationStencil ( CompositeGrid cg1,
const int  grid2,
const int  numToCheck,
IntegerArray ia,
IntegerArray ibg,
RealArray r2,
IntegerArray interpolationQuality,
IntegerArray interpoleeGrid,
IntegerArray interpoleeLocation,
IntegerArray interpolationPoint,
IntegerArray variableInterpolationWidth,
RealArray interpolationCoordinates 
)
staticprotected
int ExposedPoints::getNumberOfExposedPoints ( const int  grid = -1) const

References Overture::abort(), and printF().

int ExposedPoints::initialize ( CompositeGrid cg1,
CompositeGrid cg2,
int  stencilWidth = -1 
)

References Overture::abort(), abs(), assert, assumeInterpolationNeighboursAreAssigned, aString, bb, MappedGrid::boundaryCondition(), GridCollection::boundingBox, boundingBox, c, canInterpolateQuality1, canNotInterpolate, MappedGrid::center(), center, checkForBetterQualityInterpolation(), COORD0, COORD1, COORD2, debug, debugFile, delta, dimension, MappedGrid::dimension(), MappedGrid::discretizationWidth(), displayMask(), dx, End, exposedDiscretization, exposedInterpolationCoordinates, exposedInterpolationPoint, exposedInterpolationQuality, exposedInterpoleeGrid, exposedInterpoleeLocation, exposedPointIsNeededForDiscretization, exposedPointType, exposedVariableInterpolationWidth, extendedGridIndexRange(), fillExposedInterpolationPoints, FOR_2D, getIndex(), getInterpolationStencil(), ParallelUtility::getLocalArrayBounds(), getLocalArrayWithGhostBoundaries(), MappedGrid::getRectangularGridParameters(), gid, MappedGrid::gridIndexRange(), i2, ia, ia_, ib, ig, MappedGrid::indexRange(), info, CompositeGrid::interpolationPoint, CompositeGrid::interpoleeGrid, interpoleeGrid, MappingRC::inverseMap(), MappingRC::inverseMapS(), ip, ipogIsInitialized, isInitialized, MappedGrid::isRectangular(), mask, MappedGrid::mask(), mask1, mask2, MASK5, MASK55, MASKIN, max(), min(), minmax1, minmax2, minmax3, HDF_DataBase::mount(), GenericDataBase::normalMode, GenericDataBase::noStreamMode, NULL, GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), numberOfExposedPoints, CompositeGrid::numberOfInterpolationPoints, numberOfInterpolationQualityTypes, numberPerGrid, numDonor, OV_ABORT, printF(), HDF_DataBase::put(), CompositeGrid::put(), R, GenericGridCollection::refinementLevelNumber, saveMask, HDF_DataBase::setMode(), sPrintF(), Start, MappedGrid::THEcenter, MappedGrid::THEvertex, HDF_DataBase::unmount(), MappedGrid::update(), useIPOG, MappingRC::useRobustInverse(), x, and x_.

int ExposedPoints::interpolate ( realCompositeGridFunction u1,
OGFunction TZFlow = NULL,
real  t = 0. 
)
int ExposedPoints::interpolatePoints ( const realCompositeGridFunction u,
RealArray uInterpolated_,
int *  numDonor,
const IntegerArray ia_,
const IntegerArray ib,
const IntegerArray interpoleeGrid_,
const IntegerArray interpoleeLocation_,
const IntegerArray interpolationPoint_,
const IntegerArray variableInterpolationWidth_,
const RealArray interpolationCoordinates_,
const Range &  R0 = nullRange,
const Range &  R1 = nullRange,
const Range &  R2 = nullRange,
const Range &  R3 = nullRange,
const Range &  R4 = nullRange 
)
staticprotected
void ExposedPoints::setAssumeInterpolationNeighboursAreAssigned ( const bool  trueOrFalse = true)
void ExposedPoints::setExposedPointType ( const ExposedPointTypeEnum  type)

References exposedPointType.

void ExposedPoints::setFillExposedInterpolationPoints ( bool  trueOrFalse)
int ExposedPoints::setInterpolationOption ( int  option)

: Choose the interpolation option

Parameters
option(input) : 1=use new IPOG interpolant (InterpolatePointsOnAGrid) (this option must be used in parallel).

References useIPOG.

int ExposedPoints::setInterpolationWidth ( int  width)

: Set the width the interpolation stencil.

References interpolationWidth.

int ExposedPoints::setNumberOfValidGhostPoints ( int  numValidGhost)

: Set the number of valid ghost points that can be used when interpolating from a grid function

References numberOfValidGhostPoints.

Member Data Documentation

int ExposedPoints::assumeInterpolationNeighboursAreAssigned
protected
int ExposedPoints::debug =0
static
FILE * ExposedPoints::debugFile =NULL
staticprotected
RealArray ExposedPoints::exposedInterpolationCoordinates
protected

Referenced by initialize(), and interpolate().

IntegerArray ExposedPoints::exposedInterpolationPoint
protected

Referenced by initialize(), and interpolate().

IntegerArray ExposedPoints::exposedInterpolationQuality
protected

Referenced by initialize().

IntegerArray ExposedPoints::exposedInterpoleeGrid
protected

Referenced by initialize(), and interpolate().

IntegerArray ExposedPoints::exposedInterpoleeLocation
protected

Referenced by initialize(), and interpolate().

ExposedPointTypeEnum ExposedPoints::exposedPointType
protected
IntegerArray ExposedPoints::exposedVariableInterpolationWidth
protected

Referenced by initialize(), and interpolate().

bool ExposedPoints::fillExposedInterpolationPoints
protected
IntegerArray ExposedPoints::ia_
protected

Referenced by initialize(), and interpolate().

IntegerArray* ExposedPoints::ib
protected
int ExposedPoints::info =0
static

Referenced by initialize().

int ExposedPoints::interpolationWidth
protected
InterpolatePointsOnAGrid* ExposedPoints::ipog
protected
int ExposedPoints::ipogIsInitialized
protected
int ExposedPoints::isInitialized
protected
int ExposedPoints::numberOfExposedPoints
protected

Referenced by initialize(), and interpolate().

int ExposedPoints::numberOfValidGhostPoints
protected
IntegerArray ExposedPoints::numberPerGrid
protected

Referenced by initialize(), and interpolate().

int* ExposedPoints::numDonor
protected
IntegerArray ExposedPoints::periodicUpdateNeeded
protected

Referenced by interpolate().

int ExposedPoints::useIPOG
protected
RealArray ExposedPoints::x_
protected

Referenced by initialize(), and interpolate().


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