CG
Version 25
Main Page
Namespaces
Classes
Files
File List
File Members
cg.v25
common
moving
src
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
9
class
GridEvolution
10
{
11
public
:
12
13
GridEvolution
();
14
15
~GridEvolution
();
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
28
int
getAccelerationOrderOfAccuracy
()
const
;
29
int
getVelocityOrderOfAccuracy
()
const
;
30
31
int
setAccelerationOrderOfAccuracy
(
int
order
);
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:
40
enum
SpecifiedMotionEnum
41
{
42
noSpecifiedMotion
,
43
linearMotion
44
}
specifiedMotion
;
45
46
int
maximumNumberOfTimeLevels
;
47
int
numberOfTimeLevels
;
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
56
real
specifiedMotionParameters
[10];
57
58
public
:
59
60
// debug flag:
61
static
int
debug
;
62
63
};
64
65
66
#endif
Generated on Fri Jan 4 2013 10:19:20 for CG by
1.8.3