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

#include <DerivedFunctions.h>

Collaboration diagram for DerivedFunctions:
Collaboration graph
[legend]

Public Types

enum  DerivedItems {
  vorticity =0, xVorticity, yVorticity, zVorticity,
  enstrophy, divergence, machNumber, pressure,
  temperature, speed, entropy, schlieren,
  minimumScale, r1MinimumScale, r2MinimumScale, r3MinimumScale,
  r1Velocity, r2Velocity, r3Velocity, xDerivative,
  yDerivative, zDerivative, xxDerivative, yyDerivative,
  zzDerivative, laplaceDerivative, gradientNorm, cellVolume,
  minimumEdgeLength, logarithm, userDefined, energyDensity,
  eFieldNorm, hFieldNorm, displacementNorm, stressNorm,
  numberOfDerivedItems
}
 

Public Member Functions

 DerivedFunctions (ShowFileReader &showFileReader)
 
 DerivedFunctions ()
 
 ~DerivedFunctions ()
 
int add (int derivative, const aString &name_, int n1=0, int n2=0)
 
int getASolution (int &solutionNumber, MappedGrid &cg, realMappedGridFunction &u)
 
int getASolution (int &solutionNumber, CompositeGrid &cg, realCompositeGridFunction &u)
 
int getDisplacementComponents (int &u1c, int &u2c, int &u3c)
 Lookup the displacement components.
 
int getVelocityComponents (int &v1c, int &v2c, int &v3c)
 Lookup the velocity components.
 
int getStressComponents (int &s11c, int &s12c, int &s13c, int &s21c, int &s22c, int &s23c, int &s31c, int &s32c, int &s33c)
 Lookup the stress components.
 
int numberOfDerivedTypes () const
 
int remove (int i)
 
void set (ShowFileReader &showFileReader)
 Supply a ShowFileReader.
 
int setupUserDefinedDerivedFunction (GenericGraphicsInterface &gi, int numberOfComponents, aString *componentNames)
 
int getUserDefinedDerivedFunction (int index, int indexOut, const aString &name, const int numberOfComponents, realCompositeGridFunction &uIn, realCompositeGridFunction &uOut, bool &interpolationRequired)
 
int update (GenericGraphicsInterface &gi, int numberOfComponents, aString *componentNames, GraphicsParameters *pgp=NULL)
 

Protected Member Functions

int computeDerivedFunctions (realCompositeGridFunction &u)
 
int getComponent (int &c, const aString &cName)
 
void initialize ()
 

Protected Attributes

ShowFileReader * showFileReader
 
int numberOfDerivedFunctions
 
IntegerArray derived
 
aString * name
 
real exposure
 
real amplification
 
int velocityComponent [3]
 
int displacementComponent [3]
 
int stressComponent [9]
 

Member Enumeration Documentation

Enumerator
vorticity 
xVorticity 
yVorticity 
zVorticity 
enstrophy 
divergence 
machNumber 
pressure 
temperature 
speed 
entropy 
schlieren 
minimumScale 
r1MinimumScale 
r2MinimumScale 
r3MinimumScale 
r1Velocity 
r2Velocity 
r3Velocity 
xDerivative 
yDerivative 
zDerivative 
xxDerivative 
yyDerivative 
zzDerivative 
laplaceDerivative 
gradientNorm 
cellVolume 
minimumEdgeLength 
logarithm 
userDefined 
energyDensity 
eFieldNorm 
hFieldNorm 
displacementNorm 
stressNorm 
numberOfDerivedItems 

Constructor & Destructor Documentation

DerivedFunctions::DerivedFunctions ( ShowFileReader &  showFileReader)

References initialize(), and showFileReader.

DerivedFunctions::DerivedFunctions ( )

References initialize().

DerivedFunctions::~DerivedFunctions ( )

References name.

Member Function Documentation

int DerivedFunctions::add ( int  derivative,
const aString &  name_,
int  n1 = 0,
int  n2 = 0 
)
int DerivedFunctions::computeDerivedFunctions ( realCompositeGridFunction &  u)
protected

