Functions and classes for managing simulation time advance loops. More...
Classes | |
| class | DiagnosticsFunction |
| Abstract class for diagnostics function. More... | |
| class | SafeTimeTermination |
| Terminates the simulation after a certain time is reached. More... | |
| class | TerminationCondition |
| Abstract type for termination condition. More... | |
| class | WriteTime |
| Writes the time to a file after each time advance cycle. More... | |
Functions | |
| void | main_loop (hdsim1D &sim, TerminationCondition &term_cond, int time_order, DiagnosticsFunction *diag=0) |
| Main simulation time advance loop. More... | |
| void | main_loop (hdsim1D &sim, double final_time, int max_iter=1e6, int time_order=1, string const &time_log="") |
| Main simulation time advance loop. More... | |
Functions and classes for managing simulation time advance loops.
| void simulation1d::main_loop | ( | hdsim1D & | sim, |
| TerminationCondition & | term_cond, | ||
| int | time_order, | ||
| DiagnosticsFunction * | diag = 0 |
||
| ) |
Main simulation time advance loop.
| sim | Hydrodynamic simulation |
| term_cond | Termination condition |
| time_order | Time integration order |
| diag | Diagnostic function |
Definition at line 32 of file main_loop_1d.cpp.

| void simulation1d::main_loop | ( | hdsim1D & | sim, |
| double | final_time, | ||
| int | max_iter = 1e6, |
||
| int | time_order = 1, |
||
| string const & | time_log = "" |
||
| ) |
Main simulation time advance loop.
| sim | Hydrodynamic simulation |
| final_time | Final simulation time |
| max_iter | Maximum number of time advance cycles |
| time_order | Time integration order |
| time_log | Name of output file |
Definition at line 50 of file main_loop_1d.cpp.

1.8.13