-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the verification-PBE-v1 protocol and verification-PBE-v1-a0 protocol. * Use a fixed cut off energy of 800 eV. This is to make sure the consistency between the oxides and the unaries set. Previously, the cut off energy is determined from the pseudopotentials on the code side automatically. However, to construct the convex hull, the same cut off energy should be used for all calculations. Previously oxides are calculated at about 750 eV cut off. * Fixed a bug with the soft_elements.yml file. This file provides a list of "soft" elements where the default cut off energy is very low - which can give some large pulay stress. If all of the elements are "soft" a default 326 eV cut of energy is set regardlessly. The yml files expands No and Y into False and True, which need to be properly quoted. In addition, this override should not act if cut_off_energy is set explicitly. * The verification-PBE-v1 uses new potentials ("C19V2"), for lanthanides and actinides. The verification-PBE-v1-a0 uses instead the standard pseudo set. * Added extractor of TS term for CASTEP
- Loading branch information
Showing
6 changed files
with
222 additions
and
13 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
aiida_common_workflows/workflows/relax/castep/additional_otfg_families.yml
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Family based on C19 with updated potentials for lanthanide and actinides | ||
C19V2: | ||
- "C19" | ||
- "La 2|2.3|5|6|7|50U:60:51:52:43{4f0.1}(qc=4.5)" | ||
- "Ce 2|2.2|8|9|10|50U:60:51:52:43{5d0.1}(qc=4.5)" | ||
- "Pr 2|2.1|10|12|13|50U:60:51:52:43{5d0.1}(qc=5)" | ||
- "Nd 2|2.1|10|12|13|50U:60:51:52:43{5d0.1}(qc=5)" | ||
- "Pm 2|2.1|8|9|11|50U:60:51:52:43{5d0.1,4f4}(qc=5.5)" | ||
- "Sm 2|2.1|9|10|12|50U:60:51:52:43{5d0.1,4f5}(qc=5.5)" | ||
- "Eu 2|2.1|9|10|12|50U:60:51:52:43{5d0.1,4f6}(qc=5.5)" | ||
- "Gd 3|2.1|9|10|12|50U:60:51:52:43(qc=5.5)" | ||
- "Tb 2|2.2|12|13|15|50U:60:51:52:43{5d0.1}(qc=5)" | ||
- "Dy 2|2.0|12|13|15|50U:60:51:52:43{5d0.1}(qc=6.5)" | ||
- "Ho 2|2.0|12|13|15|50U:60:51:52:43{5d0.1}(qc=6.5)" | ||
- "Er 2|2.1|10|12|13|50U:60:51:52:43{6s0.1,5d0.1}(qc=6)" | ||
- "Tm 2|2.1|10|12|13|50U:60:51:52:43{5d0.1,4f12}(qc=6)" | ||
- "Yb 2|2.1|10|12|13|50U:60:51:52:43{5d0.1,4f13}(qc=6)" | ||
- "Ac 2|2.4|7|7|9|60U:70U2U2:61:62:53{6d0.1,5f0.1}(qc=5)" | ||
- "Th 2|2.2|7|7|9|60U:70U2U2:61:62:53{5f0.1}(qc=5)" | ||
- "Pa 2|2.2|8|9|10|60U:70U2U2:61:62:53(qc=5)" | ||
- "U 2|2.2|8|9|10|60U:70U2U2:61:62:53(qc=5)" | ||
- "Np 2|2.2|9|10|12|60U:70U2U2:61:62:53(qc=5)" | ||
- "Pu 2|2.2|9|10|12|60U:70U2U2:61:62:53{6d0.1}(qc=5.5)" | ||
- "Am 2|2.2|9|10|12|60U:70U2U2:61:62:53{6d0.1}(qc=5.5)" | ||
- "Cm 2|2.2|9|10|12|60U:70U2U2:61:62:53(qc=5.5)" | ||
# Elements below in this family are not tested again all-electron codes - use with CAUTION | ||
- "Bk 2|2.2|9|10|12|60U:70U2U2:61:62:53{6d0.1}(qc=5.5)" | ||
- "Cf 2|2.2|9|10|12|60U:70U2U2:61:62:53{6d0.1}(qc=5.5)" | ||
- "Es 2|2.1|10|12|13|60U:70U2U2:61:62:53{6d0.1}(qc=6)" | ||
- "Fm 2|2.1|10|12|13|60U:70U2U2:61:62:53{6d0.1}(qc=6)" | ||
- "Md 2|2.0|10|12|13|60U:70U2U2:61:62:53{6d0.1,5f12}(qc=6)" | ||
- "No 2|2.0|10|12|13|60U:70U2U2:61:62:53{6d0.1,5f13}(qc=6)" |
37 changes: 37 additions & 0 deletions
37
aiida_common_workflows/workflows/relax/castep/extractors.py
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Collects some functions to postprocess a `CastepCommonRelaxWorkChain`. | ||
""" | ||
from aiida.common import LinkType | ||
from aiida.orm import WorkChainNode | ||
from aiida.plugins import WorkflowFactory | ||
|
||
CastepCommonRelaxWorkChain = WorkflowFactory('common_workflows.relax.castep') | ||
|
||
|
||
def get_ts_energy(common_relax_workchain): | ||
""" | ||
Return the TS value of a concluded CastepCommonRelaxWorkChain. | ||
CASTEP reports three quantities related to the energy: | ||
- "free energy": ``Final free energy`` - the total energy minus the TS term. | ||
This is the energy that gets minimised and is consistent with the forces calculated. | ||
- "total energy": ``Final energy`` - the total Khon-Sham energy. | ||
- "extrapolated 0K energy": ``NB est. 0K energy`` - the result of E-0.5TS to give better convergence. | ||
- "enthalpy": Is the free energy minus to PV term under finite temperature (for geometry optimisation). | ||
The TS term can extrapolated by subtracting the free energy from the total energy. | ||
""" | ||
if not isinstance(common_relax_workchain, WorkChainNode): | ||
return ValueError('The input is not a workchain (instance of `WorkChainNode`)') | ||
if common_relax_workchain.process_class != CastepCommonRelaxWorkChain: | ||
return ValueError('The input workchain is not a `CastepCommonRelaxWorkChain`') | ||
|
||
castep_base_wc = common_relax_workchain.get_outgoing(link_type=LinkType.CALL_WORK).one().node | ||
e_ks = castep_base_wc.outputs.output_parameters['total energy'] | ||
free_e = castep_base_wc.outputs.output_parameters['free energy'] | ||
|
||
ts = e_ks - free_e #pylint: disable=invalid-name | ||
|
||
return ts |
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