Skip to content

Commit

Permalink
Merge pull request #28 from molssi-seamm/dev
Browse files Browse the repository at this point in the history
Switching periodic systems to fractional coordinates.
  • Loading branch information
seamm authored Sep 6, 2023
2 parents d30d645 + f7b3be2 commit 3b67f46
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
History
=======

2023.9.6 -- Using fractional coordinates for periodic systems.
* By convention, SEAMM is using fractional coordinates for periodic systems. The
PACKMOL step was creating periodic structures with Cartesian coordinates, which
can be a bit confusing, though it did not affect any reauls. This change fixes the
issue.

2023.2.15 -- Restructured documentation and moved to new theme.

2022.5.31 -- Substantial enhancements
Expand Down
4 changes: 4 additions & 0 deletions packmol_step/packmol.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ def run(self):
configuration.periodicity = 3
a, b, c = cell
configuration.cell.parameters = (a, b, c, 90.0, 90.0, 90.0)
# by convention we keep periodic systems in fractional coordinates
xyz = configuration.atoms.get_coordinates(fractionals=False)
configuration.coordinate_system = "fractional"
configuration.atoms.set_coordinates(xyz, fractionals=False)

printer.important(__(output, indent=4 * " "))
printer.important("")
Expand Down

0 comments on commit 3b67f46

Please sign in to comment.