CG  Version 25
GridEvolution.h
Go to the documentation of this file.
1 #ifndef GRID_EVOLUTION_H
2 #define GRID_EVOLUTION_H
3 
4 // This Class is used to keep a time history of a deforming grid
5 // so that time derivatives of the grid motion can be computed.
6 
7 #include "Overture.h"
8 
10 {
11 public:
12 
14 
16 
17 // add a new grid at time t
18 int addGrid( const realArray & x, real t );
19 
20 int getNumberOfTimeLevels() const;
21 
22 int getVelocity( real t, realSerialArray & gridVelocity,
23  const Index &I1, const Index &I2, const Index &I3 ) const;
24 
25 int getAcceleration( real t, realSerialArray & gridVelocity,
26  const Index &I1, const Index &I2, const Index &I3 ) const;
27 
29 int getVelocityOrderOfAccuracy() const;
30 
32 int setVelocityOrderOfAccuracy( int order );
33 
34 // interactive update
35 int update(GenericGraphicsInterface & gi );
36 
37 protected:
38 
39 // For testing we can return a specified velocity and acceleration:
41 {
45 
48 int current;
49 
50 int accelerationOrderOfAccuracy; // order of accuracy for the acceleration computation
51 int velocityOrderOfAccuracy; // order of accurcy for the velocity computation
52 
53 ListOfRealDistributedArray gridList;
54 RealArray time;
55 
57 
58 public:
59 
60 // debug flag:
61 static int debug;
62 
63 };
64 
65 
66 #endif