How to copy network data?
Hi!
How do I copy the complete network data from a particular zone in NETA.sav to NETB.sav?
First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
I remember using RAWD
in the past. Here is how you might do this:
psspy.case('NETA.sav')
export_zones = [1]
psspy.bsys(sid=1, numzone=len(export_zones), zones=export_zones)
psspy.rawd_2(sid=1,
all=0,
status7=2, # create a RDCH file
out=0, # redirect to file
ofile='my-zone-1.raw')
That should create your "Power Flow Change Raw Data" file. The next main step is to read it in for NETB.sav
psspy.case('NETB.sav')
psspy.rdch(ifile='my-zone-1.raw')
I'm not sure what other problems will pop up. Here is a couple you might need to watch for:
Hi,
I am new in PSSE for Python. My question is... after reading the .raw file with RDCH, then what? How to print this information? Is this information stored in memory, I guess, so how to access to the information we have just read?
Greetings!
You'll have more success asking a new question rather than posting your question as an answer to someone else's question. Regardless, once you've used RDCH, the network will be in memory. You could save it as a separate SAV file for later (using save()).
Thank you!
Asked: Jun 30 '12
Seen: 2,040 times
Last updated: Dec 09 '22
idv command to change case title for multiple cases (many sav files)
which API instruction can set the branch become breaker?
Plotting RoCoF using PSSPLT (version 35) and export results to excel using Python API
Is there an API call to get existing Channel arrays directly into Python?
Is there a Python API to get the GREF value?
Python API to Terminate Dynamic Simulation
How do i retrieve the tap ratio of a 3 winding transformer?
Why would PU bus voltages blow up to infinity in a FLAT dynamic simulation?
You could create a "Power Flow Change Raw Data File" containing just the section from that particular zone. I can't see how to make one with the API - do you know how?
@JervisW I can't see how to do this with the API either. After a lot of reading and experimenting I found that the easiest way is to do it is through the PSSE GUI.
@amaity yes, I think the GUI would be quicker. It isn't often that we need to transfer data. Would the RAWD method work?