7#include <deal.II/grid/grid_tools.h>
11template <
int dim,
int spacedim>
14 const double dem_time_step)
28 action_manager->set_grid_motion_enabled();
37 spacedim>::MotionType::translational:
41 action_manager->set_grid_motion_enabled();
49 AssertThrow(
false, ExcNotImplemented());
57 throw ExcImpossibleInDim(1);
73 Tensor<1, 3> axis({0, 0, 0});
82 Tensor<1, 3> axis({0, 0, 0});
87template <
int dim,
int spacedim>
90 Triangulation<dim, spacedim> &triangulation)
95template <
int dim,
int spacedim>
100 &particle_wall_pairs_in_contact,
102 spacedim>::boundary_points_and_normal_vectors
103 &updated_boundary_points_and_normal_vectors)
109 for (
auto &[particle_id, pairs_in_contact_content] :
110 particle_wall_pairs_in_contact)
114 for (
auto pairs_in_contact_iterator = pairs_in_contact_content.begin();
115 pairs_in_contact_iterator != pairs_in_contact_content.end();)
117 auto global_face_id = pairs_in_contact_iterator->first;
118 auto &contact_information = pairs_in_contact_iterator->second;
122 if (global_face_id >= 0)
124 contact_information.normal_vector =
125 updated_boundary_points_and_normal_vectors.at(global_face_id)
127 contact_information.point_on_boundary =
128 updated_boundary_points_and_normal_vectors.at(global_face_id)
130 ++pairs_in_contact_iterator;
134 pairs_in_contact_content.erase(pairs_in_contact_iterator++);
static DEMActionManager * get_action_manager()
Getter of the unique instance of the DEMActionManager.
Carries out motion of the triangulation, including rotational, translational and rotational-translati...
void update_boundary_points_and_normal_vectors_in_contact_list(typename DEM::dem_data_structures< spacedim >::particle_wall_in_contact &particle_wall_pairs_in_contact, const typename DEM::dem_data_structures< spacedim >::boundary_points_and_normal_vectors &updated_boundary_points_and_normal_vectors)
Carries out updating the boundary points and normal vectors in the particle-wall contact list.
GridMotionBase(const Parameters::Lagrangian::GridMotion< spacedim > &grid_motion_parameters, const double dem_time_step)
The constructor sets up the grid motion function defined in the parameter handler,...
void no_motion(Triangulation< dim, spacedim > &)
Dummy function for no motion for grid motion pointer to point to.
void move_grid_rotational(Triangulation< dim, spacedim > &triangulation)
Carries out rotational motion of the triangulation.
unsigned int rotation_axis
Tensor< 1, spacedim > shift_vector
void move_grid_translational(Triangulation< dim, spacedim > &triangulation)
Carries out translational motion of the triangulation.
Parameters for grid (mesh) motion in DEM simulations.
double grid_rotational_speed
Rotational speed of the rotating grid (rad/s).
unsigned int grid_rotational_axis
Rotational axis of the rotating grid (0=x, 1=y, 2=z).
enum Parameters::Lagrangian::GridMotion::MotionType motion_type
Type of grid motion.
Tensor< 1, dim > grid_translational_velocity
Translational velocity of the moving grid.
DEM data structure containers To improve readability of containers, there's a simple description abov...
ankerl::unordered_dense::map< types::particle_index, ankerl::unordered_dense::map< global_face_id, particle_wall_contact_info< dim > > > particle_wall_in_contact