valSPH
 All Classes Files Functions Variables
AllPair Class Reference

#include <AllPair.h>

Inheritance diagram for AllPair:
Inheritance graph
Collaboration diagram for AllPair:
Collaboration graph

Public Member Functions

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

AllPair::AllPair ( )

It creates a new empty AllPair.

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

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

It destroys the AllPair.

Member Function Documentation

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

It updates the LinkedList.

Parameters
particlesof the fluid

Implements SpatialIndex.


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