SPH
Overview of the code structure

IRun

Setup Storage, ITimeStepping and ISolver. Then:

void IRun::run() {
for (Float t = t_start; t < t_end; t += dt) {
}
}
double Float
Precision used withing the code. Use Float instead of float or double where precision is important.
Definition: Globals.h:13
AutoPtr< ITimeStepping > timeStepping
Timestepping.
Definition: IRun.h:78
Statistics run(Storage &storage)
Runs the simulation.
Definition: IRun.cpp:187
AutoPtr< ISolver > solver
Solver.
Definition: IRun.h:81
void step(IScheduler &scheduler, ISolver &solver, Statistics &stats)

ITimeStepping

Performs the time integration.

ISolver

Computes temporal derivatives of all quantities.