Overture
Version 25
|
#include "Overture.h"
#include "GL_GraphicsInterface.h"
#include "ParallelUtility.h"
#include "PlotIt.h"
Macros | |
#define | CGNRST EXTERN_C_NAME(cgnrst) |
#define | CGNRSC EXTERN_C_NAME(cgnrsc) |
#define | componentsToInterpolate(i1) componentsToInterpolate_[i1] |
#define | positionToInterpolate(i1) positionToInterpolate_[i1] |
#define | indexGuess(i1) indexGuess_[i1] |
#define | uInterpolated(i1) uInterpolated_[i1] |
#define | mrsab(axis, side) mrsab_[axis+numberOfDimensions*(side)] |
#define | dimension(i0, i1) dimensionp[i0+2*(i1)] |
#define | indexRange(i0, i1) indexRangep[i0+2*(i1)] |
#define | extendedIndexRange(i0, i1) extendedIndexRangep[i0+2*(i1)] |
#define | gridIndexRange(i0, i1) gridIndexRangep[i0+2*(i1)] |
#define | NRM(axis) ( indexRange(End,axis)-indexRange(Start,axis) ) |
#define | MODR(i, axis) |
#define | MASK(i0, i1) maskp[i0+maskDim0*(i1)] |
#define | CENTER(i0, i1, i2, m) centerp[i0+centerDim0*(i1+centerDim1*(i2+centerDim2*(m)))] |
#define | XR(i0, i1, i2, m, n) centerDerivativep[i0+centerDerivativeDim0*(i1+centerDerivativeDim1*(i2+centerDerivativeDim2*(m+numberOfDimensions*(n))))] |
#define | RX(i0, i1, i2, m, n) inverseCenterDerivativep[i0+inverseCenterDerivativeDim0*(i1+inverseCenterDerivativeDim1*(i2+inverseCenterDerivativeDim2*(m+numberOfDimensions*(n))))] |
#define | UU(i0, i1, i2, c) uup[(i0)*d0+(i1)*d1+(i2)*d2+(c)*dc] |
#define | FOR_3(i1, i2, i3, I1, I2, I3) |
#define | ForBoundary(side, axis) |
#define | MASK(i0, i1) maskp[i0+maskDim0*(i1)] |
#define | COORD(i0, i1, i2, i3) coordp[i0+coordDim0*(i1+coordDim1*(i2+coordDim2*(i3)))] |
#define | U(i0, i1, i2, c) up[(i0)*d0+(i1)*d1+(i2)*d2+(c)*dc] |
#define | XSCALE(x) (psp.xScaleFactor*(x)) |
#define | YSCALE(y) (psp.yScaleFactor*(y)) |
#define | ZSCALE(z) (psp.zScaleFactor*(z)) |
#define | maskForStreamLines(i0, i1) maskForStreamLinesp[i0+maskForStreamLinesDim0*(i1)] |
#define | XV(i1) xvp[i1] |
#define | indexGuess(i) indexGuessp[i] |
#define | UI(i1) uip[i1] |
#define | maskForStreamLines(i0, i1) maskForStreamLinesp[i0+maskForStreamLinesDim0*(i1)] |
Functions | |
void | CGNRST (const int &ndra, const int &ndrb, const int &ndsa, const int &ndsb, int &mrsab, const real &xy, real &x, real &y, int &ip, int &jp, real &distmn) |
void | CGNRSC (const int &ndra, const int &ndrb, const int &ndsa, const int &ndsb, int &mrsab, const real &xy, real &x, real &y, int &ip, int &jp, real &distmn) |
int | xInterpolateOpt (int numberOfComponents, const int *componentsToInterpolate_, const real *positionToInterpolate_, int *indexGuess_, real *uInterpolated_, const realGridCollectionFunction &u, const GridCollection &gc, const int intopt) |
void | computeMaximumSpeed (const realGridCollectionFunction &uv, GridCollection &gc, int numberOfGhostLinesToPlot, int uComponent, int vComponent, real xa, real xb, real ya, real yb, real &uMin, real &uMax) |
Determine the maximum speed for stream lines. | |
Variables | |
int | colourTable [256][3] |
#define CGNRSC EXTERN_C_NAME(cgnrsc) |
#define CGNRST EXTERN_C_NAME(cgnrst) |
Referenced by xInterpolate(), and xInterpolateOpt().
#define componentsToInterpolate | ( | i1 | ) | componentsToInterpolate_[i1] |
Referenced by PlotIt::streamLines2d(), PlotIt::streamLines3d(), and xInterpolateOpt().
#define dimension | ( | i0, | |
i1 | |||
) | dimensionp[i0+2*(i1)] |
Referenced by Ogmg::addAdjustmentForSingularProblem(), MappedGridOperators::applyBCextrapolate(), Ogmg::buildExtraLevels(), InterpolatePoints::buildInterpolationInfo(), InterpolatePointsOnAGrid::buildInterpolationInfo(), checkGrid(), Ogen::checkHoleCutting(), Mapping::checkMapping(), DerivedFunctions::computeDerivedFunctions(), ErrorEstimator::computeErrorFunction(), ErrorEstimator::computeFunction(), PlotIt::contour1d(), PlotIt::contourOpt2d(), Ogen::determineMinimalIndexRange(), displayValuesAtAPoint(), Oges::equationNo(), fileOutput(), AssignInterpNeighbours::findInterpolationNeighbours(), GenericMappedGridOperators::findInterpolationNeighbours(), GenericMappedGridOperators::finishBoundaryConditions(), GenericMappedGridOperators::fixBoundaryCorners(), Oges::formRhsAndSolutionVectors(), OGFunction::gd(), Mapping::getGrid(), PlotIt::getGridBounds(), Mapping::getGridSerial(), getInitialConditions(), ParallelGridUtility::getLocalIndexBoundsAndBoundaryConditions(), Ogmg::getSingularParameter(), getTrueSolution(), DerivedFunctions::getUserDefinedDerivedFunction(), ExposedPoints::initialize(), Ugen::initializeGeneration(), interpolateAllPoints(), interpolateExposedPoints(), InterpolateRefinements::interpolateRefinements(), interpolateRefinements(), main(), multiply(), OGFunction::operator()(), intMappedGridFunction::periodicUpdate(), doubleMappedGridFunction::periodicUpdate(), floatMappedGridFunction::periodicUpdate(), plot3dToOverture(), PlotIt::plotGrid(), PlotIt::plotGrid2d(), PlotIt::plotStructured(), MappedGridData::put(), Ogmg::removeAdjustmentForSingularProblem(), residual(), rungeKutta2(), FileOutput::saveData(), floatCompositeGridFunction::setIsACoefficientMatrix(), intCompositeGridFunction::setIsACoefficientMatrix(), doubleCompositeGridFunction::setIsACoefficientMatrix(), intGridCollectionFunction::setIsACoefficientMatrix(), floatGridCollectionFunction::setIsACoefficientMatrix(), doubleGridCollectionFunction::setIsACoefficientMatrix(), Ogmg::setMean(), PlotIt::streamLines3d(), and xInterpolate().
#define extendedIndexRange | ( | i0, | |
i1 | |||
) | extendedIndexRangep[i0+2*(i1)] |
#define FOR_3 | ( | i1, | |
i2, | |||
i3, | |||
I1, | |||
I2, | |||
I3 | |||
) |
Referenced by computeMaximumSpeed().
#define ForBoundary | ( | side, | |
axis | |||
) |
#define gridIndexRange | ( | i0, | |
i1 | |||
) | gridIndexRangep[i0+2*(i1)] |
#define indexGuess | ( | i1 | ) | indexGuess_[i1] |
Referenced by PlotIt::drawAStreamLine(), interpolatePoints(), and xInterpolateOpt().
#define indexGuess | ( | i | ) | indexGuessp[i] |
#define indexRange | ( | i0, | |
i1 | |||
) | indexRangep[i0+2*(i1)] |
#define MASK | ( | i0, | |
i1 | |||
) | maskp[i0+maskDim0*(i1)] |
#define MASK | ( | i0, | |
i1 | |||
) | maskp[i0+maskDim0*(i1)] |
#define maskForStreamLines | ( | i0, | |
i1 | |||
) | maskForStreamLinesp[i0+maskForStreamLinesDim0*(i1)] |
Referenced by PlotIt::drawAStreamLine(), PlotIt::plotStreamLines(), and PlotIt::streamLines2d().
#define maskForStreamLines | ( | i0, | |
i1 | |||
) | maskForStreamLinesp[i0+maskForStreamLinesDim0*(i1)] |
#define MODR | ( | i, | |
axis | |||
) |
#define mrsab | ( | axis, | |
side | |||
) | mrsab_[axis+numberOfDimensions*(side)] |
Referenced by xInterpolate(), and xInterpolateOpt().
#define NRM | ( | axis | ) | ( indexRange(End,axis)-indexRange(Start,axis) ) |
#define positionToInterpolate | ( | i1 | ) | positionToInterpolate_[i1] |
Referenced by xInterpolateOpt().
#define RX | ( | i0, | |
i1, | |||
i2, | |||
m, | |||
n | |||
) | inverseCenterDerivativep[i0+inverseCenterDerivativeDim0*(i1+inverseCenterDerivativeDim1*(i2+inverseCenterDerivativeDim2*(m+numberOfDimensions*(n))))] |
#define UI | ( | i1 | ) | uip[i1] |
#define uInterpolated | ( | i1 | ) | uInterpolated_[i1] |
#define XR | ( | i0, | |
i1, | |||
i2, | |||
m, | |||
n | |||
) | centerDerivativep[i0+centerDerivativeDim0*(i1+centerDerivativeDim1*(i2+centerDerivativeDim2*(m+numberOfDimensions*(n))))] |
Referenced by PlotIt::drawAStreamLine().
#define XV | ( | i1 | ) | xvp[i1] |
#define YSCALE | ( | y | ) | (psp.yScaleFactor*(y)) |
Referenced by PlotIt::drawAStreamLine().
#define ZSCALE | ( | z | ) | (psp.zScaleFactor*(z)) |
void CGNRSC | ( | const int & | ndra, |
const int & | ndrb, | ||
const int & | ndsa, | ||
const int & | ndsb, | ||
int & | mrsab, | ||
const real & | xy, | ||
real & | x, | ||
real & | y, | ||
int & | ip, | ||
int & | jp, | ||
real & | distmn | ||
) |
void CGNRST | ( | const int & | ndra, |
const int & | ndrb, | ||
const int & | ndsa, | ||
const int & | ndsb, | ||
int & | mrsab, | ||
const real & | xy, | ||
real & | x, | ||
real & | y, | ||
int & | ip, | ||
int & | jp, | ||
real & | distmn | ||
) |
void computeMaximumSpeed | ( | const realGridCollectionFunction & | uv, |
GridCollection & | gc, | ||
int | numberOfGhostLinesToPlot, | ||
int | uComponent, | ||
int | vComponent, | ||
real | xa, | ||
real | xb, | ||
real | ya, | ||
real | yb, | ||
real & | uMin, | ||
real & | uMax | ||
) |
Determine the maximum speed for stream lines.
References axis1, axis2, COORD, FOR_3, getIndex(), gridIndexRange, i2, mask, MASK, GenericGridCollection::numberOfComponentGrids(), doubleGridCollectionFunction::positionOfComponent(), REAL_MAX, SQR, U, and GenericGrid::unstructuredGrid.
Referenced by PlotIt::streamLines2d().
int xInterpolateOpt | ( | int | numberOfComponents, |
const int * | componentsToInterpolate_, | ||
const real * | positionToInterpolate_, | ||
int * | indexGuess_, | ||
real * | uInterpolated_, | ||
const realGridCollectionFunction & | u, | ||
const GridCollection & | gc, | ||
const int | intopt | ||
) |
References axis1, axis2, axis3, CENTER, center, CGNRST, componentsToInterpolate, debug, dr, dx, End, extendedIndexRange, fabs(), FALSE, gridIndexRange, indexGuess, ip, ip1, isPeriodic, mask, MASK, max(), min(), MODR, mrsab, Overture::nullRealArray(), GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), doubleGridCollectionFunction::positionOfComponent(), positionToInterpolate, RX, Start, TRUE, uInterpolated, UU, x, and XR.
Referenced by PlotIt::drawAStreamLine().
int colourTable[256][3] |