-
Notifications
You must be signed in to change notification settings - Fork 4
analyze_poscar.py
Julien Steffen edited this page Sep 2, 2025
·
7 revisions
This script analyzes a structure given in a POSCAR file and can generate suitable POTCAR
and KPOINTS
files for it.
In the following, the possible options are explained:
-
-gen_kpoints
Generates aKPOINTS
file for the system, based on the unit cell shape of thePOSCAR
. Further, surface slabs or isolated systems are recognized automatically, the number of k-points in the respective directions are set to 1 if the vacuum is larger than 7 Angstrom. -
-k_density=[value]
The density of sampling in recriprocal space. The larger the given value, the lower the number of k-points will be (higher distance between sampled points). The default value is 0.04. A value of 0.02 thus will double the number of k-points per dimension for a given `POSCAR´ file. -
-gen_potcar
APOTCAR
file for the givenPOSCAR
file will be generated. It is assume that thepotcar
folder that contains thePOTCAR
files from VASP for all elements is directly placed in the home folder. -
-potcar_path=[path]
Change the default location of the VASPpotcar
folder for all elements to the given path. If you do not want to give this keyword every time, you can also directly change the path in the script (line 48 inanalyze_poscar.py
). -
-count_elec
Determine the total number of valence electrons in the system. This is done based on the numbers of explicitly treated electrons in the standard PAW PBE potentials for the elements (see VASP wiki). This option is particularly helpful for calculations of charged systems where the charge needs to be defined by changing the total number of valence electrons in the system with theNELECT
keyword. -
-density
Calculates the average density (in g/cm^3) of the periodic structure in thePOSCAR
file. -
-atoms=a,b,c
Give a list of atom indices for which some analysis will be made (currently only the measurement of plane angles, see below). Example:atoms=3,6,7,18,35
. -
-plane_angle=[coord_plane]
Activates the measurement of the orientation of a plane defined by a collection of atoms (-atoms
command) and one of the coordinate planes. Possible arexy
,xz
oryz
. If more than three atoms are given, the plane will be fitted through them to achieve a minimal average distance of the atoms to the plane. Example:-plane_angle=xy
.
- Description of Input Files
- Geometry Optimizations
- Single Point Energy
- Ab Initio Molecular Dynamics
- Machine-Learning Force Fields
- Normal Modes and IR Spectrum
- Implicit Solvation
- Gibbs Free Energies
- External Electric Fields
- Density of States
- Band Structure
- Bader Charges
- DDEC6 Charges
- Wannier Orbitals
- Core Level (Shifts)
- Simulation of STM Images
- Charge Density Differences
- 2D Charge Densities
- Electrostatic Potential
- Nudged Elastic Band
- TS Optimization
- Steered Molecular Dynamics