Lagrangian Particle Code for The Simulation of 2D/3D Fluid Dynamics
|
A class that implements the Gaussian-pressure state on a line. More...
#include <state_1d.h>
Public Member Functions | |
GaussianPressure1DState () | |
Constructor. More... | |
virtual | ~GaussianPressure1DState () |
destructor | |
virtual double | pressure (double x, double y, double z) |
Calculates pressure based on the Cartesian coordinate x of a particle and Gaussian distribution. More... | |
virtual double | density (double x, double y, double z) |
Specifies a constant value as specified in constructor implementation. More... | |
virtual void | velocity (double x, double y, double z, double &vX, double &vY, double &vZ) |
Specifies uniform zero velocity as specified in constructor implementation. More... | |
![]() | |
virtual | ~State () |
Destructor. | |
A class that implements the Gaussian-pressure state on a line.
This state specifies a Gaussian-profile pressure state with uniform density and uniform zero velocity
Created on: 2015/03/13
GaussianPressure1DState::GaussianPressure1DState | ( | ) |
Constructor.
a 1D Gaussian-profile pressure state with uniform density and uniform zero velocity
|
virtual |
Specifies a constant value as specified in constructor implementation.
[in] | x | The x-coordinate |
[in] | y | The y-coordinate |
[in] | z | The z-coordinate |
Implements State.
|
virtual |
Calculates pressure based on the Cartesian coordinate x of a particle and Gaussian distribution.
[in] | x | The x-coordinate |
[in] | y | The y-coordinate |
[in] | z | The z-coordinate |
Implements State.
|
virtual |
Specifies uniform zero velocity as specified in constructor implementation.
[in] | x | The x-coordinate |
[in] | y | The y-coordinate |
[in] | z | The z-coordinate |
[out] | vX | A constant velocity value |
[out] | vY | A constant velocity value |
[out] | vZ | A constant velocity value |
Implements State.