I'll try to fix this, but you could try to check out a version from
before june meanwhile.
Regards,
Joacim
> --
> You received this message because you are subscribed to the Google Groups "pycircuit" group.
> To post to this group, send email to pyci...@googlegroups.com.
> To unsubscribe from this group, send email to pycircuit+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pycircuit?hl=en.
>
>
I found the problem with that program. I wan't setting the inductance
properly. I needed to change
> > cir['L1'] = L(1, 2, l)
to L(1,2, L=l)
Pat
Pat
from scipy import *
from pycircuit.circuit import *
from pylab import *
from pycircuit.post.functions import *
rr = 1000.
cir=SubCircuit()
cir['VS'] = VS(1, gnd, v=5.)
cir['R1'] = R(1, 2, r=rr)
cir['D1'] = Diode(2, gnd)
dc = DC(cir)
res = dc.solve()
print res.v(1), res.v(2)