4#ifndef lethe_ib_particles_dem_h
5#define lethe_ib_particles_dem_h
12#include <deal.II/base/tensor.h>
56 std::vector<Tensor<1, 3>>
88 const std::shared_ptr<Parameters::Lagrangian::BCDEM>
90 const MPI_Comm &mpi_communicator_input,
133 std::vector<Tensor<1, 3>> &contact_force,
134 std::vector<Tensor<1, 3>> &contact_torque);
152 std::vector<Tensor<1, 3>> &contact_force,
153 std::vector<Tensor<1, 3>> &contact_torque);
180 Point<3> &contact_point,
181 Tensor<1, 3> &contact_normal,
182 Tensor<1, 3> &normal_force,
183 Tensor<1, 3> &tangential_force,
184 Tensor<1, 3> &rolling_resistance_torque,
185 Point<dim> &particle_one_position,
186 Tensor<1, 3> &particle_one_velocity,
187 Tensor<1, 3> &particle_one_omega,
189 Point<dim> &particle_two_position,
190 Tensor<1, 3> &particle_two_velocity,
191 Tensor<1, 3> &particle_two_omega,
213 std::vector<Tensor<1, 3>> &lubrication_force,
214 std::vector<Tensor<1, 3>> &lubrication_torque);
232 std::vector<Tensor<1, 3>> &lubrication_force,
233 std::vector<Tensor<1, 3>> &lubrication_torque);
252 const DoFHandler<dim> &dof_handler,
253 const Quadrature<dim - 1> &face_quadrature_formula,
254 const Mapping<dim> &mapping);
263 const std::map<unsigned int, std::map<unsigned int, ContactInfo>> &
299 const Point<dim> &point_on_boundary,
300 Tensor<1, 3> &wall_velocity,
301 Tensor<1, 3> &wall_angular_velocity,
302 Point<dim> &wall_rotation_axis_point)
const;
307 template <
class Archive>
311 for (
int i = 0; i < dim; ++i)
339 std::shared_ptr<Parameters::Lagrangian::FloatingWalls<dim>>
348 std::map<unsigned int, std::map<unsigned int, Point<dim>>>
350 std::map<unsigned int, std::map<unsigned int, Point<dim>>>
355 std::map<unsigned int, std::map<types::boundary_id, ContactInfo>>
Handles all the parameters declared in the parameter handler file.
Define the behavior of a specific particle for the sharp interface IB solver.
A solver class for the DEM used in conjunction with IB particles and fluid_dynamics_sharp....
bool is_boundary_excluded(const types::boundary_id boundary_id) const
Check whether a boundary should be ignored for Sharp-IB particle wall interactions.
void calculate_pw_contact_force(const double dt_dem, std::vector< Tensor< 1, 3 > > &contact_force, std::vector< Tensor< 1, 3 > > &contact_torque)
Calculates non-linear (Hertzian) particle-wall contact force.
std::map< unsigned int, std::map< unsigned int, Point< dim > > > previous_wall_contact_point
void calculate_pw_lubrication_force(const double dt_dem, const double h_max, const double h_min, const double mu, std::vector< Tensor< 1, 3 > > &lubrication_force, std::vector< Tensor< 1, 3 > > &lubrication_torque)
Calculates particle-wall lubrication force.
void calculate_force_model(const double normal_overlap, ContactInfo &contact_info, Point< 3 > &contact_point, Tensor< 1, 3 > &contact_normal, Tensor< 1, 3 > &normal_force, Tensor< 1, 3 > &tangential_force, Tensor< 1, 3 > &rolling_resistance_torque, Point< dim > &particle_one_position, Tensor< 1, 3 > &particle_one_velocity, Tensor< 1, 3 > &particle_one_omega, const ObjectProperties particle_one_properties, Point< dim > &particle_two_position, Tensor< 1, 3 > &particle_two_velocity, Tensor< 1, 3 > &particle_two_omega, const ObjectProperties particle_two_properties, const double dt)
Calculates non-linear (Hertzian) force between two objects. Take into input the physical properties a...
std::map< unsigned int, std::map< unsigned int, Point< dim > > > previous_particle_particle_contact_point
void calculate_pp_lubrication_force(const double dt_dem, const double h_max, const double h_min, const double mu, std::vector< Tensor< 1, 3 > > &lubrication_force, std::vector< Tensor< 1, 3 > > &lubrication_torque)
Calculates particle-particle lubrication force. The force is based on the formula from Microhydrodyna...
std::map< unsigned int, std::map< unsigned int, ContactInfo > > pp_contact_map
std::shared_ptr< Parameters::Lagrangian::BCDEM > boundary_conditions_parameters
std::vector< std::map< types::boundary_id, BoundaryCellsInfo > > boundary_cells
std::shared_ptr< Parameters::Lagrangian::FloatingWalls< dim > > floating_walls_parameters
const std::map< unsigned int, std::map< unsigned int, ContactInfo > > & get_particle_particle_contact_map() const
Return the particle-particle contact map built for the IB DEM coupling.
std::vector< IBParticle< dim > > dem_particles
lowest_floating_wall_indices
void update_contact_candidates()
Updates the contact candidates of all the particles.
void update_particles_boundary_contact(std::vector< IBParticle< dim > > &particles, const DoFHandler< dim > &dof_handler, const Quadrature< dim - 1 > &face_quadrature_formula, const Mapping< dim > &mapping)
Update the boundary cells that are contact candidates for each particle.
void calculate_pp_contact_force(const double dt_dem, std::vector< Tensor< 1, 3 > > &contact_force, std::vector< Tensor< 1, 3 > > &contact_torque)
Calculates non-linear (Hertzian) particle-particle contact force.
std::map< unsigned int, std::map< types::boundary_id, ContactInfo > > pw_contact_map
void initialize(const std::shared_ptr< Parameters::IBParticles< dim > > &p_nsparam, const std::shared_ptr< Parameters::Lagrangian::FloatingWalls< dim > > &floating_walls_parameters, const std::shared_ptr< Parameters::Lagrangian::BCDEM > &boundary_conditions_parameters, const MPI_Comm &mpi_communicator_input, const std::vector< IBParticle< dim > > &particles)
Initialize the IBParticlesDEM object with the parameters, the mpi communicator and the particles.
DEMSolverParameters< dim > dem_parameters
void get_wall_motion(const types::boundary_id boundary_id, const Point< dim > &point_on_boundary, Tensor< 1, 3 > &wall_velocity, Tensor< 1, 3 > &wall_angular_velocity, Point< dim > &wall_rotation_axis_point) const
Get the DEM wall motion prescribed on a boundary.
std::vector< std::set< unsigned int > > particles_contact_candidates
std::shared_ptr< Parameters::IBParticles< dim > > parameters
void update_particles(const std::vector< IBParticle< dim > > &particles, double time)
Updates the boundary cells that are contact candidates for each of the particles.
void integrate_particles_motion(const double dt, const double h_max, const double h_min, const double rho, const double mu)
Integrates the dynamics of the IB_particle taking into account the contact between particles and betw...
MPI_Comm mpi_communicator
Parameters for floating walls in DEM simulations.
types::boundary_id boundary_index
Point< dim > point_on_boundary
void serialize(Archive &ar, const unsigned int)
Tensor< 1, dim > normal_vector
Struct that contains history of the contact between two objects. This is the commonly used constructo...
double normal_relative_velocity
Tensor< 1, 3 > normal_vector
std::vector< Tensor< 1, 3 > > tangential_relative_velocity
Tensor< 1, 3 > rolling_resistance_spring_torque
Tensor< 1, 3 > tangential_displacement
Struct is used to reduce the number of parameters passed in the function calculate_force_model.
double object_rolling_friction_coefficient
double object_restitution_coefficient
double object_poisson_ratio
double object_youngs_modulus
double object_friction_coefficient
Boundary conditions for DEM simulations.