-
Notifications
You must be signed in to change notification settings - Fork 0
/
MSimulationInit.h
executable file
·48 lines (41 loc) · 1001 Bytes
/
MSimulationInit.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
47
48
#ifndef MSIMULATIONINIT_H_
#define MSIMULATIONINIT_H_
#include "MSimulationData.h"
#include "MSolution.h"
#include "MOutput.h"
class MSimulationInit
{
// Member functions
protected:
MSimulationInit(MSimulationData *simdata, MSolution *solution, MOutput *output);
virtual ~MSimulationInit();
public:
static MSimulationInit* Instance(MSimulationData *simdata, MSolution *solution, MOutput *output);
void DestroyInstance();
private:
static MSimulationInit *_instance;
public:
int Initialize();
int InitMass();
int InitVariables();
int InitG();
int InitFirstTimeStep();
int InitNeighbours();
int InitBoundaryMultipliersAndAddtions();
int InitRigidBodyData();
private:
void PrintScreenLog(const std::string &msg);
int PrintMass();
int CalcMassFromTotal();
int InitRho_P_C();
int InitSigma();
int InitH();
int InitOld();
int EOScalc(MParticle &part);
// Attributes
public:
MSimulationData *m_simdata;
MSolution *m_solution;
MOutput *m_output;
};
#endif /*MSIMULATIONINIT_H_*/