|
Lagrangian Particle Code for The Simulation of 2D/3D Fluid Dynamics
|
The default Lagrangian Particle solver for the compressible Euler's equation in 1D. More...
#include <lp_solver.h>
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 | |
The default Lagrangian Particle solver for the compressible Euler's equation in 1D.
Created on: 2015/03/13
| HyperbolicLPSolver1D::HyperbolicLPSolver1D | ( | const Initializer & | init, |
| ParticleData * | pData | ||
| ) |
Constructor.
Get and set up parameters and obtain access to objects needed for the main solver
| [in] | init | To retrieve information from init |
| [in] | pData | To obtain access to an object of the PaticleData clas |
|
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
| [in] | dt | The length of physical time for this iteration |
Implements LPSolver.
1.8.6