element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
EAGLE User Support (English) Error messages during simulation with Eagle-PCBsim: timestep too small, iteration limit exceeded: what next?
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Autodesk EAGLE to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 5 replies
  • Subscribers 179 subscribers
  • Views 600 views
  • Users 0 members are here
  • pcbsim
Related

Error messages during simulation with Eagle-PCBsim: timestep too small, iteration limit exceeded: what next?

Former Member
Former Member over 9 years ago

Using PCBsim in a circuit intended to produce fast changing voltages I often get errors: " timestep too small" or " iteration limit exceeded".

In one case this was cured by pulling up/down a certain net in the circuit to GND via 10k resistors.

However, pulling these nets to the rail voltages +/- 24 V via the same resistor again led to the errors.

 

This looks confusing to me.

How can one deal with such internal(?) PCBsim errors?

 

Thanks,

Jan

  • Sign in to reply
  • Cancel
  • autodeskguest
    0 autodeskguest over 9 years ago

    On 1/2/2016 3:32 AM, J Cuppen wrote:

    Using PCBsim in a circuit intended to produce fast changing voltages I

    often get errors: " timestep too small" or " iteration limit exceeded".

    In one case this was cured by pulling up/down a certain net in the

    circuit to GND via 10k resistors.

    However, pulling these nets to the rail voltages +/- 24 V via the same

    resistor again led to the errors.

     

    This looks confusing to me.

    How can one deal with such internal(?) PCBsim errors?

     

    Thanks,

    Jan

     

    --

    To view any images and attachments in this post, visit:

    http://www.element14.com/community/message/170491

     

    Hi Jan,

     

    I've contacted the developer of PCB Sim to see if he can jump into the

    forums to help.

     

    The issue you are describing sounds like a convergence issue. This is

    something common to all simulators where depending on the model and it's

    connections the equation solver used by the SPICE engine is unable to

    converge to a solution.

     

    If grounding via 10 resistors allowed for a solution and it doesn't make

    a practical difference in your physical circuit then I think those

    results could be acceptable.

     

    hth,

    Jorge Garcia

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to autodeskguest

    Hi Jorge, Thanks for your response.

     

    Yes, there must be convergence issues. The workaround described however works only very partially.

    Asking pcbsim to calculate power for a number of components in the circuit (with the resistors) again leads to the breakdown with tese error messages.

    So my question remains open and I would very much appreciate an answer from development.

     

    Kind Regards,

    Jan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • autodeskguest
    0 autodeskguest over 9 years ago in reply to autodeskguest

    On 6/01/2016 5:58 a.m., Jorge Garcia wrote:

    On 1/2/2016 3:32 AM, J Cuppen wrote:

    Using PCBsim in a circuit intended to produce fast changing voltages I

    often get errors: " timestep too small" or " iteration limit exceeded".

    In one case this was cured by pulling up/down a certain net in the

    circuit to GND via 10k resistors.

    However, pulling these nets to the rail voltages +/- 24 V via the same

    resistor again led to the errors.

     

    This looks confusing to me.

    How can one deal with such internal(?) PCBsim errors?

     

    Thanks,

    Jan

     

    --

    To view any images and attachments in this post, visit:

    http://www.element14.com/community/message/170491

     

    Hi Jan,

     

    I've contacted the developer of PCB Sim to see if he can jump into the

    forums to help.

     

    The issue you are describing sounds like a convergence issue. This is

    something common to all simulators where depending on the model and it's

    connections the equation solver used by the SPICE engine is unable to

    converge to a solution.

     

    If grounding via 10 resistors allowed for a solution and it doesn't make

    a practical difference in your physical circuit then I think those

    results could be acceptable.

     

    hth,

    Jorge Garcia

     

    Hopefully the PCBsim developer does not come to this forum to continue

    this discussion. This is not an Eagle Support issue.

     

    Warren

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • autodeskguest
    0 autodeskguest over 9 years ago

    Hi Jan,

     

    Here's is Heinz's response.

    "

    Hi Jorge,

     

    This is a very general error meaning the circuit does not converge.

    There are a number of possible root causes ("non-physical" circuits,

    extremely small and large currents / voltages in one circuit, bad

    mannered simulation models, ...).

     

    To rectify, the following steps can be tried:

         a) Change the convergence settings to "moderate" or "forgiving".

         b) Make the timestep smaller (simulation settings, transient analysis).

         c) Add small stray capacitances (for example 0.1pF) to critical nets.

         d) Change the output resistance of voltage sources (make it for

    example 1mOhm or 1Ohm)

         e) Add parasitic resistance parallel to inductances (for example

    1GOhm).

     

    Each of this proposals has a whole story behind it. I'm adding just a

    few (hopefully helpful) remarks:

     

         c) Adding small capacitances to critical nets:

         The Spice algorithm automatically adjusts time step sizes. If a

    circuit changes rapidly, the time step is made smaller. Only when ALL

    circuit voltages and monitored currents are accurate below the

    convergence thresholds (see a), the time step is accepted. Small

    capacitances help to make a circuit well-behaved with small time steps,

    that is that voltages and currents do not change strongly for very short

    time steps.

    The added capacitors should be of a size which does NOT change the

    desired circuit behaviour. Often it is enough to add stray capacitance

    which are present in a real circuit anyway.

         d) Changing the output resistance of voltage sources

         Very "stiff" elements are problematic for the convergence

    algorithm. Stiff means that changing one parameter (for example output

    current) does not have an effect on another parameter (output voltage).

    Therefore, pure voltage sources with zero output resistances are often

    difficult to converge.

    Unfortunately some simulation models for operational amplifiers behave

    very critical to voltage sources with an impedance. The model might

    cause non-physical currents flowing into or out of the supply voltage.

    Then, the source impedance needs to be made very small (1µOhm).

    e) Parallel resistance to inductors

    This again makes sure that a the device behaves less stiff. With very

    small time steps, a voltage change across the inductor will otherwise

    not lead to a current change.

     

    If you still do not succeed, you can send your circuit together with any

    special simulation models to support@felicitas-ce.de. Your design will

    of course be treated confidentially.

     

     

    With best regards,

     

     

    Heinz

    "

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • autodeskguest
    0 autodeskguest over 9 years ago in reply to autodeskguest

    Hopefully the PCBsim developer does not come to this forum to continue

    this discussion. This is not an Eagle Support issue.

     

    Warren

     

    Hi Warren,

     

    I hope you're doing well. You bring up a very valid point. Currently

    PCBSim does not have a forum, but it would be a good idea to make that

    recommendation.

     

    I'll talk to Heinz and see what can be setup. For the time being I think

    we'll just bear with the PCBSim questions that pop up, users need to

    have some resource and since we support their product, its a reasonable

    short term compromise. Don't you think?

     

    Best Regards,

    Jorge Garcia

     

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube