Dear professor  Andrea Dal Corso:<div><div>Thank you for you quickly reply.</div><div>I follow your suggestion in scf calculation and add <i>noncolin= .TRUE.“</i> with <i>occupations   = &#39;fixed&#39;</i></div><div>The calculated <i>absolute magnetization    =     <b>0.01</b> Bohr mag/cell </i>in scf output. </div>


<div>However in LSDA+smearing calculation, <i>absolute magnetization    =  <b>5.68</b> Bohr mag/cell</i>.</div><div>The following is my <a href="http://scf.in" target="_blank">scf.in</a>. Is there anything wrong?</div><div>

Thank you very much:)</div><div><br></div><div>
<div><div>&amp;CONTROL</div><div>calculation   = &#39;scf&#39;</div><div>title         = &#39;G-10-scf&#39;</div><div>verbosity     = &#39;high&#39;</div><div>restart_mode  = &#39;from_scratch&#39;</div><div>wf_collect    = .FALSE.</div>


<div>tstress       = .TRUE.</div><div>tprnfor       = .TRUE.</div><div>prefix        = &#39;G-10-scf&#39;</div><div>etot_conv_thr = 1.0e-4</div><div>forc_conv_thr = 1.0e-3</div><div>disk_io       = &#39;low&#39;</div><div>


pseudo_dir    = &#39;~/espresso-4.2.1/pseudo&#39;</div><div>/</div><div><br></div><div>&amp;SYSTEM</div><div>ibrav         = 2</div><div>celldm        = 14.20419765 !bohr</div><div>nat           = 10</div><div>ntyp          = 4</div>


<div>ecutwfc       = 70</div><div>ecutrho       = 560</div><div>nbnd          = 100</div><div>nosym         = .FALSE.</div><div>occupations   = &#39;fixed&#39;</div><div>noncolin      = .TRUE.</div><div>/</div></div><div>


<br></div><div>&amp;ELECTRONS</div><div>electron_maxstep  = 100</div><div>conv_thr          = 1.0e-7</div><div>mixing_mode       = &#39;plain&#39;</div><div>mixing_beta       = 0.7</div><div>mixing_ndim       = 8</div><div>


diagonalization   = &#39;david&#39;</div><div>diago_david_ndim  = 4</div><div>/</div><div><br></div><div>ATOMIC_SPECIES</div><div> Mn1 55  Mn.pbe-sp-van.UPF</div><div> Mn2 55  Mn.pbe-sp-van.UPF</div><div> Ca  40  Ca.pbe-nsp-van.UPF</div>


<div> O  16  O.pbe-rrkjus.UPF</div><div><br></div><div>ATOMIC_POSITIONS {crystal}</div><div> Mn1 0.00    0.00    0.00</div><div> Mn2 0.50    0.50    0.50</div><div> Ca  0.25    0.25    0.25</div><div> Ca  0.75    0.75    0.75</div>


<div> O   0.75    0.25    0.75</div><div> O   0.25    0.75    0.25</div><div> O   0.75    0.75    0.25</div><div> O   0.25    0.25    0.75</div><div> O   0.25    0.75    0.75</div><div> O   0.75    0.25    0.25</div><div>


