@@ -39,22 +39,22 @@ def get_wf_elastic_constant(
39
39
"""
40
40
Returns a workflow to calculate elastic constants.
41
41
42
- Firework 1 : write vasp input set for structural relaxation,
43
- run vasp,
44
- pass run location,
45
- database insertion.
42
+ Firework 1: write vasp input set for structural relaxation,
43
+ run vasp,
44
+ pass run location,
45
+ database insertion.
46
46
47
- Firework 2 - number of total deformations: Static runs on the deformed structures
47
+ Firework 2 - number of total deformations: static runs on the deformed structures
48
48
49
- last Firework : Analyze Stress/Strain data and fit the elastic tensor
49
+ last Firework: analyze stress/strain data and fit the elastic tensor
50
50
51
51
Args:
52
52
structure (Structure): input structure to be optimized and run.
53
53
strain_states (list of Voigt-notation strains): list of ratios of nonzero elements
54
- of Voigt-notation strain, e. g. [(1, 0, 0, 0, 0, 0), (0, 1, 0, 0, 0, 0), etc.].
54
+ of Voigt-notation strain, e.g. [(1, 0, 0, 0, 0, 0), (0, 1, 0, 0, 0, 0), etc.].
55
55
stencils (list of floats, or list of list of floats): values of strain to multiply
56
- by for each strain state, i. e. stencil for the perturbation along the strain
57
- state direction, e. g. [-0.01, -0.005, 0.005, 0.01]. If a list of lists,
56
+ by for each strain state, i.e. stencil for the perturbation along the strain
57
+ state direction, e.g. [-0.01, -0.005, 0.005, 0.01]. If a list of lists,
58
58
stencils must correspond to each strain state provided.
59
59
db_file (str): path to file containing the database credentials.
60
60
conventional (bool): flag to convert input structure to conventional structure,
@@ -65,12 +65,12 @@ def get_wf_elastic_constant(
65
65
set with ionic relaxation parameters set. Take care if replacing this,
66
66
default ensures that ionic relaxation is done and that stress is calculated
67
67
for each vasp run.
68
- analysis (bool): flag to indicate whether analysis task should be added
69
- and stresses and strains passed to that task
70
- sym_reduce (bool): Whether or not to apply symmetry reductions
71
- tag (str):
68
+ analysis (bool): flag to indicate whether analysis task should be added and
69
+ stresses and strains passed to that task.
70
+ sym_reduce (bool): whether or not to apply symmetry reductions.
71
+ tag (str): tag for the fireworks.
72
72
copy_vasp_outputs (bool): whether or not to copy previous vasp outputs.
73
- kwargs (keyword arguments): additional kwargs to be passed to get_wf_deformations
73
+ kwargs (keyword arguments): additional kwargs to be passed to get_wf_deformations.
74
74
75
75
Returns:
76
76
Workflow
@@ -79,7 +79,7 @@ def get_wf_elastic_constant(
79
79
if conventional :
80
80
structure = SpacegroupAnalyzer (structure ).get_conventional_standard_structure ()
81
81
82
- uis_elastic = {"IBRION" : 2 , "NSW" : 99 , "ISIF" : 2 , "ISTART" : 1 , "PREC" : "High" }
82
+ uis_elastic = {"IBRION" : 2 , "NSW" : 99 , "ISIF" : 2 , "ISTART" : 1 }
83
83
vis = vasp_input_set or MPStaticSet (structure , user_incar_settings = uis_elastic )
84
84
strains = []
85
85
if strain_states is None :
@@ -183,7 +183,8 @@ def get_default_strain_states(order=2):
183
183
)
184
184
if order > 4 :
185
185
raise ValueError (
186
- "Standard deformations for tensors higher than rank 4 not yet determined"
186
+ "Standard deformations for tensors higher than rank 4 not yet "
187
+ "determined."
187
188
)
188
189
strain_states = np .zeros ((len (inds ), 6 ))
189
190
for n , i in enumerate (inds ):
0 commit comments