Insertion with a moving mesh

In this example we show how to setup a simulation with a moving insertion face.

_images/result9.png

Name of the case: Project_Insertion_Moving_Mesh

Simulation setup

General settings

In this simulation we use particles of particle_shape command sphere:

_images/01_particle_shape23.png

A material with name material1 is defined:

_images/01_materials21.png

The simulation domain is defined with x dimensions ranging from -0.055 m to 0.3 m, y dimensions ranging from -0.055 to 0.055 meters and z dimensions ranging from 0 to 0.3 meters:

_images/01_simulation_domain23.png

Meshes and regions

We use a moving mesh as insertion face and thus start with the definition of a mesh_module of type motion:

_images/02_mesh_module2.png

In the next step we load the respective mesh command. Please note that the solid option is set to no and the is_planar option is set to yes.

_images/02_mesh_insertion.png

Primitive walls are used as boundaries for the somilation domain in 5 dimensions:

normal_axis

offset

p3

x

-0.055

p4

x

0.3

p5

y

-0.055

p6

y

0.055

p7

z

0

_images/02_primitive_wall4.png

Altogether this simulation involves 3 geometry components: a bottom plate, a cylinder that forms the side walls and a top plate that is used to compress the particle bed. In a first step, a mesh module of type servo is defined:

Physics models

In the next step, the definition of the physics models takes place. For the particles we use the normal contact model hertz and the tangential model history.

_images/03_particle_contact_model22.png

Since we added meshes in the previous section, also a wall contact model was added automatically in this section. We use the same contact models as for the particles:

_images/03_wall_contact_model20.png

Finally also the gravity is defined:

_images/03_enable_gravity15.png

Per default the gravity has a magnitude of 9.807 and acts into negative z-direction. These defaults can be changed by either setting the magnitude or the direction manually.

Particles

In the general settings tab we introduced two materials. Here we define the required material properties.

material1

Density

1500

Young’s modulus

5e6

Poisson ratio

0.3

Coefficient of restitution

0.5

Coefficient of friction

0.5

_images/04_material_properties16.png

In the next step the particle templates are generated. Spheres with three different diameters are used for the creation of the particle distribution:

_images/04_particle_template_16.png _images/04_particle_template_25.png _images/04_particle_template_3.png _images/04_particle_distribution20.png

An insertion command command of type stream is used to insert particles through the previously defined moving mesh:

_images/04_particle_insertion5.png

Simulation control

In this tab one first choses the time step settings such as the desired simulation timestep of 1e-5 seconds and the total simulation time of 1.0 second. Per default also the check_timestep command command is enabled, which throws a warning when the time step exceeds 10 % of the Rayleigh or the Hertz timestep. These thresholds can be changed by setting an alternative value for hertz_fraction or rayleigh_fraction.

_images/06_timestep_settings22.png

The enable_loadbalancing command command is used to ensure the highest efficiency for parallel runs.

Output settings

In this tab we first define the timestep width for the file and the terminal output:

_images/07_output_timestep_settings21.png

The output_settings command command takes care that all particle information and the meshes are written to files accordingly. Furthermore it triggers the output of global quantities such as the kinetic energy of the particles or total normal and shear stresses onto meshes in the terminal. Please note that if the output of per-cell information on meshes such as wear, velocity or stress are desired, the keyword mesh_properties has to be added and the required output has to be selected.

_images/07_output_settings23.png

Running the simulation

After saving the case we can change to the Simulation section. By hitting the Start button we can start running the simulation either serially or in parallel using mpi. Number of particles, kinetic energy, etc. are displayed in the line charts section.

_images/10_run1.png

Result

The result of the calculation can then be visualized with Paraview. The image shows the state of the simulation after 0.85 seconds, so briefly before the end.

_images/result9.png