Overture  Version 25
Macros | Functions | Variables
streamLinesOpt.C File Reference
#include "Overture.h"
#include "GL_GraphicsInterface.h"
#include "ParallelUtility.h"
#include "PlotIt.h"
Include dependency graph for streamLinesOpt.C:

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]
 

Macro Definition Documentation

#define CENTER (   i0,
  i1,
  i2,
 
)    centerp[i0+centerDim0*(i1+centerDim1*(i2+centerDim2*(m)))]
#define CGNRSC   EXTERN_C_NAME(cgnrsc)
#define CGNRST   EXTERN_C_NAME(cgnrst)

Referenced by xInterpolate(), and xInterpolateOpt().

#define componentsToInterpolate (   i1)    componentsToInterpolate_[i1]
#define COORD (   i0,
  i1,
  i2,
  i3 
)    coordp[i0+coordDim0*(i1+coordDim1*(i2+coordDim2*(i3)))]
#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 
)
Value:
for( i3=I3.getBase(); i3<=I3.getBound(); i3++ ) \
for( i2=I2.getBase(); i2<=I2.getBound(); i2++ ) \
for( i1=I1.getBase(); i1<=I1.getBound(); i1++ ) \

Referenced by computeMaximumSpeed().

#define ForBoundary (   side,
  axis 
)
Value:
for( axis=0; axis<gc.numberOfDimensions(); axis++ ) \
for( side=0; side<=1; side++ )
#define gridIndexRange (   i0,
  i1 
)    gridIndexRangep[i0+2*(i1)]
#define indexGuess (   i1)    indexGuess_[i1]
#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)]
#define maskForStreamLines (   i0,
  i1 
)    maskForStreamLinesp[i0+maskForStreamLinesDim0*(i1)]
#define MODR (   i,
  axis 
)
Value:
( \
( (i-indexRange(Start,axis)+NRM(axis)) % NRM(axis)) \
+indexRange(Start,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,
 
)    inverseCenterDerivativep[i0+inverseCenterDerivativeDim0*(i1+inverseCenterDerivativeDim1*(i2+inverseCenterDerivativeDim2*(m+numberOfDimensions*(n))))]
#define U (   i0,
  i1,
  i2,
  c 
)    up[(i0)*d0+(i1)*d1+(i2)*d2+(c)*dc]
#define UI (   i1)    uip[i1]
#define uInterpolated (   i1)    uInterpolated_[i1]
#define UU (   i0,
  i1,
  i2,
  c 
)    uup[(i0)*d0+(i1)*d1+(i2)*d2+(c)*dc]
#define XR (   i0,
  i1,
  i2,
  m,
 
)    centerDerivativep[i0+centerDerivativeDim0*(i1+centerDerivativeDim1*(i2+centerDerivativeDim2*(m+numberOfDimensions*(n))))]
#define XSCALE (   x)    (psp.xScaleFactor*(x))

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))

Function Documentation

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 
)
int xInterpolateOpt ( int  numberOfComponents,
const int *  componentsToInterpolate_,
const real positionToInterpolate_,
int *  indexGuess_,
real uInterpolated_,
const realGridCollectionFunction u,
const GridCollection gc,
const int  intopt 
)

Variable Documentation

int colourTable[256][3]