Total energy vs volume

160 views
Skip to first unread message
Assigned to kejiang...@gmail.com by me

xiaoliang

unread,
Feb 3, 2008, 9:31:24 AM2/3/08
to cp2k
Dear All,

I try to get the total energy vs volume curve. But there is a energy
jump in the curve when I decrease the volume by some percent. It is
caused probabely by the different numbers of PW_GRID points at
different volumes. Is there a way to fix the numbers of PW_points?

Thanks

xiaoliang

Teodoro Laino

unread,
Feb 3, 2008, 10:49:24 AM2/3/08
to cp...@googlegroups.com
Hi xiaoliang,

it's exactly as you said.. the jumps are caused by the different
number of PW_GRID points.

As far as I know it should be possible to use the same number of grid
points specifying a reference cell
in the cell section.
The reference cell will always be the same (the initial one) and you
can change the "normal" cell as you wish. The number
of grid points should be computed always according the reference cell..
Just try and let us know the result ;-)

Teo

xiaoliang

unread,
Feb 3, 2008, 1:04:51 PM2/3/08
to cp2k
Hi Teo,

Thanks for your help. I have fix the reference cell. I got a smooth
curve.

I wonder how cp2k calculate the number of grid points? Because If I
change the size of reference cell, the number of grid points is
changed as well, I think. Then do we need to make energy vs reference
cell size plot to get energy convergece, like the test for energy vs
cutoff ?


cheers

xiaoliang

Teodoro Laino

unread,
Feb 3, 2008, 1:25:08 PM2/3/08
to cp...@googlegroups.com

On 3 Feb 2008, at 19:04, xiaoliang wrote:

I wonder how cp2k calculate the number of grid points? Because If I

change the size of reference cell, the number of grid points is

changed as well, I think. Then do we need to  make energy vs reference

cell size plot to get energy convergece, like the test for energy vs

cutoff ?


In principle yes.. but you would discover that to get "full convergence" you should reach extremely high cutoff
(unaffordable for standard calculations).
However, the nice thing is that the absolute energy is just shifted and the shape of the potential energy  does not change 
sensibly. This makes feasible to use a relatively low cutoff (of course too small creates problems as well..).
"Generally speaking" a cutoff of around 300 Ry is most of the time enough.. of course the real good number depends on the
nature of your basis set, pseudo, XC.

Ciao,
Teo

Axel

unread,
Feb 3, 2008, 2:47:41 PM2/3/08
to cp2k
hi all,

a few additional comments...

On Feb 3, 1:25 pm, Teodoro Laino <teodoro.la...@gmail.com> wrote:
> On 3 Feb 2008, at 19:04, xiaoliang wrote:
>
> > I wonder how cp2k calculate the number of grid points? Because If I
> > change the size of reference cell, the number of grid points is

the number of grid points is determined by the density cutoff and
the grids supported by the FFT libraries.

> > changed as well, I think. Then do we need to make energy vs reference
> > cell size plot to get energy convergece, like the test for energy vs
> > cutoff ?
>
> In principle yes.. but you would discover that to get "full
> convergence" you should reach extremely high cutoff
> (unaffordable for standard calculations).
> However, the nice thing is that the absolute energy is just shifted
> and the shape of the potential energy does not change
> sensibly. This makes feasible to use a relatively low cutoff (of
> course too small creates problems as well..).

this is a problem that is discussed a lot on mailing lists dedicated
to plane-wave pseudopotential calculations, particularly in
combination
with variable-cell MD. for details, one has to dig out the proper
text books or articles/reviews but in short.

- you do not have to increase the basis set until the total
energy is converged. most properties converge faster.
- forces converge very fast, stress tensor less so. so one needs
to have a larger basis set/cutoff for an accuracte stress tensor.
this has to be tested on a case-by-case basis.
- with variable cell (or using a reference cell) you have the problem,
that you keep using the same grid for everything, i.e. you are doing
not a constant cutoff/basis scheme, but a constant plane wave scheme
which means your effective cutoff changes with the box size.

in my opinion, the best way to get an accurate energy vs. volume plot
(e.g. to fit against an equation of state) is to use an fft library
with many supported grids (FFTW2/3), choose a cutoff so that the jumps
are tolerably 'small' and the calculation is not impossible (i.e.
something
20-50% larger than what you would use for an MD or a geometry
optimization).
if you fix the grid to get a smooth plot, you'll have an unbalanced
result.
for increasing volume your effective density cutoff will decrease
gradually,
it is better if the energy jumps around and you "clean" it with the
EOS fit.

> "Generally speaking" a cutoff of around 300 Ry is most of the time
> enough.. of course the real good number depends on the
> nature of your basis set, pseudo, XC.

nod. one important thing about all these components is, that they are
not completely independent, so one cannot fully test each of them
individually and has to approach "convergence" gradually in several
iterative steps. there are quite a few "rule of thumb" guidelines and
most of them work, but the always have to be verified and there is
always a chance that the particular rule, that you depend on, does not
apply to your specific case.

or shorter: the more flexible and powerful a method or software,
the more options you have to shoot yourself in the foot and the
more it hurts. ;-)

cheers,
axel.


> Ciao,
> Teo
Reply all
Reply to author
Forward
0 new messages