iMSTK
Interactive Medical Simulation Toolkit
Public Member Functions | List of all members
imstk::SphState Class Reference

Simulation states of SPH particles. More...

#include <imstkSphState.h>

Public Member Functions

 SphState (const int numElements)
 
void setBoundaryParticlePositions (std::shared_ptr< VecDataArray< double, 3 >> positions)
 Set positions of the boundary (solid) particles.
 
size_t getNumParticles () const
 Get number of particles.
 
std::shared_ptr< VecDataArray< double, 3 > > getFullStepVelocities () const
 Returns the vector of all particle velocities.
 
std::shared_ptr< VecDataArray< double, 3 > > getHalfStepVelocities () const
 Returns the vector of all particle velocities.
 
std::shared_ptr< VecDataArray< double, 3 > > getBoundaryParticlePositions () const
 Returns the vector of all particle positions.
 
std::shared_ptr< VecDataArray< double, 3 > > getNormals () const
 Returns the vector of all particle surface normals.
 
std::shared_ptr< DataArray< double > > getDensities () const
 Returns the vector of all particle densities.
 
std::shared_ptr< VecDataArray< double, 3 > > getAccelerations () const
 Returns the vector of all particle accelerations.
 
std::shared_ptr< VecDataArray< double, 3 > > getDiffuseVelocities () const
 Returns the vector of all velocity diffusion.
 
void setState (std::shared_ptr< SphState > rhs)
 Set the state to a given one.
 
std::shared_ptr< VecDataArray< double, 3 > > getPositions () const
 Get/Set the vector of all particle positions.
 
void setPositions (std::shared_ptr< VecDataArray< double, 3 >> positions)
 
std::shared_ptr< VecDataArray< double, 3 > > getVelocities () const
 Get/Set the vector of all particle velocities.
 
void setVelocities (std::shared_ptr< VecDataArray< double, 3 >> velocities)
 
std::vector< std::vector< size_t > > & getFluidNeighborLists ()
 Returns the vector of neighbor fluid particles.
 
const std::vector< std::vector< size_t > > & getFluidNeighborLists () const
 
std::vector< std::vector< size_t > > & getBoundaryNeighborLists ()
 Returns the vector of neighbor of boundary particles.
 
const std::vector< std::vector< size_t > > & getBoundaryNeighborLists () const
 
std::vector< std::vector< NeighborInfo > > & getNeighborInfo ()
 Returns the vector of neighbor information ( {relative position, density} ), which is cached for other computation.
 
const std::vector< std::vector< NeighborInfo > > & getNeighborInfo () const
 

Detailed Description

Simulation states of SPH particles.

Definition at line 32 of file imstkSphState.h.


The documentation for this class was generated from the following files: