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

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

#include <lp_solver.h>

Inheritance diagram for HyperbolicLPSolver:
LPSolver

Public Member Functions

 HyperbolicLPSolver (const Initializer &init, ParticleData *pData, NeighbourSearcher *ns)
 Constructor. More...
 
virtual int solve (double dt)
 The 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 2D and 3D.

Author
Chen, Hsin-Chiang (morri.nosp@m.sche.nosp@m.n2008.nosp@m.@gma.nosp@m.il.co.nosp@m.m)

Co-author: Yu, Kwangmin (yukwa.nosp@m.ngmi.nosp@m.n@gma.nosp@m.il.c.nosp@m.om) on initial interface design and the design of data pointer swaping algorithms in the Strang splitting method

Version
1.0
Date
2014/10/09

Created on: 2014/09/20

Constructor & Destructor Documentation

HyperbolicLPSolver::HyperbolicLPSolver ( const Initializer init,
ParticleData pData,
NeighbourSearcher ns 
)

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
[in]nsTo obtain access to an object in the NeighbourSearcher class

Member Function Documentation

int HyperbolicLPSolver::solve ( double  dt)
virtual

The 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: