<div>Dear Stefaan,</div>  <div>Dear Laurence,</div>  <div>&nbsp;</div>  <div>Thank you very much&nbsp;for your useful and extended&nbsp;replies. I was just repeating my pseudo-potential calculations by this code by taking the number of k-points as minimum as possible.&nbsp;Now, by your comments I learn that these two minimization methods would agree (within at most 0.1 mRy/au) only for&nbsp;sufficiently large number of k points.</div>  <div>Thank you again for clarifying this point.</div>  <div>&nbsp;</div>  <div>&nbsp;Best Regards.<BR>&nbsp;Nasser Zare Dehnavi<BR><BR><B><I>Stefaan Cottenier &lt;Stefaan.Cottenier@fys.kuleuven.be&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>&gt; 3)I use RK=7 and mesh 18X18X18 for bulk and 10X10X1 for <BR>&gt; asupercell with 38 atoms and a surface cell(2X2) .I study about <BR>&gt; work function and I use from this parameters because :a)give me good <BR>&gt;
 value for workfunction and b)for avoid of computational cost <BR>&gt; of large parameters.<BR><BR>Don't take this personally, but these are very bad and even dangerous <BR>arguments. As computational physicists, we MUST NOT take the <BR>parameters that give us good agreement with experiment. We must take <BR>the parameters that give us numerically accurate results within the <BR>framework we work in (e.g. DFT-LDA). If we don't do that, we're just <BR>doing meaningless fitting, not physics. If it turns out you find the <BR>computational cost is too much for the quantity you want to study, <BR>then so be it. Put the problem aside and do something else instead of <BR>doing something meaningless. In your case, this means you must verify <BR>whether going to a larger RKmax or fine k-mesh does not change you <BR>work function to an amount that would be large enough to alter your <BR>physical conclusions. As long as you are not sure about this, there is <BR>no point in proceeding
 with the rest of your work.<BR><BR>There is a good reason why I spent some time writing this down: a bad <BR>approach to DFT studies affects the entire community. Imagine you come <BR>to some conclusion based on an unjustified small basis set. Perhaps <BR>you'll even make a prediction based on your results. Then an <BR>experimentalist tries to verify your prediction, and find it to be <BR>wrong. Obviously, the conclusion of his or her paper will be: DFT <BR>gives bad predictions. If this happens too often, then DFT gets an <BR>unjustified bad image, and few people will believe DFT predictions in <BR>the future, even if they are made with good basis sets. Our entire <BR>community has a responsibility in keeping up the credibility of DFT: <BR>there are enough places where it doesn't agree with experiment, we <BR>should not create additional ones by being too tolerant on numerical <BR>issues as basis set and k-mesh.<BR><BR>I hope you seriously think about this before
 continuing!<BR><BR>Now back to your problem:<BR><BR>As you apparently did not test the accuracy of your forces with <BR>respect to k-mesh and basis set, it might be that you are working with <BR>too much numerical noise on the forces, leading mini to an incorrect <BR>result. So test the accuracy of your forces.<BR><BR>This is an interesting issue:<BR><BR>&gt; with attention to this point that min-energy is obtained in <BR>&gt; smaller time by plot total energy versus distance of atom from <BR>&gt; surafce with respect to use of mini..<BR><BR>As the force is the gradient of the total energy surface, this <BR>statement cannot be true. Even if you don't use mini and displace the <BR>atoms yourself, it is worthwhile to calculate the force in the last <BR>iteration and plot not :ENE but the force as a function of <BR>displacement. It will show you much better in which direction and by <BR>which amount you have to displace, requiring less steps to find the <BR>equilibrium than
 if you use only the energy information. As a check, <BR>of course, you can look at the energies afterwards. If your numerical <BR>precision was OK, the zero of the force and the energy minimum must <BR>agree.<BR><BR>Stefaan<BR><BR><BR>Quoting naser zare <NASER_ZD2000@YAHOO.COM>:<BR><BR>&gt; Dear Stefaan,<BR>&gt; Thank you very much for your reply.<BR>&gt; I should mention that:<BR>&gt; 1)the discrepancy in position is 0.122A(1.544A for min-energy and <BR>&gt; 1.666 A for zero-force)<BR>&gt; 2)convergence criteria for energy is 0.0001ry and for charge is <BR>&gt; 0.002 and when I use from<BR>&gt; mini for force is 4 mry/au<BR>&gt; 3)I use RK=7 and mesh 18X18X18 for bulk and 10X10X1 for <BR>&gt; asupercell with 38 atoms and a surface cell(2X2) .I study about <BR>&gt; work function and I use from this parameters because :a)give me good <BR>&gt; value for workfunction and b)for avoid of computational cost <BR>&gt; of large parameters.<BR>&gt; 4)when I used mini , I move only
 one atom ( like when I obtain <BR>&gt; min of energy ) and all atoms of slab are fixed.<BR>&gt;<BR>&gt; I have a question,can I fell sure that point obtained from plot <BR>&gt; of total energy versus distance of atom from surafce is true <BR>&gt; point and my problem is calculation of force?with attention to this <BR>&gt; point that min-energy is obtained in smaller time by plot total <BR>&gt; energy versus distance of atom from surafce with respect to use <BR>&gt; of mini..<BR>&gt;<BR>&gt; thank you very much for your attention.<BR>&gt; Best Regards.<BR>&gt; Nasser Zare Dehnavi<BR>&gt;<BR>&gt;<BR>&gt; Stefaan Cottenier <STEFAAN.COTTENIER@FYS.KULEUVEN.BE>wrote:<BR>&gt;<BR>&gt; You need to provide more information, for instance:<BR>&gt;<BR>&gt; * How big is the discrepancy in position?<BR>&gt; * How well are your calculations converged and what are your<BR>&gt; convergence criteria?<BR>&gt; * Did you verify your basis set and k-mesh are well enough to provide<BR>&gt; good
 forces?<BR>&gt; * When you used mini, did you move only one atom, or all of them?<BR>&gt; *...<BR>&gt;<BR>&gt; Stefaan<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Quoting naser zare :<BR>&gt;<BR>&gt;&gt; Hello<BR>&gt;&gt; Dear all:<BR>&gt;&gt; I use from Wien2k 6.4. I want to obtain position of adsorption of<BR>&gt;&gt; atom on a surface.I do it in two way :1)I move atom towards<BR>&gt;&gt; surface step by step and I plot total energy<BR>&gt;&gt; versus distance from surface and I obtain point of min energy and<BR>&gt;&gt; 2)I relax position of atom by MINI, but these two point are not<BR>&gt;&gt; the same.on the other hand ,point that obtained by Mini has not<BR>&gt;&gt; lowest energy. I want to know reason of this problem .thank you<BR>&gt;&gt; very much for your attention.<BR>&gt;&gt; Best Regards.<BR>&gt;&gt; Nasser Zare Dehnavi<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; ---------------------------------<BR>&gt;&gt; Sucker-punch spam with award-winning
 protection.<BR>&gt;&gt; Try the free Yahoo! Mail Beta.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; --<BR>&gt; Stefaan Cottenier<BR>&gt; Instituut voor Kern- en Stralingsfysica<BR>&gt; K.U.Leuven<BR>&gt; Celestijnenlaan 200 D<BR>&gt; B-3001 Leuven (Belgium)<BR>&gt;<BR>&gt; tel: + 32 16 32 71 45<BR>&gt; fax: + 32 16 32 79 85<BR>&gt; e-mail: stefaan.cottenier@fys.kuleuven.be<BR>&gt;<BR>&gt;<BR>&gt; Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; Wien mailing list<BR>&gt; Wien@zeus.theochem.tuwien.ac.at<BR>&gt; http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; ---------------------------------<BR>&gt; It's here! Your new message!<BR>&gt; Get new email alerts with the free Yahoo! Toolbar.<BR><BR><BR><BR>-- <BR>Stefaan Cottenier<BR>Instituut voor Kern- en Stralingsfysica<BR>K.U.Leuven<BR>Celestijnenlaan 200 D<BR>B-3001 Leuven (Belgium)<BR><BR>tel: + 32 16 32 71
 45<BR>fax: + 32 16 32 79 85<BR>e-mail: stefaan.cottenier@fys.kuleuven.be<BR><BR><BR>Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm<BR><BR>_______________________________________________<BR>Wien mailing list<BR>Wien@zeus.theochem.tuwien.ac.at<BR>http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien<BR></BLOCKQUOTE><BR><p>&#32;
      <hr size=1>TV dinner still cooling?<br><a href="http://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/">Check out "Tonight's Picks"</a> on Yahoo! TV.