PLUGINS/OCCUPANCIES: Difference between revisions
No edit summary |
|||
Line 41: | Line 41: | ||
[[Category:INCAR tag]][[Category:Electronic occupancy]] | [[Category:INCAR tag]][[Category:Electronic occupancy]] | ||
<!--[[The_VASP_Manual|Contents]]--> | <!--[[The_VASP_Manual|Contents]]--> | ||
<!-- Link to categories like this: [[Category:INCAR]][[Category:Electronic Minimization]] | <!-- Link to categories like this: [[Category:INCAR]][[Category:Electronic Minimization]] | ||
only comment it out when you want the page to show up on the category page, i.e., not when it is in the Construction namespace.--> | only comment it out when you want the page to show up on the category page, i.e., not when it is in the Construction namespace.--> |
Revision as of 10:40, 18 December 2024
PLUGINS/OCCUPANCIES = .True. | .False.
Default: PLUGINS/OCCUPANCIES = .False.
Description: PLUGINS/OCCUPANCIES calls the Python plugin for the occupancies interface for each ionic relaxation step
When PLUGINS/OCCUPANCIES=.TRUE., VASP calls the occupancies
Python function at the end of each ionic relaxation step.
The primary use-case of this tag to recompute the occupancies after performing modifications through other plugins such as PLUGINS/LOCAL_POTENTIAL. It also allows changing NELECT, EFERMI, NUPDOWN, ISMEAR, SIGMA, EMIN and EMAX at the end of each SCF step, to be reflected in the next step.
Expected inputs
The occupancies
Python function expects the following inputs,
def occupancies(constants, additions):
where constants
and additions
and Python dataclasses.
The constants
dataclass consists of the following inputs, listed here with their associated datatypes
NELECT: float EFERMI: float NUPDOWN: float ISMEAR: int SIGMA: float EMIN: float EMAX: float
The additions
dataclass consists of the same quantities as the constants
tag.
Mind: Calling this interface implicitly triggers a recalculation of the occupancies |
Modifying quantities
Modify the quantities listed in additions by adding to them.
import numpy as np
def structure(constants, additions)
additions.NELECT += 1
Mind: You may not make modifications to quantities in constants
|
Related tags and articles
PLUGINS/LOCAL_POTENTIAL PLUGINS/STRUCTURE PLGUINS/FORCE_AND_STRESS