Lagrangian Particle Code for The Simulation of 2D/3D Fluid Dynamics
|
The default Lagrangian Particle solver for the compressible Euler's equation in 2D and 3D. More...
#include <lp_solver.h>
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... | |
![]() | |
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 | |
![]() | |
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 2D and 3D.
Co-author: Yu, Kwangmin (yukwa) on initial interface design and the design of data pointer swaping algorithms in the Strang splitting method ngmi n@gma il.c om
Created on: 2014/09/20
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
[in] | init | To retrieve information from init |
[in] | pData | To obtain access to an object of the PaticleData clas |
[in] | ns | To obtain access to an object in the NeighbourSearcher class |
|
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
[in] | dt | The length of physical time for this iteration |
Implements LPSolver.