Skip to content

External Packages

RSA_MPI

RSA_MPI is an HPC library that generates random configurations of non-overlapping balls with an unbiased RSA (Random Sequential Adsorption) algorithm. The sequential strategy is based on Ebeida et al. (2012) and has been extended to MPI [1]. See Optional packages to install it.

rsa_rnd_rad

Parameter Description
enlarge_bounds empty layer added around the domain, default 0.0
periodicity overrides the periodicity of the domain
bounds overrides the bounds of the domain, removing the particles outside
type particle type, default 0
expandable overrides the expandability of the domain
r_min smallest radius
r_max largest radius
n_max maximum number of particles, default 1e16
region region where the sample is generated
1
2
3
4
5
6
7
- rsa_rnd_rad:
   bounds: [[ -4.97, -4.97, 1 ], [ 4.97, 4.97, 150 ]]
   r_min: 0.04
   r_max: 0.05
   n_max: 6000000
   region: MYSUPERZONE
   type: 0

rsa_vol_frac

Fills the grid with particles using the RSA algorithm, controlling the generation with geometric constraints, volume fractions and particle types. It is only intended for the initialization of a simulation.

Parameter Description
particle_type_map map between the particle type names and their ids
enlarge_bounds empty layer added around the domain, default 0.0
bounds_mode how the bounds are defined: from the file or overridden
periodicity overrides the periodicity of the domain
expandable overrides the expandability of the domain
bounds overrides the bounds of the domain, removing the particles outside
params list of particle parameters: [radius, volume fraction, type name], or {vf, type} with use_shape
region CSG region restricting the particle placement (optional)
use_shape uses the shape data to set the radius; do not use it with spheres
- particle_type:
   type: [ Sphere0, Sphere1, Sphere2 ]
- rsa_vol_frac:
    periodic: [true, true, false]
    bounds: [ [ 10, 10, 10 ], [ 14, 14, 14] ]
    params: [[0.5, 0.1, Sphere2], [0.25, 0.1, Sphere1], [0.125, 0.1, Sphere0]]
- set_fields:
   polyhedra: false
   type:              [ Sphere2, Sphere1, Sphere0 ]
   radius:            [     0.5,    0.25,   0.125 ]
   velocity:          [ [0,0,0], [0,0,0], [0,0,0] ]
   sigma_velocity:    [   0.001,   0.001,   0.001 ]
   density:           [    0.02,    0.02,    0.02 ]

RSA volume fraction

- read_shape_file:
   filename: shapes.shp
   rename: [PolyR, Octahedron]
- rsa_vol_frac:
   bounds: [ [0, 0, 0], [40, 10, 40] ]
   params: [ {vf: 0.055, type: PolyR},
             {vf: 0.055, type: Octahedron} ]
   use_shape: true
- set_fields:
   polyhedra: true
   type:              [   PolyR, Octahedron ]
   velocity:          [ [0,0,0],    [0,0,0] ]
   sigma_velocity:    [     0.1,        0.1 ]
   random_quaternion: [    true,       true ]

Rescale shape

Note

The domain defined by bounds must be a multiple of the cell size of the domain block. This operator does not require init_rcb_grid.

See the rescale shape and RSA examples.