#include <sph_space.h>
Inheritance diagram for SPH_Space:
Public Member Functions | |
SPH_Space (const double length_x, const double length_y, const double length_z, const double diameter) | |
const Particle::vector_t & | get_particle_position () const |
const Particle::vector_t & | get_neighbor_position () const |
const Particle::vector_t & | get_particle_velocity () const |
const Particle::vector_t & | get_neighbor_velocity () const |
double | get_particle_mass () const |
double | get_neighbor_mass () const |
void | set_particle_mass (const double m) |
double | get_particle_density () const |
void | set_particle_density (const double rho) |
double | get_neighbor_density () const |
void | set_particle_drho (const double &drho) |
void | set_particle_acceleration (const Particle::vector_t &a) |
double | update_particles (const double dt) |
|
Constructs a space of particles. The space has dimensions (length_x,length_y,length_z) and diameter of one cell is diameter. |
|
Returns the density of the current neighbor particle. |
|
Returns the mass of the current neighbor particle. |
|
Returns the position of the current neighbor particle. |
|
Returns the velocity of the current neighbor particle. |
|
Returns the density of the current particle. |
|
Returns the mass of the current particle. |
|
Returns the position of the current particle. |
|
Returns the velocity of the current particle. |
|
Set the acceleration of the current particle. |
|
Sets the density of the current particle to rho. |
|
Set the drho/dt of the current particle. |
|
Sets the mass of the current particle to m. |
|
Velocity and positons of particles is updated according to the current accelerations. Ensures boundary conditions are met. The advance in time is returned. Also reorganizes particle layout. Invalidates all references to particles. |