Skip to content

Symmetries and ICHARG mode #110

@the-hampel

Description

@the-hampel

Hi, Hampel,
Thank you very much for this timely information. Here are some more questions.

  1. Symmetry adaption in the converting step. Here are the details.
    For the DFT calculation, I used vasp.6.5.1 and turn the symmetry on (#ISYM=-1) in the INCAR, which can output the vaspout.h5 file. But during the converting step, an error occurs as follows:
Warning: could not identify MPI environment!
Starting serial run at: 2025-09-28 20:59:15.815476
[WARNING]: Error reading Efermi from LOCPROJ, trying DOSCAR...
Read parameters: LOCPROJ
0  ->  {'label': 'dxy', 'isite': 2, 'l': 2, 'm': 0}
1  ->  {'label': 'dyz', 'isite': 2, 'l': 2, 'm': 1}
2  ->  {'label': 'dz2', 'isite': 2, 'l': 2, 'm': 2}
3  ->  {'label': 'dxz', 'isite': 2, 'l': 2, 'm': 3}
4  ->  {'label': 'dx2-y2', 'isite': 2, 'l': 2, 'm': 4}
  Found POSCAR, title line: SrVO3
  Total number of ions: 5
  Number of types: 3
  Number of ions for each type: [1, 1, 3]

    Total number of k-points: 35
   Total number of tetrahedra: 353
Traceback (most recent call last):
  File "/svo-csc-plo/scf/converter.py", line 5, in <module>
    plo_converter.generate_and_output_as_text('plo.cfg', vasp_dir='./')
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/anaconda3/envs/triqs/lib/python3.13/site-packages/triqs_dft_tools/converters/plovasp/converter.py", line 73, in generate_and_output_as_text
    el_struct = ElectronicStructure(vasp_data)
  File "/anaconda3/envs/triqs/lib/python3.13/site-packages/triqs_dft_tools/converters/plovasp/elstruct.py", line 89, in __init__
    assert nk_plo == self.nktot, "PLOCAR is inconsistent with IBZKPT (number of k-points)"
           ^^^^^^^^^^^^^^^^^^^^
AssertionError: PLOCAR is inconsistent with IBZKPT (number of k-points)

The input of the converter.py is

from triqs_dft_tools.converters.vasp import *
import triqs_dft_tools.converters.plovasp.converter as plo_converter

# Generate and store PLOs
plo_converter.generate_and_output_as_text('plo.cfg', vasp_dir='./')

# run the converter
Converter = VaspConverter(filename = 'vasp')
Converter.convert_dft_input()

and the plo.cfg is

[General]
#DOSMESH = -3.0 5.0 4001

[Group 1]
SHELLS = 1
NORMALIZE = True
EWINDOW = -1.4 2.0

[Shell 1]
LSHELL = 2
IONS = 2

TRANSFORM = 1.0  0.0  0.0  0.0  0.0
            0.0  1.0  0.0  0.0  0.0
            0.0  0.0  0.0  1.0  0.0

So I wonder if it's still not available to consider the symmetry of VASP so far?

  1. VASP-ICHARG=5 problems. Actually, I am not sure when use turn this tag on, and I tried for two cases. Here are the details.
    2a) Without initial run with ICHARG=2, using only INCAR, KPOINTS, POTCAR and POSCAR to run, I got stuck but no error has been reported. Here are part of the log, and you may see the whole test in the attachment (initial-ICHARG5 folder):
 Reading from existing POTCAR
 LDA part: xc-table for (Slater+PW92), standard interpolation
 POSCAR, INCAR and KPOINTS ok, starting setup
 FFT: planning ... GRIDC
 FFT: planning ... GRID_SOFT
 FFT: planning ... GRID
 WAVECAR not read
 WARNING: chargedensity file is incomplete
 entering main loop
       N       E                     dE             d eps       ncg     rms          rms(c)
 ELPA: falling back to scaLAPACK
DAV:   1     0.194678777216E+03    0.19468E+03   -0.11478E+04  1716   0.105E+03
DAV:   2    -0.364410937904E+02   -0.23112E+03   -0.22584E+03  2148   0.269E+02
DAV:   3    -0.491754035442E+02   -0.12734E+02   -0.12702E+02  1992   0.787E+01
DAV:   4    -0.495377321012E+02   -0.36233E+00   -0.36235E+00  2760   0.114E+01

2b) Run with ICHARG=5 after an initial run with ICHARG=2, either GAMMA file nor vaspgamma.h5 is generated, and the code also got stuck, but at the first iteration (initial-ICHARG2 folder). Here is the log file:

 Reading from existing POTCAR
 LDA part: xc-table for (Slater+PW92), standard interpolation
 found WAVECAR, reading the header

 POSCAR, INCAR and KPOINTS ok, starting setup
 FFT: planning ... GRIDC
 FFT: planning ... GRID_SOFT
 FFT: planning ... GRID
 reading WAVECAR
 the WAVECAR file was read successfully
 charge-density read from file: SrVO3
 entering main loop
       N       E                     dE             d eps       ncg     rms          rms(c)
 ELPA: falling back to scaLAPACK

initial-ICHARG2.zip

initial-ICHARG5.zip

Originally posted by @Fenice-Jin in #108

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions