Skip to content

Commit

Permalink
Rotating drum example (#1391)
Browse files Browse the repository at this point in the history
Description
I ran the rotating drum example. The only thing I have changed in the prm file is the post-processing Lagrangian. Since it is set at false in the loading simulation, the code is crashing in the second since it is looking for the pvd associated with the post-processing lagrangian.
  • Loading branch information
OGaboriault authored Nov 29, 2024
1 parent cf20bfd commit 8186f39
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 17 deletions.
34 changes: 17 additions & 17 deletions doc/source/examples/dem/rotating-drum/rotating-drum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Both files mentioned below are located in the example's folder (``examples/dem/3
Description of the Case
-----------------------

226080 particles are first inserted into a cylindrical domain and then start rolling on the cylinder wall because of the rotation of the cylinder. The rotation of the cylinder is applied using a ``rotational`` boundary condition. Because of the large number of particles, this simulation should be launched in parallel mode with load-balancing. The concepts and different types of ``boundary condition`` and load-balancing are explained in this example.
226080 particles are first inserted into a cylindrical domain and then start rolling on the cylinder wall because of the rotation of the cylinder. This rotation is applied using a ``rotational`` boundary condition. Because of the large number of particles, this simulation should be launched in parallel mode with load-balancing. The concepts and different types of ``boundary condition`` and load-balancing are explained in this example.


--------------
Expand All @@ -40,11 +40,11 @@ In this example, we choose a ``cylinder`` grid type to create a cylinder. Grid a
.. code-block:: text
subsection mesh
set type = dealii
set grid type = subdivided_cylinder
set grid arguments = 4: 0.12:0.18
set initial refinement = 4
set expand particle-wall contact search = true
set type = dealii
set grid type = subdivided_cylinder
set grid arguments = 4: 0.12:0.18
set initial refinement = 4
set expand particle-wall contact search = true
end
Expand All @@ -55,21 +55,21 @@ An insertion box is defined inside the cylindrical domain. 38000 particles are i

.. code-block:: text
subsection insertion info
set insertion method = volume
set inserted number of particles at each time step = 38000
set insertion frequency = 25000
set insertion box points coordinates = -0.175, -0.07, 0 : 0.175, 0.07, 0.09
set insertion distance threshold = 1.575
set insertion maximum offset = 0.025
set insertion prn seed = 19
end
subsection insertion info
set insertion method = volume
set inserted number of particles at each time step = 38000
set insertion frequency = 25000
set insertion box points coordinates = -0.175, -0.07, 0 : 0.175, 0.07, 0.09
set insertion distance threshold = 1.575
set insertion maximum offset = 0.025
set insertion prn seed = 19
end
Lagrangian Physical Properties
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The particles (226080 particles) are monodispersed, their diameter and density are 0.003 m and 2500 kg/m3, respectively.
The particles are monodispersed. Their diameter and density are 0.003 m and 2500 kg/m3 respectively.

.. code-block:: text
Expand Down Expand Up @@ -123,7 +123,7 @@ In the rotating drum simulation, we use a ``frequent`` load-balancing method and
DEM Boundary Conditions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In this subsection, the boundary conditions of the DEM simulation are defined. First of all, the ``number of boundary conditions`` is specified. Then for each boundary condition, its information is defined. Using ``rotational`` boundary condition exerts imaginary rotational velocity to that boundary. In other words, the boundary does not move, but the particles that have collisions with these walls feel a rotational or translational velocity from the wall. This feature is used in the rotating drum example. The boundary id of the ``cylinder`` side wall, defined with deal.ii grid generator is 4. We set the ``rotational speed`` equal to 11.6 rad/s, and the cylinder should rotate around its axis (`x` direction).
In this subsection, the boundary conditions of the DEM simulation are defined. First of all, the ``number of boundary conditions`` is specified. Then for each boundary condition, its information is defined. Using ``rotational`` boundary condition exerts imaginary rotational velocity to that boundary. In other words, the boundary does not move, but the particles that have collisions with these walls feel a rotational or translational velocity from the wall. This feature is used in the rotating drum example. The boundary id of the ``cylinder`` side wall, defined with deal.ii grid generator is 4. We set the ``rotational speed`` equal to 11.6 rad/s, and the cylinder should rotate on its axis (`x` direction).

.. code-block:: text
Expand Down
8 changes: 8 additions & 0 deletions examples/dem/3d-rotating-drum/load-rotating-drum.prm
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,11 @@ subsection DEM boundary conditions
set rotational vector = 1,0,0
end
end

#---------------------------------------------------
# Lagrangian post-processing
#---------------------------------------------------

subsection post-processing
set lagrangian post-processing = true
end
2 changes: 2 additions & 0 deletions examples/dem/3d-rotating-drum/rotating-drum.prm
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,5 @@ end
subsection post-processing
set lagrangian post-processing = true
end


0 comments on commit 8186f39

Please sign in to comment.