References Overture::abort(), amplification, assert, axis2, boundaryCondition, cellVolume, MappedGridOperators::derivative(), derived, dimension, displacementNorm, display(), divergence, dr, E, eFieldNorm, energyDensity, enstrophy, entropy, exposure, fabs(), FOR_3D, getBoundaryIndex(), getComponent(), doubleGridCollectionFunction::getComponentDimension(), doubleCompositeGridFunction::getCompositeGrid(), getDisplacementComponents(), ShowFileReader::getFrame(), ShowFileReader::getGeneralParameter(), getIndex(), ParallelUtility::getLocalArrayBounds(), getLocalArrayWithGhostBoundaries(), ParallelUtility::getMaxValue(), ParallelUtility::getMinValue(), doubleGridCollectionFunction::getName(), ReferenceCounting::getReferenceCount(), getStressComponents(), getUserDefinedDerivedFunction(), getVelocityComponents(), gradientNorm, gridIndexRange, hFieldNorm, i2, indexRange, GridCollectionData::interpolant, doubleCompositeGridFunction::interpolate(), Interpolant::iterateToInterpolate, laplaceDerivative, MappedGridOperators::laplacianOperator, log(), logarithm, machNumber, mask, MASK, max(), min(), minimumEdgeLength, minimumScale, name, NULL, numberOfDerivedFunctions, GridCollection::numberOfDimensions(), GenericGridCollection::numberOfGrids(), pow(), pressure, printF(), R, r1MinimumScale, r1Velocity, r2MinimumScale, r2Velocity, r3MinimumScale, r3Velocity, CompositeGrid::rcData, REAL_MAX, REAL_MIN, doubleCompositeGridFunction::reference(), rx, schlieren, Interpolant::setImplicitInterpolationMethod(), Interpolant::setMaximumNumberOfIterations(), doubleGridCollectionFunction::setName(), doubleCompositeGridFunction::setOperators(), showFileReader, speed, sPrintF(), SQR, stressNorm, temperature, MappedGrid::THEcellVolume, MappedGrid::THEvertex, MappedGrid::THEvertexDerivative, CompositeGrid::update(), userDefined, V, vorticity, X, x, xDerivative, MappedGridOperators::xDerivative, xr, xVorticity, xxDerivative, MappedGridOperators::xxDerivative, yDerivative, MappedGridOperators::yDerivative, yVorticity, yyDerivative, MappedGridOperators::yyDerivative, zDerivative, MappedGridOperators::zDerivative, zVorticity, zzDerivative, and MappedGridOperators::zzDerivative.

Referenced by getASolution().

int DerivedFunctions::getASolution ( int &  solutionNumber,
MappedGrid &  cg,
realMappedGridFunction &  u 
)

References printF().

Referenced by ShowFilePlotter::plot().

int DerivedFunctions::getASolution ( int &  solutionNumber,
CompositeGrid &  cg,
realCompositeGridFunction &  u 
)
int DerivedFunctions::getComponent ( int &  c,
const aString &  cName 
)
protected
int DerivedFunctions::getDisplacementComponents ( int &  u1c,
int &  u2c,
int &  u3c 
)

Lookup the displacement components.

References displacementComponent, and getComponent().

Referenced by computeDerivedFunctions().

int DerivedFunctions::getStressComponents ( int &  s11c,
int &  s12c,
int &  s13c,
int &  s21c,
int &  s22c,
int &  s23c,
int &  s31c,
int &  s32c,
int &  s33c 
)

Lookup the stress components.

References getComponent(), and stressComponent.

Referenced by computeDerivedFunctions(), and getUserDefinedDerivedFunction().

int DerivedFunctions::getUserDefinedDerivedFunction ( int  index,
int  indexOut,
const aString &  name,
const int  numberOfComponents,
realCompositeGridFunction &  uIn,
realCompositeGridFunction &  uOut,
bool &  interpolationRequired 
)
int DerivedFunctions::getVelocityComponents ( int &  v1c,
int &  v2c,
int &  v3c 
)

Lookup the velocity components.

References getComponent(), printF(), and velocityComponent.

Referenced by computeDerivedFunctions(), and getUserDefinedDerivedFunction().

void DerivedFunctions::initialize ( )
protected
int DerivedFunctions::numberOfDerivedTypes ( ) const
inline
int DerivedFunctions::remove ( int  i)
void DerivedFunctions::set ( ShowFileReader &  showFileReader)

Supply a ShowFileReader.

References showFileReader.

int DerivedFunctions::setupUserDefinedDerivedFunction ( GenericGraphicsInterface &  gi,
int  numberOfComponents,
aString *  componentNames 
)
int DerivedFunctions::update ( GenericGraphicsInterface &  gi,
int  numberOfComponents,
aString *  componentNames,
GraphicsParameters *  pgp = NULL 
)

Member Data Documentation

real DerivedFunctions::amplification
protected
IntegerArray DerivedFunctions::derived
protected
int DerivedFunctions::displacementComponent[3]
protected
real DerivedFunctions::exposure
protected
aString* DerivedFunctions::name
protected
int DerivedFunctions::numberOfDerivedFunctions
protected
ShowFileReader* DerivedFunctions::showFileReader
protected
int DerivedFunctions::stressComponent[9]
protected
int DerivedFunctions::velocityComponent[3]
protected

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