23 Assert(this->time_interval > 0,
24 ExcMessage(
"The time interval must be strictly positive"));
30 this->coupling_frequency > 0,
32 "The coupling frequency must be positive. A value of zero or a negative value was encountered. The simulation will stop."));
36 time_step = this->time_interval / this->coupling_frequency;
42 Assert(this->rayleigh_characteristic_time > 0,
44 "The Rayleigh characteristic time must be strictly positive"));
46 this->fraction_of_rayleigh_characteristic_time > 0,
48 "The fraction of the Rayleigh characteristic time must be strictly positive"));
52 time_step = this->fraction_of_rayleigh_characteristic_time *
53 this->rayleigh_characteristic_time;
58 static_cast<unsigned int>(std::ceil(this->time_interval /
time_step));
68 "The total number of iterations for the DEM sub simulation control is below 0."
69 " Something went wrong with either the fraction of the Rayleigh characteristic time or the Rayleigh characteristic time provided."));
double time_step
Time step value of the sub time stepping.
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.
DEMSubIterationLogic
Type of iteration method for DEM sub simulation control.
@ fixed_number_of_iterations
Fixed number of DEM iterations per CFD 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 iterate()
Advance the DEM sub simulation by one iteration.
Controls smaller simulation blocks within simulations.