CG
Version 25
|
#include <DeformingGrid.h>
Public Types | |
enum | RemapType { hyperbolicRemap, lagrangianRemap, userDefinedRemap } |
Public Member Functions | |
DeformingGrid (int numberOfTimeLevels, GenericGraphicsInterface *pGIDebug00=NULL, int debug00=0) | |
~DeformingGrid () | |
void | getNewMapping (const real time0, HyperbolicMapping *&pNewMapping) |
void | getCurrentMap (real &time0, HyperbolicMapping *&pCurrentMapping) |
void | getTimeLevelMapPointer (const int offset, real &time0, HyperbolicMapping *&pMap) |
void | getCurrentGridArray (real &time0, realArray *&pCurrentGrid) |
void | getTimeLevelGridArrayPointer (const int offset, real &time0, realArray *&pGrid) |
void | regenerateGrid (HyperbolicMapping *pHyper, const int grid, CompositeGrid &cg) |
void | getVelocity (const real time0, const int grid, CompositeGrid &cg, realArray &gridVelocity) |
void | getAcceleration (const real time0, const int grid, CompositeGrid &cg, realArray &gridVelocity) |
void | computeGridVelocity (real vTime, real t0, realArray const &map0, real t1, realArray const &map1, real t2, realArray const &map2, realArray &gridVelocity, Index &I1, Index &I2, Index &I3) |
void | computeGridVelocity (real vTime, real t0, realArray const &map0, real t1, realArray const &map1, realArray &gridVelocity, Index &I1, Index &I2, Index &I3) |
void | computeGridAcceleration (real vTime, real t0, realArray const &map0, real t1, realArray const &map1, real t2, realArray const &map2, realArray &gridVelocity) |
void | computeGridAcceleration (real vTime, real t0, realArray const &map0, real t1, realArray const &map1, realArray &gridVelocity) |
void | getPastLevelGrid (const int grid00, CompositeGrid &cg, int iLevel, realArray &gridVelocity) |
void | simpleGetVelocity (const real vTime, const int grid00, CompositeGrid &cg, realArray &gridVelocity) |
void | simpleGetVelocityAndPoints (const real vTime, const int grid00, CompositeGrid &cg, realArray &gridVelocity, realArray &xpoints1, realArray &xpoints2) |
void | createMappingName (real time00, aString &newMappingName) |
Public Attributes | |
int | grid |
RemapType | remapType |
int | maximumNumberOfTimeLevels |
int | currentNumberOfTimeLevels |
int | iMostRecentTimeLevel |
real * | timeHistory |
HyperbolicMapping * | mappingHistoryList |
realArray * | gridHistoryList |
int | numberOfDimensions |
int | current |
int | numberOfSteps |
int | numberSaved |
int | maximumNumberToSave |
RealArray | time |
const Range | R |
int | numberOfTimeLevelsStored |
int | debug |
GenericGraphicsInterface * | pGIDebug |
MappingInformation * | pMapInfoDebug |
int | mappingSerialNumber |
DeformingGrid::DeformingGrid | ( | int | numberOfTimeLevels, |
GenericGraphicsInterface * | pGIDebug00 = NULL , |
||
int | debug00 = 0 |
||
) |
DeformingGrid::~DeformingGrid | ( | ) |
References mappingHistoryList, and timeHistory.
void DeformingGrid::computeGridAcceleration | ( | real | vTime, |
real | t0, | ||
realArray const & | map0, | ||
real | t1, | ||
realArray const & | map1, | ||
real | t2, | ||
realArray const & | map2, | ||
realArray & | gridVelocity | ||
) |
void DeformingGrid::computeGridAcceleration | ( | real | vTime, |
real | t0, | ||
realArray const & | map0, | ||
real | t1, | ||
realArray const & | map1, | ||
realArray & | gridVelocity | ||
) |
void DeformingGrid::computeGridVelocity | ( | real | vTime, |
real | t0, | ||
realArray const & | map0, | ||
real | t1, | ||
realArray const & | map1, | ||
real | t2, | ||
realArray const & | map2, | ||
realArray & | gridVelocity, | ||
Index & | I1, | ||
Index & | I2, | ||
Index & | I3 | ||
) |
References all, bb, and debug.
Referenced by getVelocity().
void DeformingGrid::computeGridVelocity | ( | real | vTime, |
real | t0, | ||
realArray const & | map0, | ||
real | t1, | ||
realArray const & | map1, | ||
realArray & | gridVelocity, | ||
Index & | I1, | ||
Index & | I2, | ||
Index & | I3 | ||
) |
void DeformingGrid::createMappingName | ( | real | time00, |
aString & | newMappingName | ||
) |
References mappingSerialNumber.
Referenced by DeformingBodyMotion::initializePast(), and DeformingBodyMotion::regenerateComponentGrids().
void DeformingGrid::getAcceleration | ( | const real | time0, |
const int | grid, | ||
CompositeGrid & | cg, | ||
realArray & | gridVelocity | ||
) |
void DeformingGrid::getCurrentGridArray | ( | real & | time0, |
realArray *& | pCurrentGrid | ||
) |
void DeformingGrid::getCurrentMap | ( | real & | time0, |
HyperbolicMapping *& | pCurrentMapping | ||
) |
References assert(), currentNumberOfTimeLevels, iMostRecentTimeLevel, mappingHistoryList, and timeHistory.
void DeformingGrid::getNewMapping | ( | const real | time0, |
HyperbolicMapping *& | pNewMapping | ||
) |
References assert(), currentNumberOfTimeLevels, debug, iMostRecentTimeLevel, mappingHistoryList, maximumNumberOfTimeLevels, and timeHistory.
Referenced by DeformingBodyMotion::initializePast(), and DeformingBodyMotion::regenerateComponentGrids().
void DeformingGrid::getPastLevelGrid | ( | const int | grid00, |
CompositeGrid & | cg, | ||
int | iLevel, | ||
realArray & | gridVelocity | ||
) |
??? WHAT IS THIS??? **pf
References all, getIndex(), getTimeLevelMapPointer(), I1, I2, I3, and tz.
Referenced by DeformingBodyMotion::getPastLevelGrid().
void DeformingGrid::getTimeLevelGridArrayPointer | ( | const int | offset, |
real & | time0, | ||
realArray *& | pGrid | ||
) |
void DeformingGrid::getTimeLevelMapPointer | ( | const int | offset, |
real & | time0, | ||
HyperbolicMapping *& | pMap | ||
) |
References assert(), currentNumberOfTimeLevels, debug, iMostRecentTimeLevel, mappingHistoryList, and timeHistory.
Referenced by getPastLevelGrid(), getVelocity(), simpleGetVelocity(), and simpleGetVelocityAndPoints().
void DeformingGrid::getVelocity | ( | const real | time0, |
const int | grid, | ||
CompositeGrid & | cg, | ||
realArray & | gridVelocity | ||
) |
References assert(), computeGridVelocity(), currentNumberOfTimeLevels, debug, getIndex(), getTimeLevelMapPointer(), I1, I2, I3, and pMapInfoDebug.
Referenced by DeformingBodyMotion::getVelocity().
void DeformingGrid::regenerateGrid | ( | HyperbolicMapping * | pHyper, |
const int | grid, | ||
CompositeGrid & | cg | ||
) |
References assert().
void DeformingGrid::simpleGetVelocity | ( | const real | vTime, |
const int | grid00, | ||
CompositeGrid & | cg, | ||
realArray & | gridVelocity | ||
) |
References all, assert(), currentNumberOfTimeLevels, debug, getIndex(), getTimeLevelMapPointer(), I1, I2, and I3.
Referenced by DeformingBodyMotion::simpleGetVelocity().
void DeformingGrid::simpleGetVelocityAndPoints | ( | const real | vTime, |
const int | grid00, | ||
CompositeGrid & | cg, | ||
realArray & | gridVelocity, | ||
realArray & | xpoints1, | ||
realArray & | xpoints2 | ||
) |
References all, assert(), currentNumberOfTimeLevels, debug, getIndex(), getTimeLevelMapPointer(), I1, I2, and I3.
int DeformingGrid::current |
int DeformingGrid::currentNumberOfTimeLevels |
int DeformingGrid::debug |
int DeformingGrid::grid |
realArray* DeformingGrid::gridHistoryList |
Referenced by DeformingGrid().
int DeformingGrid::iMostRecentTimeLevel |
Referenced by DeformingGrid(), getCurrentMap(), getNewMapping(), and getTimeLevelMapPointer().
HyperbolicMapping* DeformingGrid::mappingHistoryList |
Referenced by DeformingGrid(), getCurrentMap(), getNewMapping(), getTimeLevelMapPointer(), and ~DeformingGrid().
int DeformingGrid::mappingSerialNumber |
Referenced by createMappingName(), and DeformingGrid().
int DeformingGrid::maximumNumberOfTimeLevels |
Referenced by DeformingGrid(), and getNewMapping().
int DeformingGrid::maximumNumberToSave |
int DeformingGrid::numberOfDimensions |
int DeformingGrid::numberOfSteps |
int DeformingGrid::numberOfTimeLevelsStored |
int DeformingGrid::numberSaved |
GenericGraphicsInterface* DeformingGrid::pGIDebug |
Referenced by DeformingGrid().
MappingInformation* DeformingGrid::pMapInfoDebug |
Referenced by DeformingGrid(), and getVelocity().
const Range DeformingGrid::R |
RemapType DeformingGrid::remapType |
RealArray DeformingGrid::time |
real* DeformingGrid::timeHistory |
Referenced by DeformingGrid(), getCurrentMap(), getNewMapping(), getTimeLevelMapPointer(), and ~DeformingGrid().