Blade in a Silo¶
This tutorial sets up a blade going down into a silo filled with polyhedra.
As in the hexapod tutorial, the simulation has three steps, one input file each:
- particle generation (
generator.msp); - stabilization of the deposit (
wait.msp); - addition of the blade and motion (
run.msp).
The files are in example/tutorial/blade. The STL files are in the
exaDEM-Data repository: the input files read the STL/SHP files
from an exaDEM-Data folder copied in the run directory.
Step 1: generation¶
Drivers¶
Particles are generated in a cylinder of axis \(Oz\), closed by a base. Both are drivers, registered in
setup_drivers:
The base mod_base is the large shape below:
Particles¶
The polyhedron used in this simulation is defined in shape.shp:
It is read in input_data, and the particles are created with the lattice operator:
Domain¶
The domain can grow later if needed (expandable: true, along the non-periodic directions). cell_size, grid_dims
and bounds must be consistent.
Generation area¶
The particles are generated in an area that fits the cylinder, intersection of two regions:
Generator¶
New polyhedra are generated every 25,000 steps. This needs the frequency, in global:
and the operators creating and initializing the particles, in add_generated_particles:
Force field¶
The contact law parameters and gravity are defined in compute_force:
Note
During the deposit, the friction is 0. It is changed when the blade moves, in step 3.
Global parameters¶
The time step, the number of steps, the Verlet radius (rcut_inc) and the frequencies of the checkpoints and of the
ParaView outputs:
Performance
A larger Verlet radius means less frequent updates of the interaction lists, but longer lists. Find a good trade-off between both.
Run¶
After 1,400,000 steps, you reach the configuration below. The deposit is not finished yet: step 2 waits for it to stabilize.
Step 2: deposit¶
The simulation restarts from where it stopped, without the generator. All the stored elements (drivers, shapes,
particles) are in ExaDEMOutputDir/CheckpointFiles/: the drivers are included from the .msp file written for this
purpose, and the shapes and particles (with the active interactions) are read in input_data:
Warning
Call radius_from_shape, otherwise the interactions are not defined.
Tip
The restart operator now does the same in one line.
After 100,000 steps (step 1,500,000):
Step 3: blade motion¶
Now that the deposit has settled, the blade is set in motion. The simulation restarts from the checkpoint of step 2
as before (drivers, shapes and particles), and the "palefine" STL mesh driver is added with a LINEAR_MOTION type: it
goes down along \(-z\) while rotating around the axis of the cylinder. The friction is also enabled: it was kept at 0
during the deposit so that the bed settles without resistance, and is now set to its final value (mu: 0.1
particle-particle, mu: 0.3 particle-driver) so that the blade drags and compacts the grains as it turns.
Note
driver_0001500000.msp (included above) already registers the base and the cylinder of the deposit step; only the
"palefine" blade is new. Since this driver checkpoint is loaded through includes rather than with the restart
operator, it follows the legacy driver restart mechanism, see Driver Input / Output.