SPH
Classes | Public Member Functions | List of all members
SimpleSolver Class Reference

Minimalistic SPH solver, mainly used for benchmarking and educational purposes. More...

#include <SimpleSolver.h>

Inheritance diagram for SimpleSolver:
ISolver Polymorphic

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 ()
 

Detailed Description

Minimalistic SPH solver, mainly used for benchmarking and educational purposes.

Definition at line 15 of file SimpleSolver.h.

Constructor & Destructor Documentation

◆ SimpleSolver()

SimpleSolver::SimpleSolver ( IScheduler scheduler,
const RunSettings settings 
)
inline

Definition at line 39 of file SimpleSolver.h.

Member Function Documentation

◆ create()

virtual void SimpleSolver::create ( Storage storage,
IMaterial material 
) const
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.

Parameters
storageParticle storage that shall be modified as needed by the solver.
materialMaterial 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.

◆ integrate()

virtual void SimpleSolver::integrate ( Storage storage,
Statistics UNUSEDstats 
)
inlineoverridevirtual

Definition at line 46 of file SimpleSolver.h.


The documentation for this class was generated from the following file: