jaxrens.utils.cell¶
Cell/box utility functions for periodic systems.
All functions are jit-compatible: no Python conditionals on traced values.
Functions
Check whether cell shape satisfies geometric criteria. |
|
Compute transformation matrix T such that new_cell = old_cell @ T. |
|
Return the volume of a cell: |det(cell)|. |
|
Minimum aspect ratio across 3 cell vector pairs. |
|
Substitute a large cubic dummy box when |
|
Transform positions from old cell to new cell. |
|
Wrap atom positions into the home unit cell (fractional coords in [0, 1)). |