Skip to content

Particles

Particles are created and initialized in the input_data batch. The rotating drum deck:

particle_regions:
  - CYL1:
      quadric:
        shape: cyly
        transform:
          - scale: [ 9.5, 1, 9.5 ]
          - translate: [ 10, 0, 10 ]

input_data:
  - init_rcb_grid                 # MPI domain decomposition, required before creating particles
  - particle_type:                # names of the particle types
     type: [ Sphere1 ]
  - lattice:                      # particles on a simple cubic lattice, inside the region CYL1
      structure: SC
      types: [ Sphere1 ]
      size: [ 1.0, 1.0, 1.0 ]
      region: CYL1
  - set_fields:                   # radius, density, velocity... per type
     polyhedra: false
     type:           [ Sphere1 ]
     group:          [       0 ]
     radius:         [     0.5 ]
     density:        [    0.02 ]
     velocity:       [ [0,0,0] ]
     sigma_velocity: [     0.1 ]
  • init_rcb_grid builds the MPI domain decomposition: it must come before every particle-creation operator.
  • particle_type declares the type names used by the following operators (spheres only: with polyhedra, the types are the shapes read by read_shape_file).
  • lattice fills a region with particles (SC, BCC, FCC, ... structures).
  • set_fields sets the fields of each type: radius, density (the mass is deduced), velocity with an optional random perturbation, orientation, and the group used to select the contact parameters.

See Particle fields for all the field operators, and Particles for polyhedra.

Other ways to create particles

Particles can also be read from a file (XYZ, Rockable, checkpoint) or generated with the RSA algorithm (External Packages).