Skip to content

Domain

The domain operator defines the simulation box and the grid of cells used for the neighbor search and the MPI domain decomposition:

1
2
3
4
5
6
domain:
  cell_size: 4
  periodic: [false, true, false]
  grid_dims: [5, 5, 5]
  bounds: [ [0, 0, 0], [20, 20, 20] ]
  expandable: true
Parameters' description
Parameter Description
bounds lower and upper corners of the simulation box
cell_size size of a grid cell; it must be larger than the largest particle diameter plus rcut_inc
grid_dims number of cells per direction
periodic periodicity per direction
expandable the box can grow along the non-periodic directions when particles leave it

Warning

cell_size, grid_dims and bounds must be consistent: bounds spans grid_dims cells of size cell_size (here 5 × 4 = 20 in each direction).

Some readers (read_xyz, read_dump_particle_interaction, restart, ...) take the box from their input file: the domain block then only gives the cell size and the periodicity, as in:

1
2
3
domain:
  cell_size: 4 m
  periodic: [false, true, false]