~nickpapior/siesta/low-D-stress

Viewing all changes in revision 1070.

  • Committer: Nick Papior
  • Date: 2019-02-14 10:00:14 UTC
  • Revision ID: nickpapior@gmail.com-20190214100014-pnax8vnrua8363ep
Added 1D and 2D stress tensor calculations

The problem with low-D materials is that stress is "per volume",
but since vacuum is independent in a slab calculation the stress will
be variable depending on the amount of vacuum.

What one *really* should do is to use the volume of the slab along the
vacuum direction so it may be fixed depending on the extend of the slab.
This poses additional problems since how do you decide the slab thickness?
- vdW bond-lengths
- orbital radii
- or 3rd?

This amends output to do the simplest thing but forces users to do post-processing.
The vacuum region is divided out and thus change the units depending on the dimensionality.
- 2D == eV/Ang^2
- 1D == eV/Ang

Then the user can them-selves determine the actual height/area of the slab/chain.

Note that the regular stress tensors are still printed out, but now an additional
block is added.

TODO: these stress's should probably be the ones used for relaxations and var-cell
      calculations?

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: