|
5 | 5 |
|
6 | 6 | import warnings
|
7 | 7 |
|
8 |
| -from atomate.vasp.config import HALF_KPOINTS_FIRST_RELAX, RELAX_MAX_FORCE |
| 8 | +from atomate.vasp.config import HALF_KPOINTS_FIRST_RELAX, RELAX_MAX_FORCE, \ |
| 9 | + VASP_CMD, DB_FILE |
9 | 10 |
|
10 | 11 | """
|
11 | 12 | Defines standardized Fireworks that can be chained easily to perform various
|
@@ -35,8 +36,8 @@ class OptimizeFW(Firework):
|
35 | 36 |
|
36 | 37 | def __init__(self, structure, name="structure optimization",
|
37 | 38 | vasp_input_set=None,
|
38 |
| - vasp_cmd="vasp", override_default_vasp_params=None, |
39 |
| - ediffg=None, db_file=None, |
| 39 | + vasp_cmd=VASP_CMD, override_default_vasp_params=None, |
| 40 | + ediffg=None, db_file=DB_FILE, |
40 | 41 | force_gamma=True, job_type="double_relaxation_run",
|
41 | 42 | max_force_threshold=RELAX_MAX_FORCE,
|
42 | 43 | auto_npar=">>auto_npar<<",
|
@@ -88,7 +89,8 @@ def __init__(self, structure, name="structure optimization",
|
88 | 89 | class StaticFW(Firework):
|
89 | 90 |
|
90 | 91 | def __init__(self, structure=None, name="static", vasp_input_set=None, vasp_input_set_params=None,
|
91 |
| - vasp_cmd="vasp", prev_calc_loc=True, prev_calc_dir=None, db_file=None, vasptodb_kwargs=None, parents=None, **kwargs): |
| 92 | + vasp_cmd=VASP_CMD, prev_calc_loc=True, prev_calc_dir=None, db_file=DB_FILE, vasptodb_kwargs=None, |
| 93 | + parents=None, **kwargs): |
92 | 94 | """
|
93 | 95 | Standard static calculation Firework - either from a previous location or from a structure.
|
94 | 96 |
|
@@ -146,7 +148,7 @@ def __init__(self, structure=None, name="static", vasp_input_set=None, vasp_inpu
|
146 | 148 | class StaticInterpolateFW(Firework):
|
147 | 149 |
|
148 | 150 | def __init__(self, structure, start, end, name="static", vasp_input_set="MPStaticSet",
|
149 |
| - vasp_input_set_params=None, vasp_cmd="vasp", db_file=None, |
| 151 | + vasp_input_set_params=None, vasp_cmd=VASP_CMD, db_file=DB_FILE, |
150 | 152 | parents=None, this_image=None, nimages=None, autosort_tol=0, **kwargs):
|
151 | 153 | """
|
152 | 154 | Standard static calculation Firework that interpolates structures from two previous calculations.
|
@@ -189,7 +191,7 @@ def __init__(self, structure, start, end, name="static", vasp_input_set="MPStati
|
189 | 191 | class HSEBSFW(Firework):
|
190 | 192 |
|
191 | 193 | def __init__(self, parents=None, prev_calc_dir=None, structure=None, mode="gap", name=None,
|
192 |
| - vasp_cmd="vasp", db_file=None, |
| 194 | + vasp_cmd=VASP_CMD, db_file=DB_FILE, |
193 | 195 | **kwargs):
|
194 | 196 | """
|
195 | 197 | For getting a more accurate band gap or a full band structure with HSE - requires previous
|
@@ -237,8 +239,8 @@ def __init__(self, parents=None, prev_calc_dir=None, structure=None, mode="gap",
|
237 | 239 | class NonSCFFW(Firework):
|
238 | 240 |
|
239 | 241 | def __init__(self, parents=None, prev_calc_dir=None, structure=None,
|
240 |
| - name="nscf", mode="uniform", vasp_cmd="vasp", |
241 |
| - copy_vasp_outputs=True, db_file=None, |
| 242 | + name="nscf", mode="uniform", vasp_cmd=VASP_CMD, |
| 243 | + copy_vasp_outputs=True, db_file=DB_FILE, |
242 | 244 | input_set_overrides=None, **kwargs):
|
243 | 245 | """
|
244 | 246 | Standard NonSCF Calculation Firework supporting uniform and line modes.
|
@@ -301,9 +303,9 @@ def __init__(self, parents=None, prev_calc_dir=None, structure=None,
|
301 | 303 |
|
302 | 304 | class LepsFW(Firework):
|
303 | 305 |
|
304 |
| - def __init__(self, structure, name="static dielectric", vasp_cmd="vasp", |
| 306 | + def __init__(self, structure, name="static dielectric", vasp_cmd=VASP_CMD, |
305 | 307 | copy_vasp_outputs=True,
|
306 |
| - db_file=None, parents=None, phonon=False, mode=None, |
| 308 | + db_file=DB_FILE, parents=None, phonon=False, mode=None, |
307 | 309 | displacement=None,
|
308 | 310 | user_incar_settings=None, **kwargs):
|
309 | 311 | """
|
@@ -380,9 +382,9 @@ def __init__(self, structure, name="static dielectric", vasp_cmd="vasp",
|
380 | 382 |
|
381 | 383 | class DFPTFW(Firework):
|
382 | 384 |
|
383 |
| - def __init__(self, structure=None, prev_calc_dir=None, name="static dielectric", vasp_cmd="vasp", |
| 385 | + def __init__(self, structure=None, prev_calc_dir=None, name="static dielectric", vasp_cmd=VASP_CMD, |
384 | 386 | copy_vasp_outputs=True, lepsilon=True,
|
385 |
| - db_file=None, parents=None, user_incar_settings=None, |
| 387 | + db_file=DB_FILE, parents=None, user_incar_settings=None, |
386 | 388 | pass_nm_results=False, **kwargs):
|
387 | 389 | """
|
388 | 390 | Static DFPT calculation Firework
|
@@ -445,7 +447,7 @@ def __init__(self, structure=None, prev_calc_dir=None, name="static dielectric",
|
445 | 447 | class RamanFW(Firework):
|
446 | 448 |
|
447 | 449 | def __init__(self, mode, displacement, prev_calc_dir=None, structure=None, name="raman",
|
448 |
| - vasp_cmd="vasp", db_file=None, |
| 450 | + vasp_cmd=VASP_CMD, db_file=DB_FILE, |
449 | 451 | parents=None, user_incar_settings=None, **kwargs):
|
450 | 452 | """
|
451 | 453 | Static calculation Firework that computes the DFPT dielectric constant for
|
@@ -555,8 +557,8 @@ class TransmuterFW(Firework):
|
555 | 557 |
|
556 | 558 | def __init__(self, structure, transformations, transformation_params=None,
|
557 | 559 | vasp_input_set=None, prev_calc_dir=None,
|
558 |
| - name="structure transmuter", vasp_cmd="vasp", |
559 |
| - copy_vasp_outputs=True, db_file=None, |
| 560 | + name="structure transmuter", vasp_cmd=VASP_CMD, |
| 561 | + copy_vasp_outputs=True, db_file=DB_FILE, |
560 | 562 | parents=None, override_default_vasp_params=None, **kwargs):
|
561 | 563 | """
|
562 | 564 | Apply the transformations to the input structure, write the input set corresponding
|
@@ -632,9 +634,9 @@ class MDFW(Firework):
|
632 | 634 |
|
633 | 635 | def __init__(self, structure, start_temp, end_temp, nsteps,
|
634 | 636 | name="molecular dynamics",
|
635 |
| - vasp_input_set=None, vasp_cmd="vasp", |
| 637 | + vasp_input_set=None, vasp_cmd=VASP_CMD, |
636 | 638 | override_default_vasp_params=None,
|
637 |
| - wall_time=19200, db_file=None, parents=None, |
| 639 | + wall_time=19200, db_file=DB_FILE, parents=None, |
638 | 640 | copy_vasp_outputs=True, **kwargs):
|
639 | 641 | """
|
640 | 642 | Standard firework for a single MD run.
|
|
0 commit comments