profess.System.set_box#
- System.set_box(vectors, unit='h')#
Set the simulation box size and shape by changing the box vectors.
The ion positions are scaled to preserve their fractional coordinates.
- Parameters:
- vectorsarray_like
New box vectors, in rows of 3x3 list or array.
- unitstr, optional
Length unit for vectors.
- Returns:
- systemprofess.System