-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGprobeFall.h
More file actions
55 lines (44 loc) · 1.09 KB
/
GprobeFall.h
File metadata and controls
55 lines (44 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef _GPROBEFALL_H
#define _GPROBEFALL_H
#include <fstream>
#include "Problem.h"
#include "Point.h"
#include "Cube.h"
#include "Sphere.h"
#include "Cone.h"
#include "Cylinder.h"
#include "ode/ode.h"
class GprobeFall: public Problem {
private:
Cube experiment_box;
Cube fluid;
PointVect parts;
PointVect boundary_parts;
PointVect boundary_elems;
PointVect vertex_parts;
VertexVect vertex_indexes;
double H; // still water level
double lx, ly, lz; // dimension of experiment box
bool m_usePlanes; // use planes or boundaries
// ODE stuff
Cube cube;
Cylinder cylinder;
Cone cone;
dGeomID planes[5];
dJointID joint;
float3 ODEGravity;
// ode output writing
ofstream outputData;
int intTime1, intTime2;
public:
GprobeFall(const GlobalData *);
virtual ~GprobeFall(void);
int fill_parts(void);
void copy_planes(float4*, float*);
uint fill_planes(void);
void copy_to_array(BufferList &);
void ODE_near_callback(void *, dGeomID, dGeomID);
float3 g_callback(const float);
void release_memory(void);
};
#endif /* _GPROBEFALL_H */