forked from martinjrobins/SPH-DEM
-
Notifications
You must be signed in to change notification settings - Fork 1
/
sphCompress.h
executable file
·46 lines (32 loc) · 964 Bytes
/
sphCompress.h
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
#ifndef SPHCOMPRESS_H
#define SPHCOMPRESS_H
#include "data.h"
#include "vect.h"
#include "particle.h"
#include "sph.h"
#define MAX_H_ERROR 0.01
#define NUM_POINT_ITERATIONS 6
class CsphCompress {
public:
static int num_recalc_dens;
static double dt,hdt,maxdt;
static double dtsig;
CsphCompress(Cdata *_data) {
data = _data;
};
void start();
void middle();
void end();
static void kick(Cparticle &p);
static void drift(Cparticle &p);
static void drift_no_v(Cparticle &p);
static void calc_pressure_spsound_and_pdr2(Cparticle &p);
static void init_hErr(Cparticle &p);
static bool if_hErr_greater_than(Cparticle &p);
static void update_hErr_and_calc_h(Cparticle &p);
static void init_press_visc_force(Cparticle &p);
static void calc_press_visc_force(Cparticle &pa,Cparticle &pb);
private:
Cdata *data;
};
#endif