[Q-e-developers] Proposed code additions for 2D systems

Richard Andrew Richard.Andrew at up.ac.za
Fri Aug 31 14:35:59 CEST 2012


Dear QE team,

You requested we send any code additions we may have.   I work in 2D systems and I noticed most DFT codes have no way for you to relax the 2D cell shape while keeping the area constant.  The cell_dofree='shape' option in QE relaxes all degrees of freedom for the cell shape at constant volume which for 2D systems means also changing the vacuum layer.  I have modified the cell_base.f90 module to include a cell_dofree='2Dshape' option which will relax the in-plane (xy plane) cell shape while keeping the area (therefore the vacuum layer) constant.  This also required a change in the deviatoric.f90 code in the flib.  Please find attached these modified files for your consideration.  All modifications are marked between '! RICHARD' comment lines.

I also included in cell_base.f90 a cell_dofree='2Dxy' option where the xy  plane is truly free as you had suggested in your code comment for cell_dofree='xy'.

Regards,

Richard Charles Andrew


Postgraduate Student
Physics Department
University of Pretoria
South Africa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quantum-espresso.org/pipermail/developers/attachments/20120831/6f1307e3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cell_base_modified_RANDREW.f90
Type: application/octet-stream
Size: 30776 bytes
Desc: not available
URL: <http://lists.quantum-espresso.org/pipermail/developers/attachments/20120831/6f1307e3/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deviatoric_modified_RANDREW.f90
Type: application/octet-stream
Size: 2771 bytes
Desc: not available
URL: <http://lists.quantum-espresso.org/pipermail/developers/attachments/20120831/6f1307e3/attachment-0001.obj>


More information about the developers mailing list