CG  Version 25
Public Member Functions | Static Public Attributes | Protected Types | Protected Attributes | List of all members
GridEvolution Class Reference

#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]
 

Member Enumeration Documentation

Enumerator
noSpecifiedMotion 
linearMotion 

Constructor & Destructor Documentation

GridEvolution::GridEvolution ( )
GridEvolution::~GridEvolution ( )

GridEvolution destructor.

Member Function Documentation

int GridEvolution::addGrid ( const realArray &  x,
real  t 
)

Add a grid to the time history.

Parameters
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
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.

Parameters
order(input) : a positive integer

References accelerationOrderOfAccuracy, and order.

int GridEvolution::setVelocityOrderOfAccuracy ( int  order)

set the order of accuracy used to compute the velocity.

Parameters
order(input) : a positive integer

References order, and velocityOrderOfAccuracy.

int GridEvolution::update ( GenericGraphicsInterface &  gi)

Member Data Documentation

int GridEvolution::accelerationOrderOfAccuracy
protected
int GridEvolution::current
protected
int GridEvolution::debug =0
static
ListOfRealDistributedArray GridEvolution::gridList
protected
int GridEvolution::maximumNumberOfTimeLevels
protected
int GridEvolution::numberOfTimeLevels
protected
enum GridEvolution::SpecifiedMotionEnum GridEvolution::specifiedMotion
protected
real GridEvolution::specifiedMotionParameters[10]
protected
RealArray GridEvolution::time
protected
int GridEvolution::velocityOrderOfAccuracy
protected

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