4#ifndef lethe_particle_wall_contact_force_h
5#define lethe_particle_wall_contact_force_h
18#include <deal.II/base/function.h>
20#include <boost/math/special_functions.hpp>
39template <
int dim,
typename PropertiesIndex>
55 &particle_wall_pairs_in_contact,
72 dim>::particle_floating_mesh_potentially_in_contact
73 &particle_floating_mesh_potentially_in_contact,
110 typename PropertiesIndex,
133 &particle_wall_pairs_in_contact,
150 dim>::particle_floating_mesh_potentially_in_contact
151 &particle_floating_mesh_potentially_in_contact,
170 Tensor<1, 3> &tangential_relative_velocity,
171 double &normal_relative_velocity_value,
172 const Point<3> &particle_location,
173 const ArrayView<const double> &particle_properties,
180 const unsigned int boundary_id = contact_info.
boundary_id;
182 Tensor<1, 3> particle_velocity{{particle_properties[PropertiesIndex::v_x],
183 particle_properties[PropertiesIndex::v_y],
184 particle_properties[PropertiesIndex::v_z]}};
186 Tensor<1, 3> particle_angular_velocity{
187 {particle_properties[PropertiesIndex::omega_x],
188 particle_properties[PropertiesIndex::omega_y],
189 particle_properties[PropertiesIndex::omega_z]}};
192 Point<3> contact_point =
194 0.5 * particle_properties[PropertiesIndex::dp] * normal_vector;
201 const auto translational_velocity_it =
203 const Tensor<1, 3> boundary_translational_velocity =
204 (translational_velocity_it !=
206 translational_velocity_it->second :
209 const auto rotational_speed_it =
211 const double boundary_rotational_speed =
213 rotational_speed_it->second :
216 const auto rotational_vector_it =
218 const Tensor<1, 3> boundary_rotation =
220 rotational_vector_it->second :
223 const auto rotation_point_it =
225 const Point<3> point_on_axis_of_rotation =
227 rotation_point_it->second :
232 Tensor<1, 3> vector_to_rotating_axis =
233 contact_point - point_on_axis_of_rotation;
236 vector_to_rotating_axis =
237 vector_to_rotating_axis -
238 (vector_to_rotating_axis * boundary_rotation) * boundary_rotation;
242 Tensor<1, 3> contact_relative_velocity =
243 boundary_translational_velocity - particle_velocity +
244 cross_product_3d((-0.5 * particle_properties[PropertiesIndex::dp] *
245 particle_angular_velocity),
247 cross_product_3d(boundary_rotational_speed * boundary_rotation,
248 vector_to_rotating_axis);
251 normal_relative_velocity_value = contact_relative_velocity * normal_vector;
254 tangential_relative_velocity =
255 contact_relative_velocity -
256 (normal_relative_velocity_value * normal_vector);
287 Tensor<1, 3> &tangential_relative_velocity,
288 double &normal_relative_velocity_value,
289 const ArrayView<const double> &particle_properties,
291 const Tensor<1, 3> &cut_cell_translational_velocity,
292 const Tensor<1, 3> &cut_cell_rotational_velocity,
293 const double center_of_rotation_particle_distance)
298 const Tensor<1, 3> normal_vector = -contact_info.
normal_vector;
302 Tensor<1, 3> particle_velocity{{particle_properties[PropertiesIndex::v_x],
303 particle_properties[PropertiesIndex::v_y],
304 particle_properties[PropertiesIndex::v_z]}};
306 Tensor<1, 3> particle_angular_velocity{
307 {particle_properties[PropertiesIndex::omega_x],
308 particle_properties[PropertiesIndex::omega_y],
309 particle_properties[PropertiesIndex::omega_z]}};
313 Tensor<1, 3> contact_relative_velocity =
314 cut_cell_translational_velocity - particle_velocity +
315 cross_product_3d((center_of_rotation_particle_distance *
316 cut_cell_rotational_velocity -
317 0.5 * particle_properties[PropertiesIndex::dp] *
318 particle_angular_velocity),
322 normal_relative_velocity_value = contact_relative_velocity * normal_vector;
325 tangential_relative_velocity =
326 contact_relative_velocity -
327 normal_relative_velocity_value * normal_vector;
342 static inline Tensor<1, 3>
345 Tensor<1, 3> vector_c;
346 vector_c = ((vector_a * vector_b) / (vector_b.norm_square())) * vector_b;
360 if constexpr (dim == 3)
361 return particle->get_location();
363 if constexpr (dim == 2)
386 const Tensor<1, 3> &tangential_relative_velocity,
387 const double normal_relative_velocity_value,
388 const double normal_overlap,
390 const ArrayView<const double> &particle_properties,
391 Tensor<1, 3> &normal_force,
392 Tensor<1, 3> &tangential_force,
393 Tensor<1, 3> &tangential_torque,
394 Tensor<1, 3> &rolling_resistance_torque)
401 tangential_relative_velocity,
402 normal_relative_velocity_value,
409 rolling_resistance_torque);
415 tangential_relative_velocity,
416 normal_relative_velocity_value,
423 rolling_resistance_torque);
429 tangential_relative_velocity,
430 normal_relative_velocity_value,
437 rolling_resistance_torque);
443 tangential_relative_velocity,
444 normal_relative_velocity_value,
451 rolling_resistance_torque);
476 if constexpr (contact_model ==
484 const double max_effective_hamaker_constant =
486 const double min_effective_surface_energy =
492 max_effective_hamaker_constant /
513 const Tensor<1, 3> &tangential_force,
514 const Tensor<1, 3> &tangential_torque,
515 const Tensor<1, 3> &rolling_resistance_torque,
516 Tensor<1, 3> &particle_torque,
517 Tensor<1, 3> &particle_force)
520 Tensor<1, 3> total_force = normal_force + tangential_force;
524 particle_force -= total_force;
527 particle_torque += tangential_torque + rolling_resistance_torque;
551 [[maybe_unused]]
const double particle_radius,
552 [[maybe_unused]]
const ArrayView<const double> &particle_properties,
553 [[maybe_unused]]
const double rolling_friction_coeff,
554 [[maybe_unused]]
const double rolling_viscous_damping_coeff,
555 [[maybe_unused]]
const double dt,
556 [[maybe_unused]]
const double normal_spring_constant,
557 [[maybe_unused]]
const double normal_force_norm,
558 [[maybe_unused]]
const Tensor<1, 3> &normal_unit_vector,
559 [[maybe_unused]] Tensor<1, 3> &cumulative_rolling_resistance_spring_torque)
563 if constexpr (rolling_friction_model ==
none)
568 if constexpr (rolling_friction_model ==
constant)
572 rolling_friction_coeff,
576 if constexpr (rolling_friction_model ==
viscous)
580 rolling_friction_coeff,
584 if constexpr (rolling_friction_model ==
epsd)
589 rolling_friction_coeff,
590 rolling_viscous_damping_coeff,
594 normal_spring_constant,
596 cumulative_rolling_resistance_spring_torque);
618 const Tensor<1, 3> &tangential_relative_velocity,
619 const double normal_relative_velocity_value,
620 const double normal_overlap,
622 const ArrayView<const double> &particle_properties,
623 Tensor<1, 3> &normal_force,
624 Tensor<1, 3> &tangential_force,
625 Tensor<1, 3> &tangential_torque,
626 Tensor<1, 3> &rolling_resistance_torque)
631 const Tensor<1, 3> normal_vector = -contact_info.
normal_vector;
632 const unsigned int particle_type =
633 static_cast<unsigned int>(particle_properties[PropertiesIndex::type]);
634 const double particle_radius =
635 particle_properties[PropertiesIndex::dp] * 0.5;
639 const double friction_coeff =
641 const double rolling_viscous_damping_coeff =
643 const double rolling_friction_coeff =
648 const double rp_sqrt = sqrt(particle_radius);
650 const double normal_spring_constant =
651 1.0667 * rp_sqrt * youngs_modulus *
652 pow((0.9375 * particle_properties[PropertiesIndex::mass] * 1.0 *
654 (rp_sqrt * youngs_modulus)),
659 const double normal_damping_constant =
661 sqrt(particle_properties[PropertiesIndex::mass] * normal_spring_constant);
667 const double tangential_spring_constant = -normal_spring_constant * 0.4;
669 const double tangential_damping_constant =
670 normal_damping_constant * 0.6324555320336759;
673 normal_force = (normal_spring_constant * normal_overlap +
674 normal_damping_constant * normal_relative_velocity_value) *
680 tangential_damping_constant * tangential_relative_velocity);
682 const double coulomb_threshold = friction_coeff * normal_force.norm();
684 if (tangential_force.norm() > coulomb_threshold)
689 coulomb_threshold * (tangential_force / tangential_force.norm());
692 tangential_force / (tangential_spring_constant + DBL_MIN);
699 cross_product_3d((particle_radius * normal_vector), -tangential_force);
704 rolling_friction_coeff,
705 rolling_viscous_damping_coeff,
707 normal_spring_constant,
732 const Tensor<1, 3> &tangential_relative_velocity,
733 const double normal_relative_velocity_value,
734 const double normal_overlap,
736 const ArrayView<const double> &particle_properties,
737 Tensor<1, 3> &normal_force,
738 Tensor<1, 3> &tangential_force,
739 Tensor<1, 3> &tangential_torque,
740 Tensor<1, 3> &rolling_resistance_torque)
745 const Tensor<1, 3> normal_vector = -contact_info.
normal_vector;
746 const double particle_radius =
747 particle_properties[PropertiesIndex::dp] * 0.5;
748 const unsigned int particle_type =
749 static_cast<unsigned int>(particle_properties[PropertiesIndex::type]);
754 const double friction_coeff =
756 const double rolling_viscous_damping_coeff =
758 const double rolling_friction_coeff =
764 const double radius_times_overlap_sqrt =
765 sqrt(particle_radius * normal_overlap);
766 const double model_parameter_sn =
767 2.0 * youngs_modulus * radius_times_overlap_sqrt;
768 const double model_parameter_st =
769 8.0 * shear_modulus * radius_times_overlap_sqrt;
773 const double normal_spring_constant =
774 1.3333 * youngs_modulus * radius_times_overlap_sqrt;
778 const double normal_damping_constant =
780 sqrt(model_parameter_sn * particle_properties[PropertiesIndex::mass]);
784 const double tangential_spring_constant =
785 -8.0 * shear_modulus * radius_times_overlap_sqrt + DBL_MIN;
787 const double tangential_damping_constant =
788 normal_damping_constant * sqrt(model_parameter_st / model_parameter_sn);
791 normal_force = (normal_spring_constant * normal_overlap +
792 normal_damping_constant * normal_relative_velocity_value) *
797 const Tensor<1, 3> damping_tangential_force =
798 tangential_damping_constant * tangential_relative_velocity;
801 damping_tangential_force;
803 const double coulomb_threshold = friction_coeff * normal_force.norm();
806 const double tangential_force_norm = tangential_force.norm();
807 if (tangential_force_norm > coulomb_threshold)
813 (tangential_force / (tangential_force_norm + DBL_MIN)) -
814 damping_tangential_force) /
815 (tangential_spring_constant + DBL_MIN);
819 damping_tangential_force;
826 cross_product_3d((particle_radius * normal_vector), -tangential_force);
832 rolling_friction_coeff,
833 rolling_viscous_damping_coeff,
835 normal_spring_constant,
859 const Tensor<1, 3> &tangential_relative_velocity,
860 const double normal_relative_velocity_value,
861 const double normal_overlap,
863 const ArrayView<const double> &particle_properties,
864 Tensor<1, 3> &normal_force,
865 Tensor<1, 3> &tangential_force,
866 Tensor<1, 3> &tangential_torque,
867 Tensor<1, 3> &rolling_resistance_torque)
872 const Tensor<1, 3> normal_vector = -contact_info.
normal_vector;
873 const double particle_radius =
874 0.5 * particle_properties[PropertiesIndex::dp];
875 const unsigned int particle_type =
876 static_cast<unsigned int>(particle_properties[PropertiesIndex::type]);
881 const double friction_coeff =
883 const double rolling_viscous_damping_coeff =
885 const double rolling_friction_coeff =
892 const double radius_times_overlap_sqrt =
893 sqrt(particle_radius * normal_overlap);
894 const double model_parameter_sn =
895 2.0 * youngs_modulus * radius_times_overlap_sqrt;
896 const double model_parameter_st =
897 8.0 * shear_modulus * radius_times_overlap_sqrt;
902 Utilities::fixed_power<2>(particle_radius * normal_overlap);
903 const double c1 = -2. * Utilities::fixed_power<2>(particle_radius) * M_PI *
904 surface_energy / youngs_modulus;
905 const double c2 = -2. * normal_overlap * particle_radius;
906 const double P = -Utilities::fixed_power<2>(c2) / 12. - c0;
907 const double Q = -Utilities::fixed_power<3>(c2) / 108. + c0 * c2 / 3. -
908 Utilities::fixed_power<2>(c1) * 0.125;
909 const double root1 = std::max(0.,
910 (0.25 * Utilities::fixed_power<2>(Q)) +
911 (Utilities::fixed_power<3>(P) / 27.));
912 const double U = std::cbrt(-0.5 * Q + std::sqrt(root1));
913 const double s = -c2 * (5. / 6.) + U - P / (3. * U);
914 const double w = std::sqrt(std::max(1e-16, c2 + 2. * s));
915 const double lambda = 0.5 * c1 / w;
916 const double root2 = std::max(1e-16, w * w - 4. * (c2 + s + lambda));
917 const double a = 0.5 * (w + std::sqrt(root2));
923 const double normal_damping_constant =
925 sqrt(model_parameter_sn * particle_properties[PropertiesIndex::mass]);
930 const double tangential_spring_constant =
931 -8.0 * shear_modulus * radius_times_overlap_sqrt;
935 const double tangential_damping_constant =
936 normal_damping_constant *
937 sqrt(model_parameter_st / (model_parameter_sn + DBL_MIN));
940 const double normal_force_norm =
941 4. * youngs_modulus * Utilities::fixed_power<3>(a) /
942 (3. * particle_radius) -
943 std::sqrt(8. * M_PI * surface_energy * youngs_modulus *
944 Utilities::fixed_power<3>(a)) +
945 normal_damping_constant * normal_relative_velocity_value;
949 normal_force = normal_force_norm * normal_vector;
952 Tensor<1, 3> damping_tangential_force =
953 tangential_damping_constant * tangential_relative_velocity;
956 damping_tangential_force;
960 const double modified_coulomb_threshold =
961 (normal_force_norm + 3. * M_PI * surface_energy * particle_radius) *
965 const double tangential_force_norm = tangential_force.norm();
966 if (tangential_force_norm > modified_coulomb_threshold)
971 (modified_coulomb_threshold *
972 (tangential_force / (tangential_force_norm + DBL_MIN)) -
973 damping_tangential_force) /
974 (tangential_spring_constant + DBL_MIN);
978 damping_tangential_force;
985 cross_product_3d((particle_radius * normal_vector), -tangential_force);
989 const double normal_spring_constant = 0.66665 * model_parameter_sn;
995 rolling_friction_coeff,
996 rolling_viscous_damping_coeff,
998 normal_spring_constant,
1023 const Tensor<1, 3> &tangential_relative_velocity,
1024 const double normal_relative_velocity_value,
1025 const double normal_overlap,
1027 const ArrayView<const double> &particle_properties,
1028 Tensor<1, 3> &normal_force,
1029 Tensor<1, 3> &tangential_force,
1030 Tensor<1, 3> &tangential_torque,
1031 Tensor<1, 3> &rolling_resistance_torque)
1033 constexpr double M_2PI = 2. * M_PI;
1038 const Tensor<1, 3> normal_vector = -contact_info.
normal_vector;
1039 const double particle_radius =
1040 0.5 * particle_properties[PropertiesIndex::dp];
1041 const unsigned int particle_type =
1042 static_cast<unsigned int>(particle_properties[PropertiesIndex::type]);
1045 const double hamaker_constant =
1048 const double F_po = M_2PI * particle_radius * surface_energy;
1050 const double delta_0 =
1051 -std::sqrt(hamaker_constant * particle_radius / (6. * F_po));
1054 double cohesive_term;
1057 if (normal_overlap > 0.)
1059 cohesive_term = -F_po;
1062 tangential_relative_velocity,
1063 normal_relative_velocity_value,
1066 particle_properties,
1070 rolling_resistance_torque);
1073 else if (normal_overlap > delta_0)
1075 cohesive_term = -F_po;
1082 cohesive_term = -hamaker_constant * particle_radius /
1083 (6. * Utilities::fixed_power<2>(normal_overlap));
1087 normal_force += cohesive_term * normal_vector;
1107 const double normal_overlap,
1109 const ArrayView<const double> &particle_properties,
1110 Tensor<1, 3> &normal_displacement)
1112 if (normal_overlap > 0.)
1118 const Tensor<1, 3> normal_vector = -contact_info.
normal_vector;
1122 normal_displacement =
1123 (1.02 * normal_overlap +
1124 0.01 * particle_properties[PropertiesIndex::dp]) *
1128 normal_displacement.clear();
1162 const auto thermal_type_it =
1168 thermal_type_it->second :
1185 const Point<3> &point)
const
1226 std::map<types::boundary_id, Tensor<1, 3>>
1230 std::map<types::boundary_id, Parameters::Lagrangian::WallThermalBoundaryType>
1232 std::map<types::boundary_id, std::shared_ptr<Function<3>>>
1266 std::vector<particle_triangle_contact_candidate>;
1274 ankerl::unordered_dense::map<types::particle_index,
Handles all the parameters declared in the parameter handler file.
Class where the outcomes of particle-particle interactions are stored.
Base class for the particle-wall contact force models This class does not implement any of the models...
unsigned int get_number_of_contacts() const
Return the number of contacts that occurred in the present pseudo-time step when using the packed ins...
virtual void calculate_particle_wall_contact(typename DEM::dem_data_structures< dim >::particle_wall_in_contact &particle_wall_pairs_in_contact, const double dt, ParticleInteractionOutcomes< PropertiesIndex > &contact_outcome)=0
Calculate the contact outcomes for particle-wall contacts using the contact pair information and phys...
virtual void calculate_particle_solid_object_contact(typename DEM::dem_data_structures< dim >::particle_floating_mesh_potentially_in_contact &particle_floating_mesh_potentially_in_contact, const double dt, const std::vector< std::shared_ptr< SerialSolid< dim - 1, dim > > > &solids, ParticleInteractionOutcomes< PropertiesIndex > &contact_outcome)=0
Calculate the contact outcomes for particle-solid objects contacts using the contact pair information...
void reset_number_of_contacts()
Reset the counter of number of contacts for the next pseudo-time step.
double gas_thermal_conductivity
std::vector< double > effective_coefficient_of_rolling_viscous_damping
std::map< types::boundary_id, Point< 3 > > point_on_rotation_vector
void calculate_linear_contact(particle_wall_contact_info< dim > &contact_info, const Tensor< 1, 3 > &tangential_relative_velocity, const double normal_relative_velocity_value, const double normal_overlap, const double dt, const ArrayView< const double > &particle_properties, Tensor< 1, 3 > &normal_force, Tensor< 1, 3 > &tangential_force, Tensor< 1, 3 > &tangential_torque, Tensor< 1, 3 > &rolling_resistance_torque)
Calculate the particle-wall linear contact force and torque based on the updated values in contact_in...
std::vector< double > equivalent_surface_slope
std::map< types::boundary_id, Parameters::Lagrangian::WallThermalBoundaryType > boundary_thermal_type_map
std::vector< particle_triangle_contact_record > solid_contact_records
Every solid-object is associated with a contact record. This container is index for each solid object...
std::vector< double > gas_parameter_m
void set_effective_properties(const DEMSolverParameters< dim > &dem_parameters)
Set every container needed to carry the particle-wall force calculation.
static Tensor< 1, 3 > find_projection(const Tensor< 1, 3 > &vector_a, const Tensor< 1, 3 > &vector_b)
This function is used to find the projection of vector_a on vector_b.
void calculate_shift_displacement(const double normal_overlap, const particle_wall_contact_info< dim > &contact_info, const ArrayView< const double > &particle_properties, Tensor< 1, 3 > &normal_displacement)
Calculate the displacement that separates a particle from a wall it overlaps. This "contact force" mo...
const double dmt_cut_off_threshold
void update_contact_information(particle_wall_contact_info< dim > &contact_info, Tensor< 1, 3 > &tangential_relative_velocity, double &normal_relative_velocity_value, const Point< 3 > &particle_location, const ArrayView< const double > &particle_properties, const double dt)
Update the contact pair information for contact calculations.
void calculate_JKR_contact(particle_wall_contact_info< dim > &contact_info, const Tensor< 1, 3 > &tangential_relative_velocity, const double normal_relative_velocity_value, const double normal_overlap, const double dt, const ArrayView< const double > &particle_properties, Tensor< 1, 3 > &normal_force, Tensor< 1, 3 > &tangential_force, Tensor< 1, 3 > &tangential_torque, Tensor< 1, 3 > &rolling_resistance_torque)
Calculate the particle-wall JKR contact force and torque based on the updated values in contact_info.
std::vector< double > effective_surface_energy
std::map< types::boundary_id, std::shared_ptr< Function< 3 > > > boundary_temperature_function
void update_particle_solid_object_contact_information(particle_wall_contact_info< dim > &contact_info, Tensor< 1, 3 > &tangential_relative_velocity, double &normal_relative_velocity_value, const ArrayView< const double > &particle_properties, const double dt, const Tensor< 1, 3 > &cut_cell_translational_velocity, const Tensor< 1, 3 > &cut_cell_rotational_velocity, const double center_of_rotation_particle_distance)
Update the contact pair information for particle-solid object contacts.
void calculate_contact(particle_wall_contact_info< dim > &contact_info, const Tensor< 1, 3 > &tangential_relative_velocity, const double normal_relative_velocity_value, const double normal_overlap, const double dt, const ArrayView< const double > &particle_properties, Tensor< 1, 3 > &normal_force, Tensor< 1, 3 > &tangential_force, Tensor< 1, 3 > &tangential_torque, Tensor< 1, 3 > &rolling_resistance_torque)
Calculate the particle-wall contact force and torque according to the contact model.
void apply_force_and_torque(const Tensor< 1, 3 > &normal_force, const Tensor< 1, 3 > &tangential_force, const Tensor< 1, 3 > &tangential_torque, const Tensor< 1, 3 > &rolling_resistance_torque, Tensor< 1, 3 > &particle_torque, Tensor< 1, 3 > &particle_force)
Apply the calculated force and torque on the particle in contact.
double get_boundary_temperature(const types::boundary_id boundary_id, const Point< 3 > &point) const
Return the temperature at a given point of a wall of the background triangulation....
ankerl::unordered_dense::map< types::particle_index, particle_triangle_contact_description > particle_triangle_contact_record
Contact record for one solid object, mapping the local index of every particle with at least one cont...
std::map< types::boundary_id, double > boundary_rotational_speed_map
std::vector< double > effective_youngs_modulus
std::vector< double > model_parameter_beta
Tensor< 1, 3 > calculate_rolling_resistance_torque(const double particle_radius, const ArrayView< const double > &particle_properties, const double rolling_friction_coeff, const double rolling_viscous_damping_coeff, const double dt, const double normal_spring_constant, const double normal_force_norm, const Tensor< 1, 3 > &normal_unit_vector, Tensor< 1, 3 > &cumulative_rolling_resistance_spring_torque)
Calculate the rolling resistance torque acting on the particle according to the rolling resistance mo...
std::vector< double > effective_coefficient_of_friction
std::vector< particle_triangle_contact_candidate > particle_triangle_contact_description
All the particle-triangle contact candidates found for a single particle against the triangles of one...
double get_force_calculation_threshold_distance()
Calculate the minimum overlap at which particle-wall forces are computed. This function is useful for...
const unsigned int vertices_per_triangle
std::vector< double > effective_hamaker_constant
void set_multiphysic_properties(const DEMSolverParameters< dim > &dem_parameters)
Set every containers needed to carry the heat transfer rate calculation.
virtual void calculate_particle_solid_object_contact(typename DEM::dem_data_structures< dim >::particle_floating_mesh_potentially_in_contact &particle_floating_mesh_potentially_in_contact, const double dt, const std::vector< std::shared_ptr< SerialSolid< dim - 1, dim > > > &solids, ParticleInteractionOutcomes< PropertiesIndex > &contact_outcome) override
Calculate the contact outcomes for particle-solid objects contacts using the contact pair information...
std::vector< double > effective_microhardness
double wall_thermal_conductivity
std::map< types::boundary_id, Tensor< 1, 3 > > boundary_translational_velocity_map
std::vector< double > equivalent_surface_roughness
ParticleWallContactForce(const DEMSolverParameters< dim > &dem_parameters)
virtual ~ParticleWallContactForce()=default
unsigned int n_particle_types
Point< 3 > get_location(const Particles::ParticleIterator< dim > &particle) &
Get the 3d location of the particle.
std::vector< double > effective_real_youngs_modulus
std::vector< double > effective_shear_modulus
void calculate_DMT_contact(particle_wall_contact_info< dim > &contact_info, const Tensor< 1, 3 > &tangential_relative_velocity, const double normal_relative_velocity_value, const double normal_overlap, const double dt, const ArrayView< const double > &particle_properties, Tensor< 1, 3 > &normal_force, Tensor< 1, 3 > &tangential_force, Tensor< 1, 3 > &tangential_torque, Tensor< 1, 3 > &rolling_resistance_torque)
Calculate the particle-wall cohesive force and contact torque based on the updated values in contact_...
Parameters::Lagrangian::WallThermalBoundaryType get_thermal_boundary_type(const types::boundary_id boundary_id) const
Return the thermal boundary type of a wall of the background triangulation. The walls without a therm...
std::vector< double > effective_coefficient_of_restitution
std::vector< double > effective_coefficient_of_rolling_friction
const double f_coefficient_epsd
std::map< types::boundary_id, Tensor< 1, 3 > > boundary_rotational_vector
virtual void calculate_particle_wall_contact(typename DEM::dem_data_structures< dim >::particle_wall_in_contact &particle_wall_pairs_in_contact, const double dt, ParticleInteractionOutcomes< PropertiesIndex > &contact_outcome) override
Calculate the contact outcomes for particle-wall contacts using the contact pair information and phys...
Point< 3 > center_mass_container
void calculate_nonlinear_contact(particle_wall_contact_info< dim > &contact_info, const Tensor< 1, 3 > &tangential_relative_velocity, const double normal_relative_velocity_value, const double normal_overlap, const double dt, const ArrayView< const double > &particle_properties, Tensor< 1, 3 > &normal_force, Tensor< 1, 3 > &tangential_force, Tensor< 1, 3 > &tangential_torque, Tensor< 1, 3 > &rolling_resistance_torque)
Calculate the particle-wall non-linear contact force and torque based on the updated values in contac...
std::vector< double > particle_thermal_conductivity
static void clear_contact_info(particle_wall_contact_info< dim > &contact_info)
Clears the tangential displacement and rolling resistance spring torque from a contact info structure...
DEM particle property definitions and output name management.
WallThermalBoundaryType
Thermal boundary type of the grid in multiphysic DEM. It is used to define the thermal boundary condi...
@ adiabatic
No heat flux through the wall.
ParticleWallContactForceModel
Contact force model for particle-wall interactions.
@ JKR
Johnson-Kendall-Roberts model.
@ DMT
Derjaguin-Muller-Toporov model.
RollingResistanceMethod
Method used to compute the rolling resistance torque.
@ epsd
Elastic-plastic spring-dashpot.
@ viscous
Viscous rolling resistance.
@ constant
Constant rolling resistance.
@ none
No rolling resistance.
Tensor< 1, 3 > no_rolling_torque()
No rolling resistance torque. No calculation is being done with this model.
Tensor< 1, 3 > viscous_rolling_torque(const double particle_radius, const ArrayView< const double > &particle_properties, const double effective_rolling_friction_coefficient, const double normal_force_norm, const Tensor< 1, 3 > &normal_unit_vector)
Calculation of the viscous rolling resistance torque using the information obtained from the fine sea...
Tensor< 1, 3 > epsd_rolling_torque(const double particle_radius, const ArrayView< const double > &particle_properties, const double effective_rolling_friction_coefficient, const double effective_rolling_viscous_damping_coefficient, const double f_coefficient, const double normal_force_norm, const double dt, const double normal_spring_constant, const Tensor< 1, 3 > &normal_unit_vector, Tensor< 1, 3 > &cumulative_rolling_resistance_spring_torque)
Calculation of the EPSD rolling resistance torque using the information obtained from the fine search...
Tensor< 1, 3 > constant_rolling_torque(const double particle_radius, const ArrayView< const double > &particle_properties, const double effective_rolling_friction_coefficient, const double normal_force_norm)
Calculation of the constant rolling resistance torque using the information obtained from the fine se...
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
Contact candidate between a particle and a triangle from a solid surface. Stores the required informa...
particle_wall_contact_info< dim > * contact_info
LetheGridTools::ParticleTriangleContactIndicator contact_indicator
Triangulation< dim-1, dim >::active_cell_iterator triangle_cell
Handle the information related to the calculation of the particle-wall contact forces.
types::boundary_id boundary_id
Tensor< 1, 3 > normal_vector
Tensor< 1, 3 > tangential_displacement
Tensor< 1, 3 > rolling_resistance_spring_torque
Point< 3 > point_nd_to_3d(const Point< dim > &point)