Menu

RC circuit and switches

Help
2013-09-12
2021-09-02
  • Brallan Aguilar

    Brallan Aguilar - 2013-09-12

    Hi. I am studying a simple RC circuit with switches. When simulate next file, this one never ends. Am I doing anything wrong?

    https://www.dropbox.com/s/do0arrosfwnj0qg/034.sch

     
  • Guilherme

    Guilherme - 2013-09-12

    Hi. Have you tried to increase the number of steps on the 'transient simulation'? (or reduce the size of the time step? It seems to work on my sidee with about 1001 steps.

     
    • Brallan Aguilar

      Brallan Aguilar - 2013-09-13

      You are right! Thank you. But, what is exactly the function of 'step'? What it does?

       
      • Guilherme

        Guilherme - 2013-09-13

        The transient simulation performs a numerical integration of the circuit. The integration advances in time in steps. Time steps should be small enough to capture the relevant behavior of the circuit (switching and oscillations for instance). The smaller the step the longer it takes to integrate. The larger the step the faster it integrates, but sometimes the solver has a hard time to compute the result of the next step. You can either enter the time-step or the number of steps between start and stop times. Simpler integrators use a fixed time-step throughout. Other integrators use variable time-step which reduces the step size in order to get past fast transients and increase the step size to quickly go over smooth regions.

        You can find some further documentation over here:
        http://qucs.sourceforge.net/docs/technical.pdf

        Regards, Guilherme

         

        Last edit: Guilherme 2013-09-13
  • brewmanz

    brewmanz - 2021-06-15

    The link [http://qucs.sourceforge.net/docs/technical.pdf] seems to be broken: "An error has been encountered in accessing this page."

     
  • brewmanz

    brewmanz - 2021-09-02

    Good. Thanks.

     

Log in to post a comment.