valSPH
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Particle.h
Go to the documentation of this file.
1
10
#ifndef __Particle_h__
11
#define __Particle_h__
12
13
14
#include "
CotangentBundlePoint.h
"
15
#include <deque>
16
17
18
class
Particle
{
19
20
21
private
:
22
23
24
double
m;
25
double
h;
26
27
int
tamDeque;
28
deque<CotangentBundlePoint> qp;
29
deque<double> rho;
30
deque<double> e;
31
deque<double> P;
32
33
34
public
:
35
36
40
Particle
();
41
42
54
Particle
(
CotangentBundlePoint
qp,
double
rho,
double
e,
double
P,
double
m,
double
h,
int
preSteps);
55
56
62
CotangentBundlePoint
getCotangentBundlePoint
();
63
64
70
CotangentBundlePoint
getCotangentBundlePoint
(
int
i);
71
72
78
double
getDensity
();
79
80
86
double
getDensity
(
int
i);
87
88
94
double
getEnergy
();
95
96
102
double
getEnergy
(
int
i);
103
104
110
double
getPressure
();
111
112
118
double
getPressure
(
int
i);
119
120
126
double
getRestMass
();
127
128
134
double
getSmoothingLength
();
135
136
142
void
setCotangentBundlePoint
(
CotangentBundlePoint
qp);
143
144
150
void
setDensity
(
double
rho);
151
152
158
void
setEnergy
(
double
e);
159
160
166
void
setPressure
(
double
P);
167
168
174
void
setRestMass
(
double
m);
175
176
182
void
setSmoothingLength
(
double
h);
183
184
188
~Particle
();
189
190
191
};
192
193
194
#endif
valCode
repository
valSPH
src
Particle.h
Generated on Fri Nov 23 2012 19:13:58 for valSPH by
1.8.2