Overture
Version 25
|
#include <ExposedPoints.h>
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) |
Static Protected Attributes | |
static FILE * | debugFile =NULL |
ExposedPoints::ExposedPoints | ( | ) |
|
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().
|
staticprotected |
References Overture::abort(), assert, axis3, boundaryCondition, canInterpolateQuality1, canInterpolateQualityBad, canInterpolateWithExtrapolation, canNotInterpolate, debug, debugFile, End, extendedIndexRange, fabs(), FALSE, fmod(), gridSpacing, i2, indexRange, interpolationWidth, CompositeGrid::interpolationWidth, MASK2, mask2, MASK2_W4B, MASK2_W4C, MASK2_W5B, MASK2_W5C, MASK2D, max(), NULL, GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), Start, and TRUE.
Referenced by checkForBetterQualityInterpolation(), and initialize().
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. |
||
) |
References abs(), MappedGrid::boundaryCondition(), InterpolatePointsOnAGrid::buildInterpolationInfo(), center, debug, debugFile, exposedInterpolationCoordinates, exposedInterpolationPoint, exposedInterpoleeGrid, exposedInterpoleeLocation, exposedVariableInterpolationWidth, fabs(), doubleGridCollectionFunction::getComponentBase(), doubleGridCollectionFunction::getComponentBound(), doubleCompositeGridFunction::getCompositeGrid(), getLocalArrayWithGhostBoundaries(), ParallelUtility::getMaxValue(), InterpolatePointsOnAGrid::getStatus(), ParallelUtility::getSum(), InterpolatePointsOnAGrid::getTotalNumberOfPointsAssigned(), i2, ia, ia_, ib, InterpolatePointsOnAGrid::interpolatePoints(), interpolatePoints(), interpolationWidth, ipog, ipogIsInitialized, isInitialized, max(), min(), InterpolatePointsOnAGrid::notInterpolated, NULL, GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), numberOfExposedPoints, numberOfValidGhostPoints, numberPerGrid, numDonor, OV_ABORT, periodicUpdate(), periodicUpdateNeeded, printF(), R, InterpolatePointsOnAGrid::setAssignAllPoints(), InterpolatePointsOnAGrid::setInfoLevel(), InterpolatePointsOnAGrid::setInterpolationWidth(), InterpolatePointsOnAGrid::setNumberOfValidGhostPoints(), MappedGrid::THEcenter, MappedGrid::THEvertex, u1g, UI, useIPOG, x, x_, XY, and XYZ.
|
staticprotected |
References Overture::abort(), dr, doubleGridCollectionFunction::getComponentBase(), doubleGridCollectionFunction::getComponentBound(), doubleCompositeGridFunction::getCompositeGrid(), gid, MappedGrid::gridIndexRange(), MappedGrid::gridSpacing(), i2, interpolationCoordinates, interpoleeLocation, GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), Q32, Q33, UG, uInterpolated, and variableInterpolationWidth.
Referenced by interpolate().
void ExposedPoints::setAssumeInterpolationNeighboursAreAssigned | ( | const bool | trueOrFalse = true | ) |
References assumeInterpolationNeighboursAreAssigned.
void ExposedPoints::setExposedPointType | ( | const ExposedPointTypeEnum | type | ) |
References exposedPointType.
void ExposedPoints::setFillExposedInterpolationPoints | ( | bool | trueOrFalse | ) |
References fillExposedInterpolationPoints.
int ExposedPoints::setInterpolationOption | ( | int | option | ) |
: Choose the interpolation option
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.
|
protected |
Referenced by ExposedPoints(), initialize(), and setAssumeInterpolationNeighboursAreAssigned().
|
static |
Referenced by checkForBetterQualityInterpolation(), getInterpolationStencil(), initialize(), and interpolate().
|
staticprotected |
Referenced by getInterpolationStencil(), initialize(), and interpolate().
|
protected |
Referenced by initialize(), and interpolate().
|
protected |
Referenced by initialize(), and interpolate().
|
protected |
Referenced by initialize().
|
protected |
Referenced by initialize(), and interpolate().
|
protected |
Referenced by initialize(), and interpolate().
|
protected |
Referenced by ExposedPoints(), initialize(), and setExposedPointType().
|
protected |
Referenced by initialize(), and interpolate().
|
protected |
Referenced by ExposedPoints(), initialize(), and setFillExposedInterpolationPoints().
|
protected |
Referenced by initialize(), and interpolate().
|
protected |
Referenced by ExposedPoints(), initialize(), interpolate(), and ~ExposedPoints().
|
static |
Referenced by initialize().
|
protected |
Referenced by ExposedPoints(), getInterpolationStencil(), interpolate(), and setInterpolationWidth().
|
protected |
Referenced by ExposedPoints(), interpolate(), and ~ExposedPoints().
|
protected |
Referenced by ExposedPoints(), initialize(), and interpolate().
|
protected |
Referenced by ExposedPoints(), initialize(), and interpolate().
|
protected |
Referenced by initialize(), and interpolate().
|
protected |
Referenced by ExposedPoints(), interpolate(), and setNumberOfValidGhostPoints().
|
protected |
Referenced by initialize(), and interpolate().
|
protected |
Referenced by ExposedPoints(), initialize(), interpolate(), and ~ExposedPoints().
|
protected |
Referenced by interpolate().
|
protected |
Referenced by ExposedPoints(), initialize(), interpolate(), and setInterpolationOption().
|
protected |
Referenced by initialize(), and interpolate().