Stress calculation and cell relaxation

back to main page

To calculate the stress for a given structure, set input parameter ‘cal_stress’ to 1. The stress can be calculated in all types of ‘calculation’.

cal_stress 1

To optimize the cell shape, one needs to setup a few parameters in the INPUT file. First, the parameter ‘calculation’ should be set to cell-relax’. The ion relaxation is automatically done in the cell shape optimization. To optimize the cell shape under external pressures, setup ‘press1, press2, press3’ which are the external pressures along the a, b, c axes in KBar. The default values is zero. You may optimize the cell shape with some of axes are fixed. To do so, use ‘fixedaxes’ as described below. The default value is None. The parameter ‘stressthr’ is the threshold for stress.

Here is an example for the Si crystal.

suffix Si
calculation cell-relax
relax_nmax 100
force_thr_ev 0.01
relax_method cg
out_stru 1
relax_bfgs_init 0.5
press1 0
press2 0
press3 0
fixed_axes None
stress_thr 1

the threshold for stress, below which the cell relaxation is considered to be converged. The unit is KBar. The default threshold is 10 KBar.

Another example for cell relaxation calculation can be found in tests/109PWCR/.

back to top