<br></div><div><br></div><div>K_POINTS {automatic}</div><div>6 6 6 0 0 0</div></div><div><br></div><div><br></div><br><div class="gmail_quote">On Wed, Jan 19, 2011 at 4:41 PM, Andrea Dal Corso <span dir="ltr">&lt;<a href="mailto:dalcorso@sissa.it" target="_blank">dalcorso@sissa.it</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div><br>
On Wed, 2011-01-19 at 16:27 +0800, xirainbow wrote:<br>
&gt; In 4.2.1 manual, it is said that:If .zue=<a href="http://true.is" target="_blank">true.is</a> an alternative<br>
&gt; algorithm, different from the default one (if trans .and. epsil ) The<br>
&gt; results should be the same within numerical noise.<br>
&gt;<br>
&gt;<br>
&gt; However, I get wrong &quot;effective charges&quot; in zue=true in AFM insulator<br>
&gt; CaMnO3 with 4.2.1<br>
&gt; These two Mn atoms are the same except antiparallel spin.<br>
&gt; In &quot;epsil+trans&quot;, effective charges of Mn1=7.79, Mn2=7.78;<br>
&gt; In &quot;zue&quot;             , effective charges of Mn1=3.1,   Mn2=51.2;<br>
&gt;<br>
&gt;<br>
&gt; I will describe my calculation procedure using 4.2.1 in short.<br>
&gt; 1:  I do scf calculation in <a href="http://scf.in" target="_blank">scf.in</a><br>
&gt; restart_mode  = &#39;from_scratch&#39;<br>
&gt; occupations   = &#39;smearing&#39;<br>
&gt; smearing      = &#39;gauss&#39;<br>
&gt; degauss       = 0.002<br>
&gt; starting_magnetization(1) = 1<br>
&gt; starting_magnetization(2) = -1<br>
&gt; starting_magnetization(3) = 0<br>
&gt; starting_magnetization(4) = 0<br>
&gt;<br>
&gt;<br>
&gt; 2: I do a scf calculation  in <a href="http://scf.in" target="_blank">scf.in</a><br>
&gt; restart_mode  = &#39;restart&#39;<br>
&gt; occupations               = &#39;fixed&#39;<br>
&gt; nspin                     = 2<br>
&gt; tot_magnetization         = 0<br>
&gt;<br>
&gt;<br>
&gt; 3: I do ph calculation with<br>
&gt; zue         = .TRUE. !the same with epsil and trans = TRUE<br>
&gt; (In this condition, effective charges of Mn1=3.1,   Mn2=51.2;)<br>
&gt; or with:<br>
&gt; epsil       = .TRUE. , trans       = .TRUE.<br>
&gt; (In this condition , effective charges of Mn1=7.79, Mn2=7.78;)<br>
&gt;<br>
&gt;<br>
&gt; (The reason is why I restart scf is below:<br>
&gt; &quot;starting_magnetization&quot; must be used with &quot;smearing&quot;. However,<br>
&gt; &quot;smearing&quot; will give a metal result. Effective charges can not be<br>
&gt; calculated for metal. But, CaMnO3 is really a insulator AFM.<br>
&gt; &quot;occupations=fixed&quot; can get a insulator result. However it must used<br>
&gt; with &quot;tot_magnetization&quot;. If I use &quot;tot_magnetization=0&quot;, I will get a<br>
&gt; PM no AFM state.<br>
&gt; In the end, I use &quot;smearing&quot;+&quot;starting_magnetization&quot; to get a AFM<br>
&gt; metal. Then I use &quot;fixed&quot;+&quot;tot_magnetization&quot; to get a AFM insulator.<br>
&gt; Is there any other good method to get a AFM insulator?)<br>
<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; The following my script for &quot;zue= .TRUE &quot;<br>
&gt; And I have attached output file of &quot;zue= .TRUE &quot; in accessary.<br>
&gt; Thanks:)<br>
<br>
</div></div>The phonon with LSDA + constraint is not programmed. So it will not<br>
work. If the AFM insulator is the ground state then you should obtain it<br>
with noncolin=.true. without constraint. In this case ph.x at gamma<br>
should work and you should get the correct effective charges. If not<br>
please provide the complete input.<br>
<br>
HTH,<br>
<br>
Andrea<br>
<div><div></div><div><br>
<br>
<br>
&gt;<br>
&gt; #*********************************************<br>
&gt; # scf-antimag-smearing<br>
&gt; cat&gt;<a href="http://scf.in" target="_blank">scf.in</a>&lt;&lt;EOF<br>
&gt; for vc-relax<br>
&gt; &amp;CONTROL<br>
&gt; calculation   = &#39;scf&#39;<br>
&gt; title         = &#39;G-10-scf&#39;<br>
&gt; verbosity     = &#39;high&#39;<br>
&gt; restart_mode  = &#39;from_scratch&#39;<br>
&gt; wf_collect    = .FALSE.<br>
&gt; tstress       = .TRUE.<br>
&gt; tprnfor       = .TRUE.<br>
&gt; prefix        = &#39;G-10-scf&#39;<br>
&gt; etot_conv_thr = 1.0e-4<br>
&gt; forc_conv_thr = 1.0e-3<br>
&gt; disk_io       = &#39;low&#39;<br>
&gt; pseudo_dir    = &#39;./&#39;<br>
&gt; /<br>
&gt;<br>
&gt;<br>
&gt; &amp;SYSTEM<br>
&gt; ibrav         = 2<br>
&gt; celldm        = 14.20419765<br>
&gt; nat           = 10<br>
&gt; ntyp          = 4<br>
&gt; nbnd          = 50<br>
&gt; ecutwfc       = 70<br>
&gt; ecutrho       = 560<br>
&gt; nosym         = .FALSE.<br>
&gt; !nosym_evc     = .TRUE.<br>
&gt; !noinv         = .TRUE.<br>
&gt; occupations   = &#39;smearing&#39;<br>
&gt; smearing      = &#39;gauss&#39;<br>
&gt; degauss       = 0.002<br>
&gt; starting_magnetization(1) = 1<br>
&gt; starting_magnetization(2) = -1<br>
&gt; starting_magnetization(3) = 0<br>
&gt; starting_magnetization(4) = 0<br>
&gt; !occupations               = &#39;fixed&#39;<br>
&gt; nspin                     = 2<br>
&gt; !tot_magnetization         = 0<br>
&gt; /<br>
&gt;<br>
&gt;<br>
&gt; &amp;ELECTRONS<br>
&gt; electron_maxstep  = 100<br>
&gt; conv_thr          = 1.0e-7<br>
&gt; mixing_mode       = &#39;plain&#39;<br>
&gt; mixing_beta       = 0.7<br>
&gt; mixing_ndim       = 8<br>
&gt; diagonalization   = &#39;david&#39;<br>
&gt; diago_david_ndim  = 4<br>
&gt; /<br>
&gt;<br>
&gt;<br>
&gt; ATOMIC_SPECIES<br>
&gt;  Mn1 55  Mn.pbe-sp-van.UPF<br>
&gt;  Mn2 55  Mn.pbe-sp-van.UPF<br>
&gt;  Ca  40  Ca.pbe-nsp-van.UPF<br>
&gt;  O  16  O.pbe-rrkjus.UPF<br>
&gt;<br>
&gt;<br>
&gt; ATOMIC_POSITIONS {crystal}<br>
&gt;  Mn1 0.00    0.00    0.00<br>
&gt;  Mn2 0.50    0.50    0.50<br>
&gt;  Ca  0.25    0.25    0.25<br>
&gt;  Ca  0.75    0.75    0.75<br>
&gt;  O   0.75    0.25    0.75<br>
&gt;  O   0.25    0.75    0.25<br>
&gt;  O   0.75    0.75    0.25<br>
&gt;  O   0.25    0.25    0.75<br>
&gt;  O   0.25    0.75    0.75<br>
&gt;  O   0.75    0.25    0.25<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; K_POINTS {automatic}<br>
&gt; 6 6 6 0 0 0<br>
&gt; EOF<br>
&gt; ./dopw &lt;<a href="http://scf.in" target="_blank">scf.in</a> &gt;G-scf-10-smearing.out<br>
&gt;<br>
&gt;<br>
&gt; # scf-antimag-insulator<br>
&gt; cat&gt;<a href="http://scf.in" target="_blank">scf.in</a>&lt;&lt;EOF<br>
&gt; for vc-relax<br>
&gt; &amp;CONTROL<br>
&gt; calculation   = &#39;scf&#39;<br>
&gt; title         = &#39;G-10-scf&#39;<br>
&gt; verbosity     = &#39;high&#39;<br>
&gt; restart_mode  = &#39;restart&#39;<br>
&gt; wf_collect    = .FALSE.<br>
&gt; tstress       = .TRUE.<br>
&gt; tprnfor       = .TRUE.<br>
&gt; prefix        = &#39;G-10-scf&#39;<br>
&gt; etot_conv_thr = 1.0e-4<br>
&gt; forc_conv_thr = 1.0e-3<br>
&gt; disk_io       = &#39;low&#39;<br>
&gt; pseudo_dir    = &#39;./&#39;<br>
&gt; /<br>
&gt;<br>
&gt;<br>
&gt; &amp;SYSTEM<br>
&gt; ibrav         = 2<br>
&gt; celldm        = ${lattic_parameter} !bohr<br>
&gt; nat           = 10<br>
&gt; ntyp          = 4<br>
&gt; nbnd          = 50<br>
&gt; ecutwfc       = 70<br>
&gt; ecutrho       = 560<br>
&gt; nosym         = .FALSE.<br>
&gt; !nosym_evc     = .TRUE.<br>
&gt; !noinv         = .TRUE.<br>
&gt; !occupations   = &#39;smearing&#39;<br>
&gt; !smearing      = &#39;gauss&#39;<br>
&gt; !degauss       = 0.002<br>
&gt; !starting_magnetization(1) = 1<br>
&gt; !starting_magnetization(2) = -1<br>
&gt; !starting_magnetization(3) = 0<br>
&gt; !starting_magnetization(4) = 0<br>
&gt; occupations               = &#39;fixed&#39;<br>
&gt; nspin                     = 2<br>
&gt; tot_magnetization         = 0<br>
&gt; /<br>
&gt;<br>
&gt;<br>
&gt; &amp;ELECTRONS<br>
&gt; electron_maxstep  = 100<br>
&gt; conv_thr          = 1.0e-7<br>
&gt; mixing_mode       = &#39;plain&#39;<br>
&gt; mixing_beta       = 0.7<br>
&gt; mixing_ndim       = 8<br>
&gt; diagonalization   = &#39;david&#39;<br>
&gt; diago_david_ndim  = 4<br>
&gt; /<br>
&gt;<br>
&gt;<br>
&gt; ATOMIC_SPECIES<br>
&gt;  Mn1 55  Mn.pbe-sp-van.UPF<br>
&gt;  Mn2 55  Mn.pbe-sp-van.UPF<br>
&gt;  Ca  40  Ca.pbe-nsp-van.UPF<br>
&gt;  O  16  O.pbe-rrkjus.UPF<br>
&gt;<br>
&gt;<br>
&gt; ATOMIC_POSITIONS {crystal}<br>
&gt;  Mn1 0.00    0.00    0.00<br>
&gt;  Mn2 0.50    0.50    0.50<br>
&gt;  Ca  0.25    0.25    0.25<br>
&gt;  Ca  0.75    0.75    0.75<br>
&gt;  O   0.75    0.25    0.75<br>
&gt;  O   0.25    0.75    0.25<br>
&gt;  O   0.75    0.75    0.25<br>
&gt;  O   0.25    0.25    0.75<br>
&gt;  O   0.25    0.75    0.75<br>
&gt;  O   0.75    0.25    0.25<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; K_POINTS {automatic}<br>
&gt; 6 6 6 0 0 0<br>
&gt; EOF<br>
&gt; ./dopw &lt;<a href="http://scf.in" target="_blank">scf.in</a> &gt;G-scf-10-insulator.out<br>
&gt;<br>
&gt;<br>
&gt; #for phonon-antimag<br>
&gt; cat&gt;<a href="http://ph.in" target="_blank">ph.in</a> &lt;&lt;EOF<br>
&gt; for phonon<br>
&gt; &amp;INPUTPH<br>
&gt; amass(1)    = 55<br>
&gt; amass(2)    = 55<br>
&gt; amass(3)    = 40<br>
&gt; amass(4)    = 16<br>
&gt; outdir      = &quot;./&quot;<br>
&gt; prefix      = &#39;G-10-scf&#39; !must be the same with scf<br>
&gt; ldisp       = .FALSE.<br>
&gt; niter_ph    = 100<br>
&gt; tr2_ph      = 1.0e-12<br>
&gt; alpha_mix(1)= 0.7<br>
&gt; nmix_ph     = 4<br>
&gt; iverbosity  = 1<br>
&gt; fildyn      = &#39;matdyn&#39;<br>
&gt; !epsil       = .TRUE. !Do not set epsil to .true. for metallic system<br>
&gt; or q/=0<br>
&gt; !trans       = .TRUE. !if trans .and. epsil effective charges are<br>
&gt; calculated<br>
&gt; zue         = .TRUE. !the same with epsil and trans = TRUE<br>
&gt; /<br>
&gt; 0.0 0.0 0.0<br>
&gt; EOF<br>
&gt;<br>
&gt;<br>
&gt; ./doph &lt;<a href="http://ph.in" target="_blank">ph.in</a> &gt;G-ph-10.out<br>
&gt; done<br>
&gt; #*********************************************<br>
&gt;<br>
&gt; --<br>
&gt; ____________________________________<br>
&gt; Hui Wang<br>
&gt; School of physics, Fudan University, Shanghai, China<br>
</div></div>&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>
Andrea Dal Corso                    Tel. 0039-040-3787428<br>
SISSA, Via Bonomea 265              Fax. 0039-040-3787249<br>
I-34136 Trieste (Italy)             e-mail: <a href="mailto:dalcorso@sissa.it" target="_blank">dalcorso@sissa.it</a><br>
<br>
<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><br><br clear="all"><br>-- <br>____________________________________<br>Hui Wang<br>School of physics, Fudan University, Shanghai, China<br>
</div>