If you set DIPOL in the INCAR file, VASP knowns where the center of the cluster is and will always use the correct position. Otherwise it will guess where it is by looking at the density. If can make a mistake and that then leads to the calculation not converging. Think of it this way: You should typically tell VASP where the center of the cell is, but if you forget, VASP will try to converge the calculation anyway using reasonable defaults.
You can see that in the output that you produced by looking at the line that I had suggested echo $file; grep 'direction.*min pos' $file | tail -n 5. If you set DIPOL in the INCAR file, VASP does not need to guess where the center is and always uses the same position. In the case that does not converge, VASP guesses very different positions in every iteration. In contrast, when VASP finds the correct position like in the last case, the calculation converges.
Code: Select all
DIPOL-position-centered/OUTCAR
direction 1 min pos 1, direction 2 min pos 1, direction 3 min pos 1,
direction 1 min pos 1, direction 2 min pos 1, direction 3 min pos 1,
direction 1 min pos 1, direction 2 min pos 1, direction 3 min pos 1,
direction 1 min pos 1, direction 2 min pos 1, direction 3 min pos 1,
direction 1 min pos 1, direction 2 min pos 1, direction 3 min pos 1,
No-DIPOL-position-centered/OUTCAR
direction 1 min pos 120, direction 2 min pos 193, direction 3 min pos 98,
direction 1 min pos 183, direction 2 min pos 224, direction 3 min pos 243,
direction 1 min pos 256, direction 2 min pos 130, direction 3 min pos 67,
direction 1 min pos 168, direction 2 min pos 86, direction 3 min pos 45,
direction 1 min pos 159, direction 2 min pos 82, direction 3 min pos 42,
No-DIPOL-position-shifted/OUTCAR
direction 1 min pos 97, direction 2 min pos 86, direction 3 min pos 94,
direction 1 min pos 96, direction 2 min pos 86, direction 3 min pos 93,
direction 1 min pos 95, direction 2 min pos 86, direction 3 min pos 92,
direction 1 min pos 94, direction 2 min pos 87, direction 3 min pos 92,
direction 1 min pos 93, direction 2 min pos 87, direction 3 min pos 92,