Hexapods in a Rotating Drum¶
This tutorial generates hexapods in a rotating drum and then runs the simulation. The input files are in
example/tutorial/hexa-rotating-drum. The simulation has three steps:
- generation of the hexapods in the cylinder (
generator.msp); - deposit of all the hexapods in the cylinder (
wait.msp); - rotation of the cylinder (
run.msp).
Warning
The tutorial does not work with the example files of exaDEM version 1.0.2. Use a more recent version, or change
the AREA region of generator.msp to bounds: [ [ 0, 0, 18 ], [ 20, 7.5, 20 ] ].
The ingredients of the generation step are:
- the shape of the polyhedron;
- the cylinder;
- the contact law between the polyhedra;
- a spatial area where particles are generated;
- a generation frequency;
- the initialization of the generated polyhedra.
Step 1: generation¶
Shape¶
The shape is a hexapod:
<
name alpha3
radius 0.237770037899799
preCompDone y
nv 6
0.475540075799599 0 0
-0.475540075799599 0 0
0 0.475540075799599 0
0 -0.475540075799599 0
0 0 0.475540075799599
0 0 -0.475540075799599
ne 3
0 1
2 3
4 5
nf 0
obb.extent 0.713310113699398 0.713310113699398 0.713310113699398
obb.e1 1 0 0
obb.e2 0 1 0
obb.e3 0 0 1
obb.center 0 0 0
volume 0.523598775598299
I/m 0.13266 0.13266 0.13266
>
A ParaView polydata is provided for this shape (alpha3.vtk): exaDEM does not display hexapods correctly since they
have no face (otherwise, a your_shape.vtk file is written at initialization).
Cylinder¶
The drum is an infinite cylinder centered at (10, 3.75, 10) with a radius of 16. The contacts with it are detected
during the construction of the neighbor lists (nbh_polyhedron).
Note
setup_drivers is part of the default execution graph of exaDEM, set to nop (no operation) by default.
Contact law¶
The contact law computes the forces between polyhedra and between the cylinder and the polyhedra. Gravity is applied everywhere.
Generation area and domain¶
The particles are generated in the box between (0, 0, 18) and (20, 7.5, 20):
and the domain contains the region AREA:
Initialization¶
A lattice generator creates the first particles:
The hexapods of this region are then initialized. The default density is 1; the volume used to compute the mass is stored in the shape.
input_data chains these blocks. init_rcb_grid must come first: it builds the MPI domain decomposition used by
every particle creation operator.
Generator¶
add_generated_particles (nop by default) is called every simulation_generator_frequency steps, set in the
global block (simulation_generator_frequency: 40000, default -1):
Run¶
About 11 minutes on 12 cores:
Note
alpha3.shp must be in the directory where the simulation is run.
Step 2: deposit¶
The second step waits for the end of the deposit, from step 1,200,000 (12 s) to 1,400,000 (14 s). The snapshot of step
1,200,000 is loaded and the generation is disabled. Do not forget to define the cutoff radius of the hexapods with
radius_from_shape, used to build the Verlet lists.
About 4 minutes on 12 cores:
At the end of the second step, the deposit is stable (no velocity):
Step 3: rotation¶
The rotating drum runs from step 1,400,000 (14 s) to 5,000,000 (50 s). The angular velocity is deduced from the Froude number \(Fr = \omega^2 R / g\), i.e. \(\omega = \sqrt{Fr\,g/R}\). For a cascading regime with \(Fr = 0.2\): \(\omega = \sqrt{0.2 \times 9.81 / 16} \approx 0.35\) rad/s.
The contact network (normal forces) between the hexapods is also written: