Lagrangian Particle Code for The Simulation of 2D/3D Fluid Dynamics
 All Classes Files Functions Variables Typedefs Friends Pages
Public Member Functions | List of all members
State Class Referenceabstract

An abstract class for the initialization of the state of fluid objects. More...

#include <state.h>

Inheritance diagram for State:
GaussianPressure1DState GaussianPressureState LeftUniformVelocityState RightUniformVelocityState UniformVelocityState

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.
 

Detailed Description

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 ( $x$, $y$, $z$).

Note
Author
Chen, Hsin-Chiang (morri.nosp@m.sche.nosp@m.n2008.nosp@m.@gma.nosp@m.il.co.nosp@m.m)
Version
1.0
Date
2014/08/08

Created on: 2014/06/07

Member Function Documentation

virtual double State::density ( double  x,
double  y,
double  z 
)
pure virtual

Calculates density based on the Cartesian coordinate (x,y,z) of a particle.

Parameters
[in]xThe x-coordinate
[in]yThe y-coordinate
[in]zThe z-coordinate
Returns
The calculated density value

Implemented in UniformVelocityState, RightUniformVelocityState, GaussianPressureState, GaussianPressure1DState, and LeftUniformVelocityState.

virtual double State::pressure ( double  x,
double  y,
double  z 
)
pure virtual

Calculates pressure based on the Cartesian coordinate (x,y,z) of a particle.

Parameters
[in]xThe x-coordinate
[in]yThe y-coordinate
[in]zThe z-coordinate
Returns
The calculated pressure value

Implemented in UniformVelocityState, RightUniformVelocityState, GaussianPressureState, GaussianPressure1DState, and LeftUniformVelocityState.

virtual void State::velocity ( double  x,
double  y,
double  z,
double &  vX,
double &  vY,
double &  vZ 
)
pure virtual

Calculates velocity based on the Cartesian coordinate (x,y,z) of a particle.

Parameters
[in]xThe x-coordinate
[in]yThe y-coordinate
[in]zThe z-coordinate
[out]vXThe calculated velocity value in x-coordinate
[out]vYThe calculated velocity value in y-coordinate
[out]vZThe calculated velocity value in z-coordinate
Returns
None

Implemented in UniformVelocityState, RightUniformVelocityState, GaussianPressureState, GaussianPressure1DState, and LeftUniformVelocityState.


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