valSPH
 All Classes Files Functions Variables
SpatialHashing Class Reference

#include <SpatialHashing.h>

Inheritance diagram for SpatialHashing:
Inheritance graph
Collaboration diagram for SpatialHashing:
Collaboration graph

Public Member Functions

 SpatialHashing ()
 It creates a new empty SpatialHashing.
 
 SpatialHashing (vector< double > qiMin, vector< double > qiMax, double smoothingLength, vector< Particle > particles)
 It creates a new SpatialHashing with the parameters supplied.
 
list< ParticlegetNNP (Particle particle, vector< Particle > particles)
 It performs the NNPS and returns the NNP of the particle.
 
void update (vector< Particle > particles)
 It updates the SpatialHashing.
 
 ~SpatialHashing ()
 It destroys the SpatialHashing.
 
- Public Member Functions inherited from SpatialIndex
 SpatialIndex ()
 It creates a new empty. It only will be called from constructors of its inherited classes.
 
 SpatialIndex (vector< double > qiMin, vector< double > qiMax, double smoothingLength)
 It creates a new SpatialDecomposition with the parameters supplied. It only will be called from constructors of its inherited classes.
 
 ~SpatialIndex ()
 It destroys the SpatialIndex.
 

Additional Inherited Members

- Protected Attributes inherited from SpatialIndex
vector< double > qiMin
 
vector< double > qiMax
 
double smoothingLength
 

Constructor & Destructor Documentation

SpatialHashing::SpatialHashing ( )

It creates a new empty SpatialHashing.

SpatialHashing::SpatialHashing ( vector< double >  qiMin,
vector< double >  qiMax,
double  smoothingLength,
vector< Particle particles 
)

It creates a new SpatialHashing with the parameters supplied.

Parameters
qiMinminimum qi values of the simulation's stage
qiMaxmaximum qi values of the simulation's stage
smoothingLengththe new value of the smoothingLength
particlesof the fluid
SpatialHashing::~SpatialHashing ( )

It destroys the SpatialHashing.

Member Function Documentation

list< Particle > SpatialHashing::getNNP ( Particle  particle,
vector< Particle particles 
)
virtual

It performs the NNPS and returns the NNP of the particle.

Returns
vector that contains the NNP of the particle

Implements SpatialIndex.

Here is the call graph for this function:

void SpatialHashing::update ( vector< Particle particles)
virtual

It updates the SpatialHashing.

Parameters
particlesof the fluid

Implements SpatialIndex.


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