include/meltpooldg/particles/obstacle_data.hpp Source File

Developer Documentation: include/meltpooldg/particles/obstacle_data.hpp Source File
Developer Documentation
obstacle_data.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <deal.II/base/parameter_handler.h>
4
7
8
9namespace MeltPoolDG
10{
11 template <typename number>
13 {
16
19
20 struct
21 {
24 bool do_refine_obstacles = false;
25
29
33 } amr;
34
37
40
41 void
42 add_parameters(dealii::ParameterHandler &prm)
43 {
44 prm.enter_subsection("obstacles");
45 {
46 prm.add_parameter("stationary",
48 "Set to true if obstacles shall be stationary.");
49 prm.add_parameter("obstacle state input file",
51 "File in which the obstacle initial state data is stored.");
52 prm.enter_subsection("amr");
53 {
54 prm.add_parameter(
55 "do refine",
56 amr.do_refine_obstacles,
57 "If true and AMR is enabled, regions around obstacles are adaptively refined "
58 "according to the specified refinement parameters.");
59 prm.add_parameter(
60 "inner surface distance",
61 amr.inner_fractional_distance_to_surface,
62 "Fraction of a reference length (e.g., particle radius) used to determine the "
63 "distance from the obstacle surface within which cells inside the obstacles "
64 "are refined.");
65 prm.add_parameter(
66 "outer surface distance",
67 amr.outer_fractional_distance_to_surface,
68 "Fraction of a reference length (e.g., particle radius) used to determine the "
69 "distance from the obstacle surface within which cells outside the obstacles "
70 "are refined.");
71 }
72 prm.leave_subsection();
73
74 cohesive_forces.add_parameters(prm);
75 contact_forces.add_parameters(prm);
76 }
77 prm.leave_subsection();
78 }
79 };
80} // namespace MeltPoolDG
Interface for a general preconditioner.
Definition boundary_condition_functions.hpp:17
Definition obstacle_data.hpp:13
bool do_refine_obstacles
Definition obstacle_data.hpp:24
void add_parameters(dealii::ParameterHandler &prm)
Definition obstacle_data.hpp:42
SphericalParticleContactData< number > contact_forces
Contact force data defining the material and contact properties for all particles.
Definition obstacle_data.hpp:39
struct MeltPoolDG::ObstacleData::@5 amr
SphericalParticleCohesiveForceData< number > cohesive_forces
Cohesive force data defining the material and cohesive contact properties for all particles.
Definition obstacle_data.hpp:36
number outer_fractional_distance_to_surface
Definition obstacle_data.hpp:32
bool stationary_obstacles
If true, obstacles are fixed and do not move during the simulation.
Definition obstacle_data.hpp:15
number inner_fractional_distance_to_surface
Definition obstacle_data.hpp:28
std::string obstacle_state_input_file
Path to the input file containing the initial obstacle state.
Definition obstacle_data.hpp:18
Definition cohesive_forces_data.hpp:9
Definition contact_forces_data.hpp:9