4#ifndef lethe_dem_action_manager_h
5#define lethe_dem_action_manager_h
bool check_load_balance() const
Check if the repartitioning (load balancing) needs to be performed.
bool solid_object_search_trigger
Flag of the trigger for the solid object search, mapping the solid with the background triangulation.
void last_dem_of_cfddem_iteration_step()
Set trigger for the contact search to be performed at the last DEM iteration of the CFD iteration.
bool periodic_boundaries_enabled
Flag for periodic boundaries in the simulation.
bool check_resize_containers()
Check if the containers need to be resized.
bool use_default_broad_search_functions()
Check if the default broad search functions should be used. It depends if adaptive sparse contacts is...
bool check_sparse_contacts_enabled()
Check if the sparse contacts is enabled to perform some actions that are not handled by triggers of t...
bool grid_motion_enabled
Flag for motion of grid in the simulation.
bool check_contact_search()
Check if the contact search needs to be performed.
bool check_clear_tangential_displacement()
Check if the tangential displacement history needs to be cleared.
bool check_solid_objects_enabled()
Check if the solid objects are enabled to perform some actions that are not handled by triggers of th...
bool load_balance_trigger
Flag of the trigger for load balancing execution.
bool mobility_status_reset_trigger
Flag of the trigger for the mobility status reset to mobile status.
void first_dem_of_cfddem_iteration_step()
Set trigger that the mobility status need to be reset to mobile at the first DEM time step if the spa...
void set_sparse_contacts_disabled()
Disables the ASC.
bool sparse_contacts_enabled
Flag for the enabling of the sparse contacts.
bool check_grid_motion_enabled()
Check if the solid objects are enabled to perform some actions that are not handled by triggers of th...
bool check_periodic_boundaries_enabled()
Check if the periodic boundaries are enabled to perform some actions that are not handled by triggers...
void particle_insertion_step()
Set trigger for the contact search to be performed in the current time step because of a particle ins...
static DEMActionManager * get_action_manager()
Getter of the unique instance of the DEMActionManager.
DEMActionManager(const DEMActionManager ©)=delete
Copy constructor as a delete function to make sure it can not be copied. It will never be used.
void reset_triggers()
Reset all triggers to false. TODO: modify the handling of the contact search at counter = 1 because o...
void contact_detection_step()
Set trigger for the contact search to be performed in the current time step because of a contact dete...
void load_balance_step()
Set triggers for actions to be performed in the current iteration because it is a load balancing step...
bool check_restart_simulation()
Check if checkpoint needs to be read.
void set_solid_objects_enabled()
Flag that there are solid objects in the simulation. Already trigger a solid object search in the bac...
bool resize_containers_trigger
Flag of the trigger for resize the vector dependant of the local particles.
bool sparse_contacts_cells_update_trigger
Flag of the trigger for the update of the sparse contacts cells.
void set_sparse_contacts_enabled()
Flag that the ASC is enabled and trigger a mobility status reset to initialize the containers.
void set_grid_motion_enabled()
Flag that the grid will motion in the simulation.
void set_periodic_boundaries_enabled()
Flag that there are periodic boundary in the simulation.
static DEMActionManager * instance
Pointer to the unique of the DEMActionManager.
void solid_objects_search_step()
Set triggers for actions to be performed in the current time step because of a solid object search st...
void restart_simulation()
Set triggers for actions to be performed in the current time step because the simulation starts from ...
bool read_checkpoint_trigger
Flag of the trigger for reading the checkpoint.
bool solid_objects_enabled
Flag for solid objects in the simulation.
DEMActionManager & operator=(const DEMActionManager ©)=delete
Copy constructor as a delete function to make sure it can not be assigned. It will never be used.
bool contact_search_trigger
Flag of the trigger for the contact search.
bool clear_tangential_displacement_trigger
Flag of the trigger for clearing the tangential displacement history.
bool check_update_sparse_contacts_cells()
Check if the sparse contacts cells need to be updated.
DEMActionManager()
Constructor of the DEMActionManager.
bool check_mobility_status_reset()
Check if the mobility status need to be reset to mobile.
bool check_solid_object_search()
Check if the solid object has to be searched.