Author Topic: The calculation did not converge to the requested tolerance!  (Read 5531 times)

0 Members and 1 Guest are viewing this topic.

Offline Megan

  • Regular QuantumATK user
  • **
  • Posts: 20
  • Country: cn
  • Reputation: 0
    • View Profile
Hi! :)
     I constructed a graphyne-graphene heterojunction,and I calculated the I-V curve. There is a WARNING "The calculation did not converge to the requested tolerance"!
    The parameter settings "  exchange_correlation = LSDA.PZ, max_steps=300 , electrode_voltages= 0.6*Volt, 0.0*Volt , infinitesimal=0.001*eV"
    In addition, I also used spin .
    could you please tell me that how can i fix this problem?   Thanks a lot! :)

Offline Umberto Martinez

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 479
  • Country: dk
  • Reputation: 26
    • View Profile
Re: The calculation did not converge to the requested tolerance!
« Reply #1 on: December 9, 2015, 15:49 »
did you managed to converge the zero bias state?

Offline Megan

  • Regular QuantumATK user
  • **
  • Posts: 20
  • Country: cn
  • Reputation: 0
    • View Profile
Re: The calculation did not converge to the requested tolerance!
« Reply #2 on: December 10, 2015, 02:41 »
Thanks for your reply! in  the zero bias state,it converged! but when I increased the bias,until 0.6,it cant converge.

Offline Jess Wellendorff

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 933
  • Country: dk
  • Reputation: 29
    • View Profile
Re: The calculation did not converge to the requested tolerance!
« Reply #3 on: December 10, 2015, 08:35 »
Do you increase the bias in small steps (e.g. 0.1 eV steps) from zero bias?

Offline Megan

  • Regular QuantumATK user
  • **
  • Posts: 20
  • Country: cn
  • Reputation: 0
    • View Profile
Re: The calculation did not converge to the requested tolerance!
« Reply #4 on: December 10, 2015, 09:14 »
I first calculated transmisson spectum, it did did not converge.

Offline Jess Wellendorff

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 933
  • Country: dk
  • Reputation: 29
    • View Profile
Re: The calculation did not converge to the requested tolerance!
« Reply #5 on: December 11, 2015, 08:04 »
I think we need to see the script you use in order to help you here.

Offline Megan

  • Regular QuantumATK user
  • **
  • Posts: 20
  • Country: cn
  • Reputation: 0
    • View Profile
Re: The calculation did not converge to the requested tolerance!
« Reply #6 on: December 13, 2015, 10:02 »
This is my script

Offline Jess Wellendorff

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 933
  • Country: dk
  • Reputation: 29
    • View Profile
Re: The calculation did not converge to the requested tolerance!
« Reply #7 on: December 15, 2015, 08:25 »
Your k-point sampling is all wrong: You need much more than 1 k-point along the C-direction for device calculations. The default is 100 k-points along C, so I suggest you try a (1,1,100) grid. Note: This does not mean the calculation will become very slow! The 100 k-points are used only in the electrodes, which are computed in the beginning of the device calculation.

Offline Megan

  • Regular QuantumATK user
  • **
  • Posts: 20
  • Country: cn
  • Reputation: 0
    • View Profile
Re: The calculation did not converge to the requested tolerance!
« Reply #8 on: December 15, 2015, 09:04 »
sorry,I give you a wrong script.  here is the scrip.    the k-point sampling is (1,1,100).   Would you please see it again?
  Thank you  so much !

Offline Jess Wellendorff

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 933
  • Country: dk
  • Reputation: 29
    • View Profile
Re: The calculation did not converge to the requested tolerance!
« Reply #9 on: December 21, 2015, 09:57 »
I suggest that instead of doing the 0.6 eV bias calculation from scratch, you do an IVCurve analysis. This will do the zero-bias calculation and then a range of non-zero bias calculations where the previous self-consistent state is used as initial guess.

Offline Megan

  • Regular QuantumATK user
  • **
  • Posts: 20
  • Country: cn
  • Reputation: 0
    • View Profile
Re: The calculation did not converge to the requested tolerance!
« Reply #10 on: December 27, 2015, 13:15 »
  I followed your suggestion, and calculated the IV curve.
 At first ,the left electrode  converged in 21steps,and the right electrode calculation converged in 19steps.But the device DFT calculation did  not converge to the requested tolerance until 99 steps. Could you please have a look at my script ?Thank you very much. I wonder whether my settings is right. 

Offline Jess Wellendorff

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 933
  • Country: dk
  • Reputation: 29
    • View Profile
Re: The calculation did not converge to the requested tolerance!
« Reply #11 on: January 4, 2016, 15:09 »
Dear Megan.

I have run your script and I do actually find that the device SCF converges at the initial 0 Volt calculations (in 89 steps). However, I agree that the convergence is rather slow. You should probably increase the max number of SCF steps, and you could perhaps also try a slightly more aggressive density mixing (In "Iteration control parameters", try "Maximum steps" = 200 and "Damping factor" = 0.25).

There is one detail I do not think you do correctly: You want to do an SGGA calculation with an initial guess for the spins. But you set the initial spins only after you have done the first SCF calculation. Therefore you need yet another SCF after setting the initial spins. That's double work. You only need to do a single SCF before doing the IVCurve analysis.


Offline Megan

  • Regular QuantumATK user
  • **
  • Posts: 20
  • Country: cn
  • Reputation: 0
    • View Profile
Re: The calculation did not converge to the requested tolerance!
« Reply #12 on: January 9, 2016, 04:50 »
Thanks for your reply . I followed your suggestion,and added the two parameter settings. But the calculation results still had 5WARNINGs. Then I  changed the bias to( -0.5,+0.5),instead of (0,1).  This time ,the results had 2WARNINGs. What should I do?
 By the way, I also see that I have two SCF. But I dont know how to edit my script specifically .Could you help me to reduce one ?
 Thank you, Jess. Looking forward to your reply.
This is my script.
« Last Edit: January 9, 2016, 04:52 by Megan »

Offline Megan

  • Regular QuantumATK user
  • **
  • Posts: 20
  • Country: cn
  • Reputation: 0
    • View Profile
Re: The calculation did not converge to the requested tolerance!
« Reply #13 on: January 9, 2016, 12:35 »
I have a new try,and it has no WARNING!  I changed the energy to (-1,1),instead of (-2,2)

Offline Jess Wellendorff

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 933
  • Country: dk
  • Reputation: 29
    • View Profile
Re: The calculation did not converge to the requested tolerance!
« Reply #14 on: January 14, 2016, 09:27 »
Sounds great! It is usually such that SCF convergence gets easier when the bias window is decreased.

About the double SCF in script C16.py: All you need to dop is delete lines 386-389, which set the calculator on the configuration and executes SCF. That is not needed.