@@ -39,40 +39,39 @@ def __init__(
39
39
db_file = DB_FILE ,
40
40
vasptodb_kwargs = None ,
41
41
parents = None ,
42
- vasp_input_set_params = {} ,
42
+ vasp_input_set_params = None ,
43
43
** kwargs ,
44
44
):
45
45
"""
46
- FW that calculates frequency dpendent dielectric function within
46
+ FW that calculates frequency dependent dielectric function within
47
47
indenpendent-particle-approxiamtion. A previous ground state calculation
48
- with WAVECAR is required by specifying mode = 'static'; in the case of no
48
+ with the output WAVECAR is required by specifying mode = 'static'; in the case of no
49
49
parent, a PBE functional ground state calculation will be performed and
50
- the WAVECAR will be saved. Then another calculation with 'ALGO = EXACT, LOPTICS = True'
51
- with variable NBANDS will be performed ( MODE = "IPA") . This calculation
52
- can save the WAVECAR and WAVEDER in case one wants to run RPA level absorption
50
+ the WAVECAR will be saved. Then, perform another calculation with 'ALGO = EXACT, LOPTICS = True'
51
+ with variable NBANDS by specifying MODE = "IPA". This calculation will save the
52
+ WAVECAR and WAVEDER in case one wants to run RPA level absorption
53
53
spectra. For RPA-DFT absorption spectrum, run another mode = 'RPA' calculation
54
54
with the WAVECAR, WAVEDER saved from previous IPA calc.
55
55
Args:
56
56
structure (Structure): Input structure. For an interpolation, this
57
57
is a dummy structure. See interpolate arg description.
58
- name (str): Name for the polarization FireWork.
59
- static_name (str): Name for the SCF run to be used in PassCalcLoc
60
- if copy_vasp_outputs != True.
61
- mode: 'STATIC', 'IPA', or 'RPA'. Default is 'IPA'
58
+ name (str): Name for the FireWork.
59
+ mode: 'STATIC', 'IPA', or 'RPA'.
60
+ nbands: number of bands to use, leave to None, and use nbands_factor instead
61
+ nbands_factor: the multiplication of the number of bands
62
+ reciprocal_density: k-point density
63
+ nkred: reduced number of k-points, for RPA calculation use only, reduces the computing time
64
+ nedos: energy mesh for DOS
62
65
vasp_cmd (str): Command to run vasp.
66
+ prev_calc_loc (bool or str): If true (default), copies outputs from previous calc. If
67
+ a str value, retrieves a previous calculation output by name.
63
68
vasp_input_set (str): string name for the VASP input set (e.g.,
64
69
"MPAbsorptionSet").
65
- vasp_input_set_params (dict): Dict of vasp_input_set_kwargs.
66
70
db_file (str): Path to file specifying db credentials.
67
71
parents (Firework): Parents of this particular Firework. FW or list
68
72
of FWS.
69
- vasp_cmd (str): Command to run vasp.
70
- prev_calc_loc (bool or str): If true (default), copies outputs from previous calc. If
71
- a str value, retrieves a previous calculation output by name. If False/None, will create
72
- new SCAN calculation using the provided structure.
73
+ vasp_input_set_params (dict): Dict of vasp_input_set_kwargs.
73
74
prev_calc_dir (str): Path to a previous calculation to copy from
74
- db_file (str): Path to file specifying db credentials.
75
- parents (Firework): Parents of this particular Firework. FW or list of FWs.
76
75
vasptodb_kwargs (dict): kwargs to pass to VaspToDb
77
76
**kwargs: Other kwargs that are passed to Firework.__init__.
78
77
@@ -89,8 +88,6 @@ def __init__(
89
88
structure .composition .reduced_formula if structure else "unknown" , name , mode
90
89
)
91
90
92
- has_previous_calc = False
93
-
94
91
# define what wavecars to copy from the previous run
95
92
if mode == "STATIC" :
96
93
wavecars = []
@@ -157,14 +154,14 @@ def __init__(
157
154
# when mode = "static"
158
155
elif mode == "STATIC" :
159
156
if prev_calc_dir :
160
- # Copy only the CONTCAR from previous calc directory
157
+ # Copy only the CONTCAR from previous calc directory (often a relaxation run)
161
158
t .append (CopyVaspOutputs (
162
159
calc_dir = prev_calc_dir ,
163
160
contcar_to_poscar = True ,
164
161
additional_files = wavecars )
165
162
)
166
163
167
- t .append (WriteVaspStaticFromPrev (user_incar_settings = { " LWAVE" : "TRUE" }))
164
+ t .append (WriteVaspStaticFromPrev (other_params = { "user_incar_settings" : { " LWAVE" : "TRUE" } }))
168
165
169
166
elif parents :
170
167
# Copy only the CONTCAR from previous calc
@@ -176,7 +173,8 @@ def __init__(
176
173
)
177
174
)
178
175
179
- t .append (WriteVaspStaticFromPrev (user_incar_settings = {"LWAVE" : "TRUE" }))
176
+ t .append (
177
+ WriteVaspStaticFromPrev (other_params = {"user_incar_settings" : {"LWAVE" : "TRUE" }}))
180
178
181
179
elif structure :
182
180
vasp_input_set = MPStaticSet (
@@ -187,10 +185,10 @@ def __init__(
187
185
)
188
186
189
187
else :
190
- raise ValueError ("Must specify structure or previous calculation for Static calculation" )
188
+ raise ValueError ("Must specify structure or previous calculation for static calculation" )
191
189
192
190
else :
193
- raise ValueEroor ("Must specify mode from 'STATIC', 'IPA', or 'RPA'" )
191
+ raise ValueEroor ("Must specify a mode from 'STATIC', 'IPA', or 'RPA'" )
194
192
195
193
# use the 'default' custodian handler group
196
194
handler_group = "default"
0 commit comments