valSPH
 All Classes Files Functions Variables
Fluid Class Reference

#include <Fluid.h>

Collaboration diagram for Fluid:
Collaboration graph

Public Member Functions

 Fluid ()
 It creates a new empty Fluid.
 
 Fluid (int dim, int numberOfParticles, string odeSolver, string typeEquation, string eoS, string kernel)
 It creates a new Fluid. Its OdeSolver is indicated by the string passed as argument.
 
void setNumberOfParticles (int numberOfParticles)
 It creates a new empty Fluid.
 
vector< ParticlegetParticles ()
 It returns the set of particles forming the fluid.
 
void performHydrodynamicalEvolution (double h, double ti, SpatialIndex *spatialIndex)
 It updates the position of the fluid particles.
 
 ~Fluid ()
 It destroys the Fluid.
 

Constructor & Destructor Documentation

Fluid::Fluid ( )

It creates a new empty Fluid.

Fluid::Fluid ( int  dim,
int  numberOfParticles,
string  odeSolver,
string  typeEquation,
string  eoS,
string  kernel 
)

It creates a new Fluid. Its OdeSolver is indicated by the string passed as argument.

Parameters
dimdimension of the stage
numberOfParticlesthe number of particles
odeSolvera string containing the type of the OdeSolver
typeEquationa string containing the type of the hydrodynamical equations
eoSModelthe EoS model used for the fluid
kernelthe Kernel type for the fluid

Here is the call graph for this function:

Fluid::~Fluid ( )

It destroys the Fluid.

Member Function Documentation

vector< Particle > Fluid::getParticles ( )

It returns the set of particles forming the fluid.

Returns
vector that contains the particles
void Fluid::performHydrodynamicalEvolution ( double  h,
double  ti,
SpatialIndex spatialIndex 
)

It updates the position of the fluid particles.

Here is the call graph for this function:

void Fluid::setNumberOfParticles ( int  numberOfParticles)

It creates a new empty Fluid.


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