Overture
Version 25
|
#include <DataPointMapping.h>
Protected Member Functions | |
void | mapScalar (const RealArray &r, RealArray &x, RealArray &xr, MappingParameters ¶ms, int base, int bound, bool computeMap, bool computeMapDerivative) |
int | computeGhostPoints (IndexRangeType &numberOfGhostLinesOld, IndexRangeType &numberOfGhostLinesNew) |
Protected Member Functions inherited from Mapping | |
int | buildMappingParametersDialog (DialogData &dialog) |
int | getMappingParametersOption (const aString &answer, DialogData &dialog, GenericGraphicsInterface &gi) |
: Look for a change to one of the mapping parameters. | |
int | updateMappingParametersDialog (DialogData &dialog) |
void | initializePartition () |
int | mappingHasChanged () |
void | setGridIsValid () |
void | setDefaultMappingBounds (const mappingSpace ms, Bound mappingBound[3][2]) |
void | setDefaultCoordinateSystemBounds (const coordinateSystem cs, Bound csBound[3][2]) |
int | validSide (const int side) const |
int | validAxis (const int axis) const |
void | mappingError (const aString &subName, const int side, const int axis) const |
Friends | |
class | HyperbolicMapping |
DataPointMapping::DataPointMapping | ( | ) |
DataPointMapping::DataPointMapping | ( | const DataPointMapping & | map, |
const CopyType | copyType = DEEP |
||
) |
References DEEP, Mapping::getName(), map(), Mapping::mappingName, Mapping::numberOfGhostPoints, and printF().
DataPointMapping::~DataPointMapping | ( | ) |
References Mapping::debug.
|
virtual |
Reimplemented from Mapping.
References basicInverseS(), and getLocalArrayWithGhostBoundaries().
Referenced by HyperbolicMapping::basicInverse().
|
virtual |
Reimplemented from Mapping.
References Overture::abort(), Mapping::approximateGlobalInverse, axis1, axis2, axis3, Mapping::base, Mapping::bogus, Mapping::bound, Mapping::computeMap, Mapping::computeMapDerivative, D, Mapping::debug, dim, Mapping::domainDimension, dr, dx, End, fabs(), fmod(), Mapping::functionPeriodic, getCPU(), Mapping::getIndex(), getLocalArrayWithGhostBoundaries(), Mapping::getName(), Mapping::getTypeOfCoordinateSingularity(), GRIDINDEXRANGE, ia, INT_2D_ORDER_2, INT_2D_ORDER_2_R, INT_2D_ORDER_2_S, INT_3D_ORDER_2, INT_3D_ORDER_2_R, INT_3D_ORDER_2_S, INT_3D_ORDER_2_T, Mapping::isPeriodic, Mapping::mappingName, mask1, mask2, max(), min(), Mapping::openDebugFiles(), Mapping::pDebugFile, Mapping::polarSingularity, printF(), q03, q03d, q13, q13d, q23, q23d, q2x, q2xr, q2xs, q33, q33d, q3x, q3xr, q3xs, q3xt, r, R, R0, Mapping::rangeDimension, REAL_EPSILON, REAL_MIN, RX, Mapping::signForJacobian, singular, SQRT, Start, ExactLocalInverse::timeForExactInverse, Mapping::useRobustInverse(), ApproximateGlobalInverse::usingRobustInverse(), X, xr, and XY.
Referenced by basicInverse(), and HyperbolicMapping::basicInverseS().
|
protected |
References Mapping::derivativePeriodic, Mapping::domainDimension, End, FALSE, ForBoundary, Mapping::functionPeriodic, Mapping::getBoundaryCondition(), getGhostIndex(), Mapping::getIsPeriodic(), ParallelUtility::getLocalArrayBounds(), getLocalArrayWithGhostBoundaries(), ip, Mapping::mappingHasChanged(), Mapping::numberOfGhostPoints, Mapping::rangeDimension, and Start.
Referenced by setDataPoints(), and setNumberOfGhostLines().
|
virtual |
Reimplemented from Mapping.
References Mapping::debug, GenericDataBase::find(), GenericDataBase::get(), Mapping::get(), GenericDataBase::getDistributed(), Mapping::initializePartition(), Mapping::inverseIsDistributed, Mapping::mapIsDistributed, Mapping::mappingHasChanged(), Mapping::partition, printF(), and GenericDataBase::virtualConstructor().
Referenced by EllipticTransform::get(), and HyperbolicMapping::get().
|
inlinevirtual |
Reimplemented from Mapping.
Referenced by operator=(), and HyperbolicMapping::put().
const realArray& DataPointMapping::getDataPoints | ( | ) |
Referenced by printGridStatistics(), GridSmoother::smooth(), and HyperbolicMapping::update().
const IntegerArray & DataPointMapping::getDimension | ( | ) |
|
virtual |
Reimplemented from Mapping.
References Mapping::debug, Mapping::domainDimension, End, Mapping::getGrid(), Mapping::getGridDimensions(), Mapping::getSignForJacobian(), Mapping::grid, Mapping::gridIsValid(), Mapping::rangeDimension, Mapping::setGridIsValid(), Start, and TRUE.
Referenced by equiGridSmoother(), setTopologyMask(), HyperbolicMapping::smooth(), specifyTopology(), and update().
const IntegerArray & DataPointMapping::getGridIndexRange | ( | ) |
Referenced by printGridStatistics().
int DataPointMapping::getOrderOfInterpolation | ( | ) |
Referenced by HyperbolicMapping::display(), and HyperbolicMapping::update().
Reimplemented from Mapping.
References DataPointMapping(), and NULL.
|
virtual |
Reimplemented from Mapping.
References Overture::abort(), Mapping::base, Mapping::bound, Mapping::cartesian, Mapping::computeMap, Mapping::computeMapDerivative, MappingParameters::coordinateType, Mapping::getIndex(), and mapScalar().
Referenced by DataPointMapping(), equiGridSmoother(), EllipticTransform::map(), HyperbolicMapping::map(), projectGhostPoints(), GridSmoother::smooth(), update(), GridStretcher::update(), and HyperbolicMapping::update().
|
virtual |
Evaluate a DataPointMapping Mapping (in parallel) This function knows how to evaluate a DataPointMapping. In parallel, the grid associated with the DataPointMapping may be distributed and thus the evaluation could require communication to the processor that owns the data points needed to evaluate the mapping.
Reimplemented from Mapping.
References assert, Mapping::base, Mapping::bound, Mapping::cartesian, Mapping::computeMap, Mapping::computeMapDerivative, MappingParameters::coordinateType, Mapping::debug, Mapping::domainDimension, dr, fmod(), SparseArray< T >::get(), Mapping::getIndex(), Mapping::getName(), ip, Mapping::isPeriodic, Mapping::mappingName, mapScalar(), max(), MPI_Real, NULL, Mapping::openDebugFiles(), OV_ABORT, Overture::OV_COMM, Mapping::pDebugFile, R, rab, Mapping::rangeDimension, X, XC, and XR.
Referenced by HyperbolicMapping::mapS().
|
protected |
References Overture::abort(), axis1, axis2, axis3, Mapping::bound, Mapping::cartesian, MappingParameters::coordinateType, dim, Mapping::domainDimension, dr, End, fmod(), Mapping::functionPeriodic, getLocalArrayWithGhostBoundaries(), GIR, INT_1D_ORDER_2, INT_2D_ORDER_2, INT_3D_ORDER_2, Mapping::isPeriodic, max(), min(), NULL, q03, q03d, q13, q13d, q1x, q1xr, q23, q23d, q2x, q2xr, q2xs, q33, q33d, q3x, q3xr, q3xs, q3xt, R, Mapping::rangeDimension, Start, X, XR, and XY.
DataPointMapping & DataPointMapping::operator= | ( | const DataPointMapping & | X | ) |
int DataPointMapping::projectGhostPoints | ( | MappingInformation & | mappingInfo | ) |
References Mapping::debug, Mapping::domainDimension, End, fabs(), Mapping::getBoundaryCondition(), getBoundaryIndex(), Mapping::getDomainDimension(), ListOfMappingRC::getLength(), Mapping::getName(), Mapping::getRangeDimension(), Mapping::getShare(), Mapping::intersects(), Mapping::inverseMap(), map(), Mapping::mapGrid(), Mapping::mappingHasChanged(), MappingInformation::mappingList, Mapping::mappingName, mask, max(), min(), r, R, Mapping::rangeDimension, Mapping::share, SQR, Start, TRUE, and x.
Referenced by update().
|
virtual |
Reimplemented from Mapping.
References GenericDataBase::create(), GenericDataBase::put(), Mapping::put(), GenericDataBase::putDistributed(), and GenericDataBase::virtualConstructor().
Referenced by HyperbolicMapping::put().
int DataPointMapping::setDataPoints | ( | const realArray & | xd, |
const int | positionOfCoordinates = 3 , |
||
const int | domainDimension = -1 , |
||
const int | numberOfGhostLinesInData = 0 , |
||
const IntegerArray & | xGridIndexRange = Overture::nullIntArray() |
||
) |
Referenced by OffsetShell::buildOffsetMappings(), MappingBuilder::buildSurfacePatch(), UnstructuredMapping::buildUnstructuredGrid(), PlotIt::contourCuts(), IntersectionMapping::determineIntersection(), HyperbolicMapping::equidistributeAndStretch(), equiGridSmoother(), HyperbolicMapping::generate(), PlotIt::plot(), NurbsMapping::plot(), DataFormats::readPlot3d(), EllipticTransform::resetDataPointMapping(), showFileFromDataFile(), GridSmoother::smooth(), HyperbolicMapping::smooth(), StretchTransform::update(), update(), GridStretcher::update(), EllipticGridGenerator::update(), StretchMapping::update(), SplineMapping::update(), NurbsMapping::update(), HyperbolicMapping::updateMarchingParameters(), and HyperbolicMapping::updateOld().
int DataPointMapping::setDataPoints | ( | const realArray & | xd, |
const int | positionOfCoordinates, | ||
const int | domainDimension, | ||
const int | numberOfGhostLinesInData[2][3], | ||
const IntegerArray & | xGridIndexRange = Overture::nullIntArray() |
||
) |
References Overture::abort(), assert, axis1, axis2, axis3, Mapping::canDoNothing, CANINVERT, computeGhostPoints(), Mapping::domainDimension, End, ParallelUtility::getLocalArrayBounds(), getLocalArrayWithGhostBoundaries(), i2, Mapping::mappingHasChanged(), max(), min(), Mapping::numberOfGhostPoints, Mapping::partition, R, Mapping::rangeDimension, Mapping::reinitialize(), Mapping::setBasicInverseOption(), Mapping::setDomainDimension(), Mapping::setGridDimensions(), Mapping::setRangeBound(), Mapping::setRangeDimension(), Start, and TRUE.
int DataPointMapping::setDataPoints | ( | const aString & | fileName | ) |
int DataPointMapping::setMapping | ( | Mapping & | map | ) |
References axis1, axis2, axis3, Mapping::canDoNothing, Mapping::canInvertWithGoodGuess, Mapping::domainDimension, dr, End, Mapping::functionPeriodic, Mapping::getBoundaryCondition(), Mapping::getDomainDimension(), Mapping::getGridIndexRange(), Mapping::getIsPeriodic(), ParallelUtility::getLocalArrayBounds(), getLocalArrayWithGhostBoundaries(), Mapping::getRangeDimension(), Mapping::getShare(), Mapping::getSignForJacobian(), Mapping::getTypeOfCoordinateSingularity(), Mapping::initializePartition(), Mapping::mapGrid(), Mapping::mapGridS(), Mapping::mappingHasChanged(), max(), Mapping::numberOfGhostPoints, Mapping::partition, r, Mapping::rangeDimension, Mapping::reinitialize(), Mapping::setBasicInverseOption(), Mapping::setBoundaryCondition(), Mapping::setDomainDimension(), Mapping::setGrid(), Mapping::setGridIndexRange(), Mapping::setIsPeriodic(), Mapping::setRangeDimension(), Mapping::setShare(), Mapping::setTypeOfCoordinateSingularity(), Mapping::signForJacobian, and Start.
Referenced by update().
|
virtual |
Reimplemented from Mapping.
References axis1, computeGhostPoints(), Mapping::debug, Mapping::domainDimension, End, FALSE, Mapping::getIndex(), Mapping::mappingHasChanged(), max(), min(), Mapping::numberOfGhostPoints, printF(), Mapping::rangeDimension, Start, and TRUE.
Referenced by update().
void DataPointMapping::setOrderOfInterpolation | ( | const int | order | ) |
References Mapping::canDoNothing, CANINVERT, Mapping::domainDimension, Mapping::rangeDimension, and Mapping::setBasicInverseOption().
Referenced by showFileFromDataFile(), EllipticTransform::update(), and HyperbolicMapping::update().
|
virtual |
References Mapping::approximateGlobalInverse, axis1, axis2, Mapping::domainDimension, End, fabs(), getBoundaryIndex(), getGrid(), Mapping::getRangeBound(), Mapping::getRangeDimension(), i2, Bound::isFinite(), mask, max(), REAL_EPSILON, Mapping::setTopology(), Start, Mapping::topologyIsPartiallyPeriodic, Mapping::topologyMaskPointer, ApproximateGlobalInverse::useRobustInverse(), and x.
Referenced by specifyTopology().
Reimplemented from Mapping.
References Mapping::sizeOf().
int DataPointMapping::specifyTopology | ( | GenericGraphicsInterface & | gi, |
GraphicsParameters & | params | ||
) |
References GenericGraphicsInterface::appendToTheDefaultPrompt(), aString, Mapping::domainDimension, GenericGraphicsInterface::erase(), FALSE, getBoundaryIndex(), getGrid(), GenericGraphicsInterface::getMenuItem(), Mapping::getName(), Mapping::getTopology(), GI_POINT_SIZE, GI_TOP_LABEL, GI_USE_PLOT_BOUNDS, GenericGraphicsInterface::inputString(), Mapping::mappingName, mask, GenericGraphicsInterface::outputString(), PlotIt::plot(), GenericGraphicsInterface::plotPoints(), points(), Mapping::rangeDimension, REAL_EPSILON, REAL_MAX, GraphicsParameters::set(), setTopologyMask(), sPrintF(), sScanF(), GenericGraphicsInterface::stopReadingCommandFile(), Mapping::topologyIsPartiallyPeriodic, Mapping::topologyMask(), TRUE, GenericGraphicsInterface::unAppendTheDefaultPrompt(), and x.
Referenced by update(), and HyperbolicMapping::update().
|
virtual |
Reimplemented from Mapping.
References ListOfMappingRC::addElement(), GenericGraphicsInterface::appendToTheDefaultPrompt(), Mapping::approximateGlobalInverse, assert, aString, GenericGraphicsInterface::buildCascadingMenu(), Mapping::canDoNothing, CANINVERT, MappingInformation::command, MappingInformation::commandOption, Mapping::display(), Mapping::domainDimension, End, GenericGraphicsInterface::erase(), FALSE, getGrid(), Mapping::getGridDimensions(), ListOfMappingRC::getLength(), GenericGraphicsInterface::getMenuItem(), Mapping::getName(), Mapping::getRangeDimension(), GI_PLOT_THE_OBJECT_AND_EXIT, GI_TOP_LABEL, MappingInformation::graphXInterface, i2, GenericGraphicsInterface::inputString(), MappingInformation::interactive, Mapping::inverseMap(), map(), Mapping::mappingHasChanged(), MappingInformation::mappingList, Mapping::mappingName, max(), min(), Mapping::numberOfGhostPoints, GenericGraphicsInterface::outputString(), PlotIt::plot(), Mapping::polarSingularity, printF(), projectGhostPoints(), r, Mapping::rangeDimension, MappingInformation::readOneCommand, DataFormats::readPlot3d(), Mapping::reinitialize(), GraphicsParameters::set(), Mapping::setBasicInverseOption(), setDataPoints(), Mapping::setGridDimensions(), setMapping(), setNumberOfGhostLines(), Mapping::setTypeOfCoordinateSingularity(), specifyTopology(), sPrintF(), sScanF(), Start, GenericGraphicsInterface::stopReadingCommandFile(), TRUE, GenericGraphicsInterface::unAppendTheDefaultPrompt(), Mapping::update(), ApproximateGlobalInverse::useRobustInverse(), x, and xr.
Referenced by OffsetShell::buildOffsetMappings(), and HyperbolicMapping::update().
void DataPointMapping::useScalarArrayIndexing | ( | const bool & | trueOrFalse = FALSE | ) |
|
friend |