double inverseDensity() const
calculate inverse of density for collision
double density
density of the particle. It is used only for fluid and wall particles.
Particle(int id, ParticleType type, Eigen::Vector3d pos, Eigen::Vector3d vel, double density, int fluidType=0)
constructor
ParticleType
Enum class for particle type.
@ Ghost
Ghost particle (outside of the domain, not used for calculation)
@ DummyWall
Dummy wall particle (pressure is not calculated)