Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #46272

Python for IPSA (Power flow analysis)

Newsgroups comp.lang.python
Date 2013-05-28 03:00 -0700
Message-ID <6288a409-db46-4987-91a7-2f3dd65b42dc@googlegroups.com> (permalink)
Subject Python for IPSA (Power flow analysis)
From Debbie <dia.sussex@gmail.com>

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Python for IPSA (Power flow analysis) Debbie <dia.sussex@gmail.com> - 2013-05-28 03:00 -0700
  Re: Python for IPSA (Power flow analysis) Dave Angel <davea@davea.name> - 2013-05-28 07:14 -0400
  Re: Python for IPSA (Power flow analysis) Robert Marshall <spam@capuchin.co.uk> - 2013-05-28 13:08 +0100
  Re: Python for IPSA (Power flow analysis) steve.ingram@tnei.co.uk - 2013-05-29 01:51 -0700

csiph-web