You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* bump ase to 3.26 + add MTKNPT as default for NPT
* improve VASP documentation around run_vasp_kwargs, custodian settings, and magmom initialization
* remove deprecated forcefield makers that were slated for deletion on 1 January, 2025
* Suppress warnings in file client by default
* Fallback methods in MPMorph's automatic volume determination
<b>How can I change the other Custodian settings used to run VASP?</b>
59
+
- These can be set through `run_vasp_kwargs.custodian_kwargs`:
60
+
61
+
```py
62
+
maker = StaticMaker(
63
+
run_vasp_kwargs={
64
+
"custodian_kwargs": {
65
+
"max_errors_per_job": 5,
66
+
"monitor_freq": 100,
67
+
}
68
+
}
69
+
)
70
+
```
71
+
For all possible `custodian_kwargs`, see the [`Custodian` class](https://github.com/materialsproject/custodian/blob/aa02baf5bc2a1883c5f8a8b6808340eeae324a99/src/custodian/custodian.py#L68).
72
+
NB: You cannot set the following four `Custodian` fields using `custodian_kwargs`: `handlers`, `jobs`, `validators`, `max_errors`, and `scratch_dir`.
73
+
74
+
<b>Can I change how VASP is run for each per-`Maker`/`Job`?</b>
75
+
Yes! Still using the `run_vasp_kwargs` and either the `vasp_cmd`, which represents the path to (and including) `vasp_std`, and `vasp_gamma_cmd`, which is the path to `vasp_gam`:
<b>How can I update the magnetic moments (MAGMOM) tag used to start a calculation?</b>
92
+
You can specify MAGMOM using a `dict` of defined values, such as:
93
+
94
+
```py
95
+
from pymatgen.io.vasp.sets import MPRelaxSet
96
+
97
+
vis = MPRelaxSet(user_incar_settings={"MAGMOM": {"In": 0.5, "Ga": 0.5, "As": -0.5}})
98
+
```
99
+
You can also specify different magnetic moments for different oxidation states, such as `{"Ga3+": 0.25}`.
100
+
However, note that `"Ga0+"`, which has been assigned zero-valued oxidation state, is distinct from `"Ga"`, which has not been assigned an oxidation state.
101
+
102
+
Alternatively, MAGMOM can be set by giving a structure assigned magnetic moments: `structure.add_site_property("magmom", list[float])`.
103
+
This will override the default MAGMOM settings of a VASP input set.
0 commit comments