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
UniformVelocityState Class Reference

A class that implements the uniform velocity state. More...

#include <state.h>

Inheritance diagram for UniformVelocityState:
State

Public Member Functions

 UniformVelocityState ()
 Constructor.
 
virtual ~UniformVelocityState ()
 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 uniform radial inward velocity with magnitude specified in constructor implementation. More...
 
- Public Member Functions inherited from State
virtual ~State ()
 Destructor.
 

Detailed Description

A class that implements the uniform velocity state.

The uniform velocity state specifies the velocity as inward uniform radial velocity, with uniform density and uniform pressure everywhere

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

double UniformVelocityState::density ( double  x,
double  y,
double  z 
)
virtual

Specifies a constant value as specified in constructor implementation.

Parameters
[in]xThe x-coordinate
[in]yThe y-coordinate
[in]zThe z-coordinate
Returns
A constant density value

Implements State.

double UniformVelocityState::pressure ( double  x,
double  y,
double  z 
)
virtual

Specifies constant pressure as specified in construtor implementation.

Parameters
[in]xThe x-coordinate
[in]yThe y-coordinate
[in]zThe z-coordinate
Returns
A constnat pressure value

Implements State.

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

Specifies uniform radial inward velocity with magnitude specified in constructor implementation.

Parameters
[in]xThe x-coordinate
[in]yThe y-coordinate
[in]zThe z-coordinate
[out]vXA uniform radial inward velocity value
[out]vYA uniform radial inward velocity value
[out]vZA uniform radial inward velocity value
Returns
None

Implements State.


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