An abstract class for the family of Lagrangian Particle solvers.
More...
#include <lp_solver.h>
|
virtual | ~LPSolver () |
| Destructor.
|
|
virtual int | solve (double dt)=0 |
| The black box main Lagrangian particle solver for one iteration step. More...
|
|
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...
|
|
|
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
|
|
An abstract class for the family of Lagrangian Particle solvers.
- 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
- Version
- 1.0
- Date
- 2014/10/09
Created on: 2014/09/20
virtual double LPSolver::getMaxFluidVelocity |
( |
| ) |
const |
|
inlinevirtual |
Getter function of the maximum absolute value velocity among all fluid particles.
- Parameters
-
- Returns
- The maximum absolute value velocity among all fluid particles
virtual double LPSolver::getMaxSoundSpeed |
( |
| ) |
const |
|
inlinevirtual |
Getter function of the maximum sound speed among all fluid particles.
- Parameters
-
- Returns
- The maximum sound speed among all fluid particles
virtual double LPSolver::getMinParticleSpacing |
( |
| ) |
const |
|
inlinevirtual |
Getter function of the minimum inter-particle distance among all fluid particles.
- Parameters
-
- Returns
- The minimum inter-particle distance among all fluid particles
virtual int LPSolver::solve |
( |
double |
dt | ) |
|
|
pure virtual |
The black box main Lagrangian particle solver for one iteration step.
The method should be called by TimeController repeated at every time step
- Parameters
-
[in] | dt | The 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
Implemented in HyperbolicLPSolver1D, and HyperbolicLPSolver.
The documentation for this class was generated from the following file: