<div dir="ltr"><div>It is easier to figure out what the various "cell_dofree" options do from the code than from the documentation: look for routine 'init_dofree" in Modules/cell_base.f90 (iforceh(i,j)=0 means "keep component i of basis vector j fixed")<br><br></div>Paolo<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 25, 2017 at 12:19 PM, BARRETEAU Cyrille <span dir="ltr"><<a href="mailto:cyrille.barreteau@cea.fr" target="_blank">cyrille.barreteau@cea.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div bgcolor="#FFFFFF">
<div style="direction:ltr;font-family:Times New Roman;color:#000000;font-size:10pt">
Thanks for your reply but I am still not very sure I understand well the difference between the two options:<span class=""><br>
'xy' :     only v1_x and v2_y are moved<br>
'2Dxy' :     only x and y components are allowed to change<br>
<br></span>
When the vectors v1 and v2 are not orthogonal (which is my case) the option 'xy' is not appropriate ?<span class=""><br>
<br>
Cyrille<br>
<div><br>
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px"><font size="2">========================<br>
</font>
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px"><font size="2"></font>
<div style="font-family:Tahoma;font-size:13px"><font size="2"></font>
<div style="font-family:Tahoma;font-size:13px"><font size="2"></font>
<div style="font-family:Tahoma;font-size:13px"><b>Cyrille Barreteau</b><br>
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px"><font size="2"><font face="Times New Roman">CEA Saclay<span style="background-color:white"></span></font><font face="Times New Roman">,
</font><font face="Times New Roman"><font face="Times New Roman"><font face="Times New Roman">IRAMIS,</font> SPEC</font></font><font face="Times New Roman"><font face="Times New Roman"><span style="background-color:white"> Bat. 771<br>
</span></font>91191 Gif sur Yvette Cedex<span style="background-color:white"></span>, FRANCE 
</font><br>
<font face="Times New Roman"><font face="Times New Roman">~~~~~~~~~~~~~~~~~~~~~~~~~~~~</font><br>
</font><font face="Times New Roman"><font face="Times New Roman"><font face="Times New Roman"><a href="tel:+33%201%2069%2008%2038%2056" value="+33169083856" target="_blank">+33 1 69 08 38 56</a> /</font></font></font><font face="Times New Roman"><font face="Times New Roman"><font face="Times New Roman"><font face="Times New Roman"><font face="Times New Roman">+33 
 6 47 53 66 52  (mobile)  </font></font></font> </font></font></font><br>
