#include <Particle.h>
It creates a new empty particle.
Particle::Particle |
( |
CotangentBundlePoint |
qp, |
|
|
double |
rho, |
|
|
double |
e, |
|
|
double |
P, |
|
|
double |
m, |
|
|
double |
h, |
|
|
int |
preSteps |
|
) |
| |
It creates a new particle with the parameters supplied.
- Parameters
-
qp | cotangent bundle point |
rho | density of the particle |
e | energy of the particle |
P | pressure of the particle |
m | rest mass of the particle |
h | smoothing length of the particle |
preSteps | number of previous steps stored |
It retrieves the cotangent bundle point of the particle.
- Returns
- an object containing the cotangent bundle point of the particle
It retrieves the cotangent bundle point of the particle i steps before.
- Returns
- an object containing the cotangent bundle point of the particle i steps before
double Particle::getDensity |
( |
| ) |
|
It retrieves the energy of the particle.
- Returns
- the density of the particle
double Particle::getDensity |
( |
int |
i | ) |
|
It retrieves the energy of the particle i steps before.
- Returns
- the density of the particle i steps before
double Particle::getEnergy |
( |
| ) |
|
It retrieves the energy of the particle.
- Returns
- the energy of the particle
double Particle::getEnergy |
( |
int |
i | ) |
|
It retrieves the energy of the particle i steps before.
- Returns
- the energy of the particle i steps before
double Particle::getPressure |
( |
| ) |
|
It retrieves the pressure of the particle.
- Returns
- the pressure of the particle
double Particle::getPressure |
( |
int |
i | ) |
|
It retrieves the pressure of the particle i steps before.
- Returns
- the pressure of the particle i steps before
double Particle::getRestMass |
( |
| ) |
|
It retrieves the rest mass of the particle.
- Returns
- the rest mass of the particle
double Particle::getSmoothingLength |
( |
| ) |
|
It retrieves the smoothing length of the particle.
- Returns
- the smoothing length of the particle
It changes the cotangent bundle point of the particle.
- Parameters
-
cotangentBundlePoint | the new the cotangent bundle point of the value |
void Particle::setDensity |
( |
double |
rho | ) |
|
It changes the density of the particle.
- Parameters
-
void Particle::setEnergy |
( |
double |
e | ) |
|
It changes the energy of the particle.
- Parameters
-
void Particle::setPressure |
( |
double |
P | ) |
|
It changes the pressure of the particle.
- Parameters
-
void Particle::setRestMass |
( |
double |
m | ) |
|
It changes the rest mass of the particle.
- Parameters
-
void Particle::setSmoothingLength |
( |
double |
h | ) |
|
It changes the smoothing length of the particle.
- Parameters
-
h | the new smoothing length value |
The documentation for this class was generated from the following files: