Force calculation and structure relaxation

back to main page

To calculate the atomic forces for a given structure without ion relaxation, set ‘calculation’ to ‘scf’, set input parameter ‘cal_force’ to 1.

calculation scf
cal_force 1

To relax the atom position without change cell shape, one needs to add a few more parameters in the INPUT file. Here is an example for the Si dimer. In this case, the forces are calculated by default.

calculation relax
gamma_only 1
relax_nmax 100
force_thr_ev 0.01
relax_method cg
out_stru 1
relax_bfgs_init 0.5

An example for structure relaxation calculation can be found at tests/108PWRE.

back to top