-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently none of the `get_builder_from_protocol()` methods consider the periodic boundary conditions (`pbc`) of the input `StructureData`. Here we add support for several cases to the `PwBaseWorkChain` and `PwRelaxWorkChain`: * 2D structures in the x-y plane with periodic boundary conditions for the first two lattice vectors (`pbc == [True, True, False]`). For this case, the `PwBaseWorkChain` protocol will set `SYSTEM.assume_isolated` to `2D`, and the `PwRelaxWorkChain` protocol will use `CELL.do_free = '2Dxy'` in case the `RelaxType` is `CELL` or `POSITIONS_CELL`. * 1D structures defined on an arbitrary lattice vector will use the corresponding `CELL.do_free` setting (`'x'`, `'y'`, `'z'`) if `RelaxType` is `CELL` or `POSITIONS_CELL`. So far, no validation is done to see if the structure has the correct `cell` specified. This could potentially be added to the `PwCalculation` validation. Co-authored-by: Marnik Bercx <mbercx@gmail.com>
- Loading branch information
1 parent
0a48533
commit 5687800
Showing
5 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters