<div>thanks for your reply ,I  changed the lambda=5.0 and used <br>   occupations=&#39;tetrahedra&#39;  but the magnetization still did not converge to the initial value ,but the total energy converged.</div>
<div>I do not know what is the problem.<br><br></div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div> <br></div>
<div class="gmail_quote">2009/3/11 Gabriele Sclauzero <span dir="ltr">&lt;<a href="mailto:sclauzer@sissa.it" target="_blank">sclauzer@sissa.it</a>&gt;</span> 
<div>
<div></div>
<div class="h5"><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div><br><br>yumin qian wrote:<br>&gt;   Dear PWSCF users<br>&gt;    I am doing calculate on the antiferromagnetic ground state of<br>&gt; LiNiO2, I want to plot the energy as a function of fixed spin moment  of<br>&gt; Ni atom.<br>
&gt;   the following is my in put file for pwscf<br>&gt;<br>&gt;  &amp;system<br>&gt;     ibrav = 0, nat=16 , ntyp= 4,<br>&gt;     ecutwfc = 35.0, ecutrho = 200.0,<br>&gt;     occupations=&#39;smearing&#39;, smearing=&#39;gaussian&#39;, degauss=0.02<br>
<br></div>First of all a word of caution: this value of degauss may not be low enough to converge<br>the magnetization (even if it is more than enough to converge the total energy). Also<br>ecutrho may not be high enough to converge total energy, since you&#39;re using US PPs.<br>

<div>
<div></div>
<div><br>&gt;     nspin=2,constrained_magnetization=&#39;atomic&#39;,<br>&gt; starting_magnetization(1)= 0.0,<br>&gt; starting_magnetization(2)= 1.8,<br>&gt; starting_magnetization(3)=-1.8,<br>&gt; starting_magnetization(4)= 0.0,<br>
&gt; lda_plus_u=.true.<br>&gt; Hubbard_U(1)=0.0<br>&gt; Hubbard_U(2)=3.0<br>&gt; Hubbard_U(3)=3.0<br>&gt; Hubbard_U(4)=0.0<br>&gt;   /<br>&gt;  &amp;electrons<br>&gt;     diagonalization=&#39;david&#39;,<br>&gt;     conv_thr = 1.0e-6,<br>
&gt;     mixing_beta = 0.5,<br>&gt;  /<br>&gt; ATOMIC_SPECIES<br>&gt; Li     *6.914*      Li.pbe-n-mt_bw.UPF<br>&gt; Ni1   *58.6934*    Ni.pbe-n-van.UPF<br>&gt; Ni2   *58.6934*    Ni.pbe-n-van.UPF<br>&gt; O   15.9994      O.pbe-van_bm.UPF<br>
&gt;<br>&gt; and the output file gives<br>&gt;<br>&gt;  ==============================================================================<br>&gt;      atom number    5 relative position :   -0.1652   0.2839   0.5083<br>&gt;      charge :     2.373353<br>
&gt;      magnetization :          1.544423<br>&gt;      magnetization/charge:    0.650735<br>&gt;      constrained moment :     1.800000<br>&gt;<br>&gt;  ==============================================================================<br>
&gt; the output file gives a magnetic moment of 1.5444 ,how should I do to<br>&gt; make the calculation  converge to the starting_magnetization 1.8 ?<br><br></div></div>You can increase the lambda parameter which premultiplies the penalty energy added in<br>
v_of_rho. In the limit your constraint gets satisfied, the energy should not depend on<br>which lambda you chose, but you may want to verify this.<br>The default should be 1. I think is not enough to force the magnetization on the atom.<br>
<br>However, I think that the magnetization of a single atom inside a bulk material or in<br>general when it forms covalent bonds is not a well defined quantity, so I would not care<br>too much of the precise number I get for the magnetization, since it may well change if I<br>
change which portion of charge is attributed to which atom (remember that you&#39;re using a<br>plane waves code, and PWs do not know anything about atomic orbitals a priori...)<br><br>HTH<br><br>GS<br>
<div><br>&gt;<br>&gt; I change the starting_magnetization(2) and starting_magnetization(3)<br>&gt; from 1.8 to 0.8 , then I will get the E(m) curve.  how should I do ,<br>&gt; does anyone give<br>&gt; a suggestion ?<br>&gt; --<br>
&gt; Sincerely Y. M. Qian<br>&gt; Lab.of Condensed Matter Theory and Materials Computation<br>&gt; Institute of Physics<br>&gt; Chinese Academy of Sciences<br>&gt; Tel:  + 8610 8264 9147<br></div>&gt; <a href="mailto:E-Mail%3Ayuminqian@gmail.com" target="_blank">E-Mail:yuminqian@gmail.com</a> &lt;mailto:<a href="mailto:E-Mail%253Ayuminqian@gmail.com" target="_blank">E-Mail%3Ayuminqian@gmail.com</a>&gt;<br>

<div>&gt; P.O.Box 603   Beijing 100190<br>&gt; China<br>&gt;<br>&gt;<br></div>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________<br>
&gt; Pw_forum mailing list<br>&gt; <a href="mailto:Pw_forum@pwscf.org" target="_blank">Pw_forum@pwscf.org</a><br>&gt; <a href="http://www.democritos.it/mailman/listinfo/pw_forum" target="_blank">http://www.democritos.it/mailman/listinfo/pw_forum</a><br>
<br>--<br><br><br>o ------------------------------------------------ o<br>| Gabriele Sclauzero, PhD Student                  |<br>| c/o:   SISSA &amp; CNR-INFM Democritos,              |<br>|        via Beirut 2-4, 34014 Trieste (Italy)     |<br>
| email: <a href="mailto:sclauzer@sissa.it" target="_blank">sclauzer@sissa.it</a>                         |<br>| phone: +39 040 3787 511                          |<br>| skype: gurlonotturno                             |<br>
o ------------------------------------------------ o<br>_______________________________________________<br>Pw_forum mailing list<br><a href="mailto:Pw_forum@pwscf.org" target="_blank">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></div></div>
<div>
<div></div>
<div class="h5"><br><br clear="all"><br>-- <br>Sincerely Y. M. Qian <br>Lab.of Condensed Matter Theory and Materials Computation <br>Institute of Physics <br>Chinese Academy of Sciences<br>Tel:  + 8610 8264 9147<br><a href="mailto:E-Mail%3Ayuminqian@gmail.com" target="_blank">E-Mail:yuminqian@gmail.com</a> <br>
</div></div>
<div>
<div></div>
<div class="h5">P.O.Box 603   Beijing 100190<br>China <br><br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Sincerely Y. M. Qian <br>Lab.of Condensed Matter Theory and Materials Computation <br>Institute of Physics <br>
Chinese Academy of Sciences<br>Tel:  + 8610 8264 9147<br><a href="mailto:E-Mail%3Ayuminqian@gmail.com">E-Mail:yuminqian@gmail.com</a> <br>P.O.Box 603   Beijing 100190<br>China <br><br>