Stress calculations

Questions and discussions regarding the use of Qbox
Forum rules
You must be a registered user to post in this forum. Registered users may also post new topics if they consider that their subject does not correspond to any topic already present on the forum.
Post Reply
fgygi
Site Admin
Posts: 151
Joined: Tue Jun 17, 2008 7:03 pm

Stress calculations

Post by fgygi »

The calculation of the stress tensor using version 1.44.0 is inaccurate when very small unit cells are used (e.g. cells containing only one atom). This happens when the unit cell dimensions are comparable to the width of the gaussian pseudocharge distributions (parameter rcps, initialized to 1.5 (a.u.) in AtomSet.C.
This bug is corrected in 1.45.0.
gpanchap
Posts: 11
Joined: Mon May 24, 2010 1:25 am

Re: Stress calculations

Post by gpanchap »

I am trying to understand the different 'sigma' terms in the output file, and its relation to the thermodynamic 'pressure'. I guess the sigma_eks_** comes from the Kohn-Sham total energy and the eks_kin_** is the contribution from the 'instantaneous' temperature (temp_ion). So that the instantaneous pressure is (1/3) Tr[sigma_eks_*+sigma_kin_*], (note there is no negative sign in here as one would otherwise expect. ). I am lost at what sigma_** could be though, as it is not the sum of eks and kin terms. Thanks.
fgygi
Site Admin
Posts: 151
Joined: Tue Jun 17, 2008 7:03 pm

Re: Stress calculations

Post by fgygi »

There are several possible sign conventions that can be adopted to describe stress and pressure. Qbox uses the following convention (which happens to agree with that adopted in the Quantum Espresso package): The sign of the stress <sigma_xx> is such that a positive value of <sigma_xx> indicates a tendency of the cell to expand. The contribution to the stress from the Kohn-Sham energy is sigma_eks = - dEks/dV (or rather the appropriate tensor equivalent expression). The kinetic contribution to the stress is coming from the instantaneous ionic temperature and is positive, i.e. always makes the cell expand. The externally applied stress is defined by the Qbox variable ext_stress. Giving a positive value to ext_stress will tend to compress the cell. The total stress is <sigma_xx> = sigma_eks + sigma_kin - sigma_ext. With this convention, the total stress is what drives the cell dynamics (e.g. if cell_dyn == SD): if sigma > 0, the cell will expand, if sigma < 0, the cell will shrink. Note that in the absence of external stress, sigma is the sum of sigma_eks and sigma_kin.
Post Reply