Ask Your Question

liamv's profile - activity

2013-12-17 08:58:14 -0500 received badge  Supporter (source)
2013-12-09 11:30:29 -0500 received badge  Nice Answer (source)
2013-12-05 04:54:23 -0500 commented answer parallel dynamic simulations using python and PSS/E

@EBahr, ive been using the multiprocessing module to run several dynamic studies in parallel; without issue. Was the crash you mentioned caused when accessing some internal PSS/E temporary file, or are you referring to the *.out files we select at the beginning of simulation?

2013-12-04 11:29:27 -0500 received badge  Teacher (source)
2013-12-04 11:29:27 -0500 received badge  Necromancer (source)
2013-12-04 06:14:11 -0500 answered a question SLD development

You need to invesigate the sliderPy module which is bundled with PSS/E.

import psspy
import sliderPy

doc = sliderPy.GetActiveDocument()
diag = doc.GetDiagram()

for c in diag.GetComponents():
    pos = c.GetPosition()
    compType = c.GetComponentType()

    if compType == sliderPy.ComponentType.Symbol:

        sym = c.SldSymbol()
        symType = sym.GetSymbolType()

        print '\nID:{0}: map:\'{4}\' type{1} X:{2} Y{3}'.format(c.GetID(), symType, pos.GetX(), pos.GetY(), c.GetMapString())