![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <grid_motion.h>
Public Member Functions | |
| GridMotionBase (const Parameters::Lagrangian::GridMotion< spacedim > &grid_motion_parameters, const double dem_time_step) | |
| void | move_grid (Triangulation< dim, spacedim > &triangulation) |
| 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) |
Private Types | |
| using | FuncPtrType |
Private Member Functions | |
| void | move_grid_rotational (Triangulation< dim, spacedim > &triangulation) |
| void | move_grid_translational (Triangulation< dim, spacedim > &triangulation) |
| void | no_motion (Triangulation< dim, spacedim > &) |
| void | move_grid_rotational (Triangulation< 1, 2 > &) |
| void | move_grid_rotational (Triangulation< 2, 2 > &triangulation) |
| void | move_grid_rotational (Triangulation< 2, 3 > &triangulation) |
| void | move_grid_rotational (Triangulation< 3, 3 > &triangulation) |
Private Attributes | |
| FuncPtrType | grid_motion |
| double | rotation_angle |
| unsigned int | rotation_axis |
| Tensor< 1, spacedim > | shift_vector |
Carries out motion of the triangulation, including rotational, translational and rotational-translational motions.
| triangulation | Triangulation |
| dem_parameters | Input DEM parameters in the parameter handler file |
Definition at line 27 of file grid_motion.h.
|
private |
Definition at line 29 of file grid_motion.h.
| GridMotionBase< dim, spacedim >::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, and calculates the rotation angle for rotational and translational-rotational motions.
| grid_motion_parameters | DEM parameters defined using the parameter handler |
| dem_time_step | DEM time step |
Definition at line 12 of file grid_motion.cc.
References DEMActionManager::get_action_manager(), grid_motion, Parameters::Lagrangian::GridMotion< dim >::grid_rotational_axis, Parameters::Lagrangian::GridMotion< dim >::grid_rotational_speed, Parameters::Lagrangian::GridMotion< dim >::grid_translational_velocity, Parameters::Lagrangian::GridMotion< dim >::motion_type, move_grid_rotational(), move_grid_translational(), no_motion(), Parameters::Lagrangian::GridMotion< dim >::none, rotation_angle, rotation_axis, Parameters::Lagrangian::GridMotion< dim >::rotational, and shift_vector.
|
inline |
Calls the desired grid motion.
| triangulation | Triangulation |
Definition at line 52 of file grid_motion.h.
|
private |
Definition at line 55 of file grid_motion.cc.
|
private |
Definition at line 64 of file grid_motion.cc.
References rotation_angle.
|
private |
Definition at line 71 of file grid_motion.cc.
References rotation_angle, and rotation_axis.
|
private |
Definition at line 80 of file grid_motion.cc.
References rotation_angle, and rotation_axis.
|
private |
Carries out rotational motion of the triangulation.
| triangulation | Triangulation |
|
private |
Carries out translational motion of the triangulation.
| triangulation | Triangulation |
Definition at line 89 of file grid_motion.cc.
References shift_vector.
|
inlineprivate |
Dummy function for no motion for grid motion pointer to point to.
Definition at line 100 of file grid_motion.h.
| void GridMotionBase< dim, spacedim >::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.
| particle_wall_pairs_in_contact | The particle-wall contact list container. We will update the positions of the boundary points and normal vectors directly in this container. |
| updated_boundary_points_and_normal_vectors | A map that contains updated points on boundaries and normal vectors of the boundary faces. This container is used when the grid is moving. We use this vector to update the boundary points and normal vectors in particle-wall contact list. |
Definition at line 97 of file grid_motion.cc.
References DEMActionManager::get_action_manager().
|
private |
Definition at line 31 of file grid_motion.h.
|
private |
Definition at line 109 of file grid_motion.h.
|
private |
Definition at line 111 of file grid_motion.h.
|
private |
Definition at line 113 of file grid_motion.h.