4#ifndef lethe_sub_simulation_control_h
5#define lethe_sub_simulation_control_h
7#include <deal.II/base/exceptions.h>
double time_step
Time step value of the sub time stepping.
unsigned int get_iteration() const
Get the current DEM sub iteration number.
double get_time_step() const
Get the DEM sub simulation time step.
unsigned int iteration_number
Current value of the sub iteration number. This is initialized to zero.
const DEMSubIterationLogic iteration_logic
Logic used for the DEM iterations.
const double rayleigh_characteristic_time
Rayleigh characteristic time for the particles.
SubSimulationControlDEM(const DEMSubIterationLogic iteration_logic, const double time_interval, const unsigned int coupling_frequency, const double rayleigh_characteristic_time, const double fraction_of_rayleigh_characteristic_time)
Construct a SubSimulationControlDEM object.
bool is_first_iteration() const
Check if this is the first DEM sub iteration.
DEMSubIterationLogic
Type of iteration method for DEM sub simulation control.
@ fixed_number_of_iterations
Fixed number of DEM iterations per CFD time step.
@ fixed_fraction_of_rayleigh_time_step
DEM time step is fixed at a constant fraction of the Rayleigh time step.
const double time_interval
Time interval over which the time integration is to be carried out.
const double fraction_of_rayleigh_characteristic_time
const unsigned int coupling_frequency
unsigned int total_number_of_iterations
bool is_last_iteration() const
Check if this is the last DEM sub iteration.
bool iterate()
Advance the DEM sub simulation by one iteration.