valSPH
 All Classes Files Functions Variables
SpatialTree Class Reference

#include <SpatialTree.h>

Inheritance diagram for SpatialTree:
Inheritance graph
Collaboration diagram for SpatialTree:
Collaboration graph

Public Member Functions

 SpatialTree ()
 It creates a new empty SpatialTree.
 
 SpatialTree (vector< double > qiMin, vector< double > qiMax, double smoothingLength, vector< Particle > particles)
 It creates a new SpatialTree 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 SpatialTree.
 
 ~SpatialTree ()
 It destroys the SpatialTree.
 
- 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

SpatialTree::SpatialTree ( )

It creates a new empty SpatialTree.

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

It creates a new SpatialTree 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
SpatialTree::~SpatialTree ( )

It destroys the SpatialTree.

Member Function Documentation

list< Particle > SpatialTree::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 SpatialTree::update ( vector< Particle particles)
virtual

It updates the SpatialTree.

Parameters
particlesof the fluid

Implements SpatialIndex.


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