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

The default Lagrangian Particle solver for the compressible Euler's equation in 1D. More...

#include <lp_solver.h>

Inheritance diagram for HyperbolicLPSolver1D:
LPSolver

Public Member Functions

 HyperbolicLPSolver1D (const Initializer &init, ParticleData *pData)
 Constructor. More...
 
virtual int solve (double dt)
 The 1D Lagrangian particle solver for the compressible Euler's equations for one iteration step. More...
 
- Public Member Functions inherited from LPSolver
virtual ~LPSolver ()
 Destructor.
 
virtual double getMinParticleSpacing () const
 Getter function of the minimum inter-particle distance among all fluid particles. More...
 
virtual double getMaxSoundSpeed () const
 Getter function of the maximum sound speed among all fluid particles. More...
 
virtual double getMaxFluidVelocity () const
 Getter function of the maximum absolute value velocity among all fluid particles. More...
 

Additional Inherited Members

- Protected Attributes inherited from LPSolver
double m_fMinParticleSpacing
 Minimum inter-particle spacing among fluid particles at a time step.
 
double m_fMaxSoundSpeed
 Maximum sound speed of fluid particles at a time step.
 
double m_fMaxFluidVelocity
 Maximum absolute value velocity of fluid particles at a time step.
 
bool m_iIfDebug
 if true then print debug info
 
std::ofstream debug
 output information for debugging
 

Detailed Description

The default Lagrangian Particle solver for the compressible Euler's equation in 1D.

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
2015/03/13

Created on: 2015/03/13

Constructor & Destructor Documentation

HyperbolicLPSolver1D::HyperbolicLPSolver1D ( const Initializer init,
ParticleData pData 
)

Constructor.

Get and set up parameters and obtain access to objects needed for the main solver

Parameters
[in]initTo retrieve information from init
[in]pDataTo obtain access to an object of the PaticleData clas

Member Function Documentation

int HyperbolicLPSolver1D::solve ( double  dt)
virtual

The 1D Lagrangian particle solver for the compressible Euler's equations for one iteration step.

The method should be called by TimeController repeated at every time step

Parameters
[in]dtThe length of physical time for this iteration
Returns
0 if the iteration is success
Warning
The function should always return 0 because all exceptions should be handled inside this class

Implements LPSolver.


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