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

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

#include <state_collision.h>

Inheritance diagram for RightUniformVelocityState:
State

Public Member Functions

 RightUniformVelocityState ()
 construtor
 
virtual ~RightUniformVelocityState ()
 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...
 
- Public Member Functions inherited from State
virtual ~State ()
 Destructor.
 

Detailed Description

A class that implements the right uniform velocity state.

This state specifies a uniform velocity toward the left hand side along the x-coordinate, with uniform density and uniform zero pressure. The keyword Right in the name indicates it is for the object on the right in the collision simulation

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/09/08

Created on: 2014/09/07

Member Function Documentation

double RightUniformVelocityState::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 RightUniformVelocityState::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 RightUniformVelocityState::velocity ( double  x,
double  y,
double  z,
double &  vX,
double &  vY,
double &  vZ 
)
virtual

Specifies constant velocity to the right-hand-side along the x-coordinate with magnitude specified in constructor implementation.

Parameters
[in]xThe x-coordinate
[in]yThe y-coordinate
[in]zThe z-coordinate
[out]vXA constant value (>0)
[out]vYzero
[out]vZzero
Returns
None

Implements State.


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