MPS-Basic
|
Class for particle in MPS method. More...
#include <particle.hpp>
Public Member Functions | |
Particle (int id, ParticleType type, Eigen::Vector3d pos, Eigen::Vector3d vel, double density, int fluidType=0) | |
constructor | |
double | inverseDensity () const |
calculate inverse of density for collision | |
Public Attributes | |
int | id |
index of the particle | |
ParticleType | type |
type of the particle | |
int | fluidType = 0 |
Eigen::Vector3d | position |
position of the particle | |
Eigen::Vector3d | velocity |
velocity of the particle | |
Eigen::Vector3d | acceleration = Eigen::Vector3d::Zero() |
acceleration of the particle | |
double | pressure = 0 |
pressure of the particle | |
double | numberDensity = 0 |
number density of the particle | |
double | density = 0 |
density of the particle. It is used only for fluid and wall particles. | |
FluidState | boundaryCondition = FluidState::Ignored |
boundary condition of the particle | |
double | sourceTerm = 0 |
source term of the particle | |
double | minimumPressure = 0 |
minimum pressure of the particle | |
std::vector< Neighbor > | neighbors |
neighbors of the particle | |
Class for particle in MPS method.
Definition at line 47 of file particle.hpp.
Particle::Particle | ( | int | id, |
ParticleType | type, | ||
Eigen::Vector3d | pos, | ||
Eigen::Vector3d | vel, | ||
double | density, | ||
int | fluidType = 0 ) |
constructor
id | index of the particle |
type | type of the particle |
pos | position of the particle |
vel | velocity of the particle |
density | density of the particle |
fluidType | type of the fluid (optional). Default value is 0. |
Definition at line 3 of file particle.cpp.
double Particle::inverseDensity | ( | ) | const |
calculate inverse of density for collision
Definition at line 12 of file particle.cpp.
int Particle::id |
index of the particle
Definition at line 50 of file particle.hpp.
ParticleType Particle::type |
type of the particle
Definition at line 51 of file particle.hpp.
int Particle::fluidType = 0 |
type of the fluid. This is used for simulation of multiple fluid types. When treating only one fluid, this property is not used. Default value is 0.
Definition at line 52 of file particle.hpp.
Eigen::Vector3d Particle::position |
position of the particle
Definition at line 55 of file particle.hpp.
Eigen::Vector3d Particle::velocity |
velocity of the particle
Definition at line 56 of file particle.hpp.
Eigen::Vector3d Particle::acceleration = Eigen::Vector3d::Zero() |
acceleration of the particle
Definition at line 57 of file particle.hpp.
double Particle::pressure = 0 |
pressure of the particle
Definition at line 58 of file particle.hpp.
double Particle::numberDensity = 0 |
number density of the particle
Definition at line 59 of file particle.hpp.
double Particle::density = 0 |
density of the particle. It is used only for fluid and wall particles.
Definition at line 60 of file particle.hpp.
FluidState Particle::boundaryCondition = FluidState::Ignored |
boundary condition of the particle
Definition at line 62 of file particle.hpp.
double Particle::sourceTerm = 0 |
source term of the particle
Definition at line 63 of file particle.hpp.
double Particle::minimumPressure = 0 |
minimum pressure of the particle
Definition at line 64 of file particle.hpp.
std::vector<Neighbor> Particle::neighbors |
neighbors of the particle
Definition at line 66 of file particle.hpp.