CG
Version 25
|
#include <GridEvolution.h>
Public Member Functions | |
GridEvolution () | |
GridEvolution contructor. | |
~GridEvolution () | |
GridEvolution destructor. | |
int | addGrid (const realArray &x, real t) |
Add a grid to the time history. | |
int | getNumberOfTimeLevels () const |
return the number of time levels current saved | |
int | getVelocity (real t, realSerialArray &gridVelocity, const Index &I1, const Index &I2, const Index &I3) const |
Compute the grid velocity from a set of grids over time. | |
int | getAcceleration (real t, realSerialArray &gridVelocity, const Index &I1, const Index &I2, const Index &I3) const |
Compute the grid acceleration. | |
int | getAccelerationOrderOfAccuracy () const |
return the order of accuracy used to compute the acceleration. | |
int | getVelocityOrderOfAccuracy () const |
return the order of accuracy used to compute the velocity. | |
int | setAccelerationOrderOfAccuracy (int order) |
set the order of accuracy used to compute the acceleration. | |
int | setVelocityOrderOfAccuracy (int order) |
set the order of accuracy used to compute the velocity. | |
int | update (GenericGraphicsInterface &gi) |
Interactively update the GridEvolution parameters. | |
Static Public Attributes | |
static int | debug =0 |
Protected Types | |
enum | SpecifiedMotionEnum { noSpecifiedMotion, linearMotion } |
Protected Attributes | |
enum GridEvolution::SpecifiedMotionEnum | specifiedMotion |
int | maximumNumberOfTimeLevels |
int | numberOfTimeLevels |
int | current |
int | accelerationOrderOfAccuracy |
int | velocityOrderOfAccuracy |
ListOfRealDistributedArray | gridList |
RealArray | time |
real | specifiedMotionParameters [10] |
|
protected |
GridEvolution::GridEvolution | ( | ) |
GridEvolution contructor.
References accelerationOrderOfAccuracy, current, maximumNumberOfTimeLevels, noSpecifiedMotion, numberOfTimeLevels, specifiedMotion, time, and velocityOrderOfAccuracy.
GridEvolution::~GridEvolution | ( | ) |
GridEvolution destructor.
int GridEvolution::addGrid | ( | const realArray & | x, |
real | t | ||
) |
Add a grid to the time history.
x | (input) : normally x is the vertex array from a MappedGrid |
t | (input) : time to associate with this grid. |
References current, debug, gridList, maximumNumberOfTimeLevels, numberOfTimeLevels, printF(), and time.
int GridEvolution::getAcceleration | ( | real | t, |
realSerialArray & | gridVelocity, | ||
const Index & | I1, | ||
const Index & | I2, | ||
const Index & | I3 | ||
) | const |
Compute the grid acceleration.
References accelerationOrderOfAccuracy, all, assert(), c1, c2, current, d12, d22, gridList, i, j, linearMotion, maximumNumberOfTimeLevels, numberOfTimeLevels, printF(), specifiedMotion, specifiedMotionParameters, time, x2, x3, and x4.
int GridEvolution::getAccelerationOrderOfAccuracy | ( | ) | const |
return the order of accuracy used to compute the acceleration.
References accelerationOrderOfAccuracy.
int GridEvolution::getNumberOfTimeLevels | ( | ) | const |
return the number of time levels current saved
References numberOfTimeLevels.
int GridEvolution::getVelocity | ( | real | t, |
realSerialArray & | gridVelocity, | ||
const Index & | I1, | ||
const Index & | I2, | ||
const Index & | I3 | ||
) | const |
Compute the grid velocity from a set of grids over time.
The GridEvolution class keeps a sequence of past grids and computes the time derivative of the grid motion using these grids.
References all, assert(), current, gridList, gt, i, j, linearMotion, maximumNumberOfTimeLevels, numberOfTimeLevels, printF(), specifiedMotion, specifiedMotionParameters, time, velocityOrderOfAccuracy, and x2.
int GridEvolution::getVelocityOrderOfAccuracy | ( | ) | const |
return the order of accuracy used to compute the velocity.
References velocityOrderOfAccuracy.
int GridEvolution::setAccelerationOrderOfAccuracy | ( | int | order | ) |
set the order of accuracy used to compute the acceleration.
order | (input) : a positive integer |
References accelerationOrderOfAccuracy, and order.
int GridEvolution::setVelocityOrderOfAccuracy | ( | int | order | ) |
set the order of accuracy used to compute the velocity.
order | (input) : a positive integer |
References order, and velocityOrderOfAccuracy.
int GridEvolution::update | ( | GenericGraphicsInterface & | gi | ) |
Interactively update the GridEvolution parameters.
References accelerationOrderOfAccuracy, assert(), linearMotion, printF(), specifiedMotion, specifiedMotionParameters, and velocityOrderOfAccuracy.
|
protected |
Referenced by getAcceleration(), getAccelerationOrderOfAccuracy(), GridEvolution(), setAccelerationOrderOfAccuracy(), and update().
|
protected |
Referenced by addGrid(), getAcceleration(), getVelocity(), and GridEvolution().
|
static |
Referenced by addGrid(), and DeformingBodyMotion::DeformingBodyMotion().
|
protected |
Referenced by addGrid(), getAcceleration(), and getVelocity().
|
protected |
Referenced by addGrid(), getAcceleration(), getVelocity(), and GridEvolution().
|
protected |
Referenced by addGrid(), getAcceleration(), getNumberOfTimeLevels(), getVelocity(), and GridEvolution().
|
protected |
Referenced by getAcceleration(), getVelocity(), GridEvolution(), and update().
|
protected |
Referenced by getAcceleration(), getVelocity(), and update().
|
protected |
Referenced by addGrid(), getAcceleration(), getVelocity(), and GridEvolution().
|
protected |
Referenced by getVelocity(), getVelocityOrderOfAccuracy(), GridEvolution(), setVelocityOrderOfAccuracy(), and update().