Lagrangian Particle Code for The Simulation of 2D/3D Fluid Dynamics
|
A class that implements the left uniform velocity state. More...
#include <state_collision.h>
Public Member Functions | |
LeftUniformVelocityState () | |
constructor | |
virtual | ~LeftUniformVelocityState () |
destructor | |
virtual double | pressure (double x, double y, double z) |
Specifies constant pressure as specified in construtor implementation. 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 constant velocity to the right-hand-side along the x-coordinate with magnitude specified in constructor implementation. More... | |
![]() | |
virtual | ~State () |
Destructor. | |
A class that implements the left uniform velocity state.
This state specifies a uniform velocity toward the right hand side along the x-coordinate, with uniform density and uniform zero pressure. The keyword Left in the name indicates it is for the object on the left in the collision simulation
Created on: 2014/09/07
|
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 |
Specifies constant pressure as specified in construtor implementation.
[in] | x | The x-coordinate |
[in] | y | The y-coordinate |
[in] | z | The z-coordinate |
Implements State.
|
virtual |
Specifies constant velocity to the right-hand-side along the x-coordinate with magnitude specified in constructor implementation.
[in] | x | The x-coordinate |
[in] | y | The y-coordinate |
[in] | z | The z-coordinate |
[out] | vX | A constant value (>0) |
[out] | vY | zero |
[out] | vZ | zero |
Implements State.