<font face="Times New Roman">email:     <a href="mailto:cyrille.barreteau@cea.fr" target="_blank">cyrille.barreteau@cea.fr</a> </font><font face="Times New Roman"><br>
Web:     <a href="http://iramis.cea.fr/Pisp/cyrille.barreteau/" target="_blank">http://iramis.cea.fr/Pisp/<wbr>cyrille.barreteau/</a></font><font size="2"><br>
</font><font size="2">========================</font></div>
</div>
</div>
</div>
<span style="background-color:white;font-family:Times New Roman"><font size="2" color="black"><span dir="ltr" style="font-size:10pt"><font size="2"><span style="font-size:16px"></span></font></span></font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</span><div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div id="m_-8613939430854290551divRpF304973" style="direction:ltr"><font size="2" face="Tahoma" color="#000000"><b>De :</b> <a href="mailto:pw_forum-bounces@pwscf.org" target="_blank">pw_forum-bounces@pwscf.org</a> [<a href="mailto:pw_forum-bounces@pwscf.org" target="_blank">pw_forum-bounces@pwscf.org</a>] de la part de Thomas Brumme [<a href="mailto:thomas.brumme@uni-leipzig.de" target="_blank">thomas.brumme@uni-leipzig.de</a>]<br>
<b>Envoyé :</b> mardi 25 juillet 2017 11:32<br>
<b>À :</b> <a href="mailto:pw_forum@pwscf.org" target="_blank">pw_forum@pwscf.org</a><br>
<b>Objet :</b> Re: [Pw_forum] vc-relax & cell_dofree<br>
</font><br>
</div><div><div class="h5">
<div></div>
<div>
<p>Dear Cyrille,</p>
<p><br>
</p>
<p>from the input description:<br>
<br>
'xy' :     only v1_x and v2_y are moved<br>
<br>
'2Dxy' :     only x and y components are allowed to change<br>
<br>
Thus, even in the case of cell_dofree='xy' I think the cell will change. Anyway, the deviation from 120 DEG is quite small (119.43 DEG if I'm not wrong) - I don't know if this could be do to numerical issues. Maybe try starting a new relaxation with a hexagonal
 cell but smaller in-plane lattice vector of ~99.1%</p>
<p><br>
</p>
<p>Cheerio</p>
<p><br>
</p>
<p>Thomas<br>
</p>
<br>
<div class="m_-8613939430854290551moz-cite-prefix">On 07/25/17 09:08, BARRETEAU Cyrille wrote:<br>
</div>
<blockquote type="cite">
<div style="direction:ltr;font-family:Times New Roman;color:#000000;font-size:10pt">
Dear QE community<br>
<br>
I have a question related to vc-relax and the option cell_dofree.<br>
I want to relax a 2D metal-organic framework (MOF) with hexagonal lattice (ibrav=4)<br>
Could you please explain what is the difference between cell-dofree=xy and cell_dofree=2Dxy?<br>
<br>
I have noticed that when using cell_dofree=2Dxy the final CELL_PARAMETER is no longer perfectly hexagonal (see below). Should I use cell_dofree=xy instead and why?<br>
<br>
final:<br>
CELL_PARAMETERS (alat= 25.44640422)<br>
   0.990921488  -0.000187347   0.000000000<br>
  -0.495622997   0.858299558   0.000000000<br>
   0.000000000   0.000000000   0.742630080<br>
<br>
Thanks in advance<br>
<br>
Cyrille<br>
<div><br>
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px"><font size="2">========================<br>
</font>
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px"><b>Cyrille Barreteau</b><br>
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px"><font size="2"><font face="Times New Roman">CEA Saclay<span style="background-color:white"></span></font><font face="Times New
                                                          Roman">,
</font><font face="Times
                                                          New Roman"><font face="Times
                                                          New Roman"><font face="Times
                                                          New Roman">IRAMIS,</font>
 SPEC</font></font><font face="Times
                                                          New Roman"><font face="Times
                                                          New Roman"><span style="background-color:white"> Bat. 771<br>
</span></font>91191 Gif sur Yvette Cedex<span style="background-color:white"></span>, FRANCE 
</font><br>
<font face="Times
                                                          New Roman"><font face="Times
                                                          New Roman">~~~~~~~~~~~~~~~~~~~~~~~~~~~~</font><br>
</font><font face="Times
                                                          New Roman"><font face="Times
                                                          New Roman"><font face="Times
                                                          New Roman">+33
 1 69 08 38 56 /</font></font></font><font face="Times
                                                          New Roman"><font face="Times
                                                          New Roman"><font face="Times
                                                          New Roman"><font face="Times
                                                          New Roman"><font face="Times
                                                          New Roman">+33 
 6 47 53 66 52  (mobile)  </font></font></font> </font></font></font><br>
<font face="Times
                                                          New Roman">email:    
<a class="m_-8613939430854290551moz-txt-link-abbreviated" href="mailto:cyrille.barreteau@cea.fr" target="_blank">
cyrille.barreteau@cea.fr</a> </font><font face="Times New Roman"><br>
Web:     <a href="http://iramis.cea.fr/Pisp/cyrille.barreteau/" target="_blank">
http://iramis.cea.fr/Pisp/<wbr>cyrille.barreteau/</a></font><font size="2"><br>
</font><font size="2">========================</font></div>
</div>
</div>
</div>
<span style="background-color:white;font-family:Times New Roman"><font size="2" color="black"><span dir="ltr" style="font-size:10pt"><font size="2"><span style="font-size:16px"></span></font></span></font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
</div>
</div>
<br>
<fieldset class="m_-8613939430854290551mimeAttachmentHeader"></fieldset> <br>
<pre>______________________________<wbr>_________________
Pw_forum mailing list
<a class="m_-8613939430854290551moz-txt-link-abbreviated" href="mailto:Pw_forum@pwscf.org" target="_blank">Pw_forum@pwscf.org</a>
<a class="m_-8613939430854290551moz-txt-link-freetext" href="http://pwscf.org/mailman/listinfo/pw_forum" target="_blank">http://pwscf.org/mailman/<wbr>listinfo/pw_forum</a></pre>
</blockquote>
<br>
<pre class="m_-8613939430854290551moz-signature" cols="72">-- 
Dr. rer. nat. Thomas Brumme
Wilhelm-Ostwald-Institute for Physical and Theoretical Chemistry
Leipzig University
Phillipp-Rosenthal-Strasse 31
04103 Leipzig

Tel:  <a href="tel:+49%20341%209736456" value="+493419736456" target="_blank">+49 (0)341 97 36456</a>

email: <a class="m_-8613939430854290551moz-txt-link-abbreviated" href="mailto:thomas.brumme@uni-leipzig.de" target="_blank">thomas.brumme@uni-leipzig.de</a>
</pre>
</div>
</div></div></div>
</div>
</div>

<br>______________________________<wbr>_________________<br>
Pw_forum mailing list<br>
<a href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>
<a href="http://pwscf.org/mailman/listinfo/pw_forum" rel="noreferrer" target="_blank">http://pwscf.org/mailman/<wbr>listinfo/pw_forum</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Paolo Giannozzi, Dip. Scienze Matematiche Informatiche e Fisiche,<br>Univ. Udine, via delle Scienze 208, 33100 Udine, Italy<br>Phone +39-0432-558216, fax +39-0432-558222<br><br></div></div></div></div></div>
</div>