Geometry optimization (NH₃)
Structure optimization of ammonia at the PBE-D3(BJ)/def2-SVP level. The jobex script repeats energy (ridft), gradient (rdgrad) and relaxation (statpt) steps until the changes of energy and gradient fall below the convergence thresholds.
The control file only describes the method: $coord file=coord holds the start structure, $atoms assigns basis =def2-SVP, $dft selects functional pbe, and $disp3 -bj adds the D3(BJ) correction, whose gradient rdgrad includes. With the option -ri, jobex calls the RI programs ridft and rdgrad; RI-J and the auxiliary basis are set up automatically in the first energy step. statpt runs with its default settings, and the C₃ᵥ point group is detected and kept during the optimization.
Convergence is signaled by the file GEO_OPT_CONVERGED. The optimized structure overwrites coord, the energies of all cycles are collected in the data group $energy, and job.last holds the output of the last cycle.
Run
In the directory that holds the files below:
jobex -ri -c 40 > jobex.log
control
$coord file=coord
$atoms
basis =def2-SVP
$dft
functional pbe
$disp3 -bj
$end
coord
$coord
0.00000000000000 0.00000000000000 0.22143053151368 n
1.77199050201387 0.00000000000000 -0.51667186112202 h
-0.88599525100694 1.53458732141280 -0.51667186112202 h
-0.88599525100694 -1.53458732141280 -0.51667186112202 h
$end