Hi, Please check INPUT_PW document, you will find below description:<br><table style="border: 2px solid rgb(181, 181, 0); margin-bottom: 10px; table-layout: auto; background-color: rgb(255, 255, 255);" width="100%"><tbody><tr>
<th style="padding: 2px 2px 2px 10px; background: rgb(255, 255, 153) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" align="left" valign="top" width="20%">
<a name="id2736688">if_pos(1)</a>, <a name="if_pos(2)"></a><a name="id2736693">if_pos(2)</a>, <a name="if_pos(3)"></a><a name="id2736698">if_pos(3)</a>
</th>
<td style="padding: 2px 2px 2px 5px; background: rgb(255, 255, 195) none repeat scroll 0% 0%; text-align: left; vertical-align: top; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">
INTEGER</td>
</tr>
<tr>
<td style="padding: 2px 10px; background: rgb(255, 255, 195) none repeat scroll 0% 0%; text-align: right; vertical-align: top; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">
<i>Default:</i></td>
<td style="padding: 2px 2px 2px 5px; background: rgb(255, 243, 217) none repeat scroll 0% 0%; text-align: left; vertical-align: top; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">
1
</td>
</tr>
<tr><td colspan="2" align="left" valign="top"><blockquote><pre>component i of the force for this atom is multiplied by if_pos(i),<br>which must be either 0 or 1. Used to keep selected atoms and/or<br>selected components fixed in meta-dynamics, neb, smd, MD dynamics or<br>
structural optimization run.<br> </pre></blockquote></td></tr></tbody></table>If you want to fix some atom or some direction , just set if_pos(i) =0 .<br><br>Regards,<br><br>Hai-Ping<br><br><div class="gmail_quote">
On Thu, Sep 24, 2009 at 5:50 AM, Manoj Srivastava <span dir="ltr"><<a href="mailto:manoj@phys.ufl.edu">manoj@phys.ufl.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear PWSCF users,<br>
This might have been answered previously, but I was unable to find<br>
it. How can one relax only z coordinate of atoms inside unit cell using<br>
PW? In other words how can I constrain x and y coordinates of atoms during<br>
relaxation?<br>
<br>
<br>
Regards,<br>
Manoj Srivastava<br>
University of Florida<br>
Gainesville, FL<br>
<br>
_______________________________________________<br>
Pw_forum mailing list<br>
<a href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>
<a href="http://www.democritos.it/mailman/listinfo/pw_forum" target="_blank">http://www.democritos.it/mailman/listinfo/pw_forum</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Hai-Ping Lan <br>Department of Electronics ,<br>Peking University , Bejing, 100871<br><a href="mailto:lanhaiping@gmail.com">lanhaiping@gmail.com</a>, <a href="mailto:hplan@pku.edu.cn">hplan@pku.edu.cn</a><br>