-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support remote force constants calculation
To compute force constants from a large ensemble of displacement-force datasets by alm, large computation power can be necessary. So running this calculation on a remote computer is supported. The calcfuntion of get_random_displacements is divided into one calcfunction and one python method1) collect_dataset (calcfunction): Collect displacements and forces from previous calculations and some treatments are applied following parameters. 2) get_random_displacements (python method): This generates supercell random displacements for which forces are calculated. The later dispalcement dataset is passed to PhonopyWorkChain by submitting to daemon. Therefore it is stored in AiiDA DB as an input parameter.
- Loading branch information
Showing
5 changed files
with
277 additions
and
203 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,13 +70,14 @@ def get_phonopy_yaml_txt(structure, | |
|
||
def get_phonopy_options(settings): | ||
mesh_opts = [] | ||
mesh = settings['mesh'] | ||
try: | ||
length = float(mesh) | ||
mesh_opts.append('--mesh=%f' % length) | ||
except TypeError: | ||
mesh_opts.append('--mesh=\"%d %d %d\"' % tuple(mesh)) | ||
mesh_opts.append('--nowritemesh') | ||
if 'mesh' in settings: | ||
mesh = settings['mesh'] | ||
try: | ||
length = float(mesh) | ||
mesh_opts.append('--mesh=%f' % length) | ||
except TypeError: | ||
mesh_opts.append('--mesh=\"%d %d %d\"' % tuple(mesh)) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
atztogo
Author
Contributor
|
||
mesh_opts.append('--nowritemesh') | ||
|
||
fc_opts = [] | ||
if 'fc_calculator' in settings: | ||
|
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
Oops, something went wrong.
@atztogo
For me, this leads to a failure in Phonopy because of the additional " , I fixed it by changing the following line in cui/settings.py but an easier fix would probably already here:
cui/settings.py: [int(x.replace('"','')) for x in vals[:3]])