Lagrangian Particle Code for The Simulation of 2D/3D Fluid Dynamics
|
An abstract class for the initialization of the state of fluid objects. More...
#include <state.h>
Public Member Functions | |
virtual double | pressure (double x, double y, double z)=0 |
Calculates pressure based on the Cartesian coordinate (x,y,z) of a particle. More... | |
virtual double | density (double x, double y, double z)=0 |
Calculates density based on the Cartesian coordinate (x,y,z) of a particle. More... | |
virtual void | velocity (double x, double y, double z, double &vX, double &vY, double &vZ)=0 |
Calculates velocity based on the Cartesian coordinate (x,y,z) of a particle. More... | |
virtual | ~State () |
Destructor. | |
An abstract class for the initialization of the state of fluid objects.
The specified states include pressure, density, and velocity. These states are assigned based on the initial Cartesian coordinate of particles ( ,
,
).
Created on: 2014/06/07
|
pure virtual |
Calculates density based on the Cartesian coordinate (x,y,z) of a particle.
[in] | x | The x-coordinate |
[in] | y | The y-coordinate |
[in] | z | The z-coordinate |
Implemented in UniformVelocityState, RightUniformVelocityState, GaussianPressureState, GaussianPressure1DState, and LeftUniformVelocityState.
|
pure virtual |
Calculates pressure based on the Cartesian coordinate (x,y,z) of a particle.
[in] | x | The x-coordinate |
[in] | y | The y-coordinate |
[in] | z | The z-coordinate |
Implemented in UniformVelocityState, RightUniformVelocityState, GaussianPressureState, GaussianPressure1DState, and LeftUniformVelocityState.
|
pure virtual |
Calculates velocity based on the Cartesian coordinate (x,y,z) of a particle.
[in] | x | The x-coordinate |
[in] | y | The y-coordinate |
[in] | z | The z-coordinate |
[out] | vX | The calculated velocity value in x-coordinate |
[out] | vY | The calculated velocity value in y-coordinate |
[out] | vZ | The calculated velocity value in z-coordinate |
Implemented in UniformVelocityState, RightUniformVelocityState, GaussianPressureState, GaussianPressure1DState, and LeftUniformVelocityState.