SPH
|
Minimalistic SPH solver, mainly used for benchmarking and educational purposes. More...
#include <SimpleSolver.h>
Public Member Functions | |
SimpleSolver (IScheduler &scheduler, const RunSettings &settings) | |
virtual void | integrate (Storage &storage, Statistics &UNUSED(stats)) override |
virtual void | create (Storage &storage, IMaterial &material) const override |
Initializes all quantities needed by the solver in the storage. More... | |
Public Member Functions inherited from ISolver | |
virtual void | integrate (Storage &storage, Statistics &stats)=0 |
Computes derivatives of all time-dependent quantities. More... | |
virtual void | collide (Storage &UNUSED(storage), Statistics &UNUSED(stats), const Float UNUSED(dt)) |
Detects the collisions and computes new positions of particles. More... | |
Public Member Functions inherited from Polymorphic | |
virtual | ~Polymorphic () |
Minimalistic SPH solver, mainly used for benchmarking and educational purposes.
Definition at line 15 of file SimpleSolver.h.
|
inline |
Definition at line 39 of file SimpleSolver.h.
|
inlineoverridevirtual |
Initializes all quantities needed by the solver in the storage.
When called, storage already contains particle positions and their masses. All remaining quantities must be created by the solver. The function is called once for every body in the run. The given storage is guaranteed to be homogeneous; it contains only a single material.
storage | Particle storage that shall be modified as needed by the solver. |
material | Material containing parameters of the body being created. The solver can also set up necessary timestepping parameters of the material (ranges and minimal values of quantities). |
Implements ISolver.
Definition at line 97 of file SimpleSolver.h.
|
inlineoverridevirtual |
Definition at line 46 of file SimpleSolver.h.