Pada Selasa, 28 Mei 2013 17:00:42 UTC+7, Debbie  menulis:
> Hi there,
> 
> I am new to Python, and wondering if you could help me with python based 
> coding for the IPSA (Power system analysis software). I have a electrical 
> distribution network with generators, buses and loads, on which I am 
> performing the load flow analysis every 1 hour for a period of 1 year. 
> 
> 
> 
> The code to perform instantaneous load/power flow analysis is given below. I 
> need to modify it such that I can perform this load flow analysis every 1 
> hour for a period of 1 year. Please help.
> 
> 
> 
> from ipsa import *
> 
> 
> 
> ipsasys = IscInterface()
> 
> net = ipsasys.ReadFile("refinery.iif")
> 
> bok = net.DoLoadFlow();
> 
> if bok:
> 
>     busbars = net.GetBusbars()
> 
>     print "Load Flow results:"
> 
>     print ""
> 
>     print "BusName     Vmag(kV)"
> 
>     print "===================="
> 
>     for bus in busbars.itervalues():
> 
>         name = bus.GetName()
> 
>         vm = bus.GetVoltageMagnitudekV()
> 
>         res = "%-8s  %10.5f" % (name, vm)
> 
>         print res
> 
> else:
> 
>     print "Load Flow failed!"
> 
> 
> 
> Regards,
> 
> Debbie

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to