Main Page | Class Hierarchy | Class List | File List | Class Members

SPH_Space Class Reference

#include <sph_space.h>

Inheritance diagram for SPH_Space:

Space List of all members.

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)

Detailed Description

Particle space with access functions for SPH.

Author:
Moritz Franosch


Constructor & Destructor Documentation

SPH_Space::SPH_Space const double  length_x,
const double  length_y,
const double  length_z,
const double  diameter
 

Constructs a space of particles.

The space has dimensions (length_x,length_y,length_z) and diameter of one cell is diameter.


Member Function Documentation

double SPH_Space::get_neighbor_density  )  const [inline]
 

Returns the density of the current neighbor particle.

double SPH_Space::get_neighbor_mass  )  const [inline]
 

Returns the mass of the current neighbor particle.

const Particle::vector_t& SPH_Space::get_neighbor_position  )  const [inline]
 

Returns the position of the current neighbor particle.

const Particle::vector_t& SPH_Space::get_neighbor_velocity  )  const [inline]
 

Returns the velocity of the current neighbor particle.

double SPH_Space::get_particle_density  )  const [inline]
 

Returns the density of the current particle.

double SPH_Space::get_particle_mass  )  const [inline]
 

Returns the mass of the current particle.

const Particle::vector_t& SPH_Space::get_particle_position  )  const [inline]
 

Returns the position of the current particle.

const Particle::vector_t& SPH_Space::get_particle_velocity  )  const [inline]
 

Returns the velocity of the current particle.

void SPH_Space::set_particle_acceleration const Particle::vector_t &  a  ) 
 

Set the acceleration of the current particle.

void SPH_Space::set_particle_density const double  rho  ) 
 

Sets the density of the current particle to rho.

void SPH_Space::set_particle_drho const double &  drho  ) 
 

Set the drho/dt of the current particle.

void SPH_Space::set_particle_mass const double  m  ) 
 

Sets the mass of the current particle to m.

double SPH_Space::update_particles const double  dt  ) 
 

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.


The documentation for this class was generated from the following files:
Generated on Fri Apr 22 11:06:48 2005 for partsim.kdevelop by doxygen 1.3.6