[eispice] Re: Bugreport: LC Transmission Line ( and new release 0.9.1)

Hi Thomas et al.

I think I've fixed the problem. It looks like the issue was with the way 
the simulator was choosing the numerical integration order. It has to be 
reduced at points with a large derivative, this is done by asking the 
sources to anticipate when they will force large value changes, and 
setting break-points accordingly, but due to the delay introduced by the 
LC network some points that should be break-points were missed. I added 
some code that reduces the numerical integration order when there is a 
re-step due to integration error, this should catch most of the missed 
break-points.

This change may create issues with the accuracy of other simulations. If 
anyone experiences any negative impact from this change please let me 
know and I'll re-work the implementation.

I've uploaded a new release (0.9.1) to the eispice webpage with this 
fix, and with a small bug-fix to the new PyB device. I also renamed lib 
to safn (library in Icelandic) for now, to resolve Thomas' other issue.

The new release is available on the eispice download page:
http://www.thedigitalmachine.net/eispice.download.html

Thanks again for the bug-report!

Cheers,
Charles

Thomas Traber wrote:
> Hi Charles, hi all,
> attached tlcline1.py causes wrong outputs. 
>
> System:
>    eispice-0.9, 
>    python2.4(!) 
>    on two different Debian machines.
>
> See Plot on:
> http://www.desy.de/~traber/eispice.html
>
> The bug seems to be memory or general resource use dependant.
> Different LC ladder length and different transient time step changes the
> result.
>
> BTW:
> I discovered this bug while playing with my new eihelper.py (name
> suggested by Charles) using tlcline.py (see above link).
>
> Possibly another bug:
> I needed to remove "import lib" from __init.py__ to run eispice-0.9.
>
> Greetings,
> Thomas
>
>
>
>
>
>
>
>
> -- Binary/unsupported file stripped by Ecartis --
> -- Type: text/x-python
> -- File: tlcline1.py
>
>
> ------------------------------------------------------------------
> To unsubscribe from the eispice list send an email to:
> eispice-request@xxxxxxxxxxxxx with 'unsubscribe' in the Subject field
>
>
>   
------------------------------------------------------------------
To unsubscribe from the eispice list send an email to:
eispice-request@xxxxxxxxxxxxx with 'unsubscribe' in the Subject field

Other related posts: