The Box section¶
The box
section defines the simulation box.
This is useful, for instance, if periodic boundary
conditions are needed.
Box settings
------------
cell = [10, 10, 10]
periodic = [True, True, False]
Keywords for the Box section¶
For the Box section the following keywords can be set:
Keyword | Description |
---|---|
cell | Which defines the cell parameters of the simulation box. |
low | Which defines the lower boundaries of the box. |
high | Which defines the upper boundaries of the box. |
periodic | Which determines if the simulation box has periodic boundaries. |
Keyword cell¶
The cell
keyword defines the length of the
simulation box in each dimension. This
is given by a list of numbers:
Box
---
cell = [2, 3, 5]
# or
cell = [10, 10, float('inf')]
This will define a simulation box with limits starting from 0 and up to the specified length. In case you want to explicitly define the boundaries you can do this by making use of the keywords low and high described below. Note that if more than three values are given, then the created box will be triclinic. The box is then represented by a matrix:
If 6 values are given:
If 9 values are given:
- Default:
- If the cell is not given in the box section, then the cell will be set to infinite in all directions. However, if present, the cell found in the input configuration will be used.
Keyword low¶
Determines the lower boundaries for the simulation box.
Box
---
low = [0, -1, 0]
- Default:
- The default setting is
0
for each dimension.
Keyword high¶
Determines the upper boundaries for the simulation box.
Box
---
high = [10, -10, 100]
- Default:
- The default setting is
low + cell
.
Keyword periodic¶
Determines if the boundaries of the simulation box are periodic or not. This is defined by giving a list of boolean values:
Box
---
periodic = [True, True, True]
or for a 2D case:
Box
---
periodic = [True, False]
- Default:
- The default setting is periodic (
True
) for all directions.