Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Dyre_new replaces old dynamic models with the new models defined in the dyre-file. PSSE will then allocate the new model parameters at the end of the CON, VAR, STATE and ICON vectors. After doing that 900 times you reached the maximum possible index for the a vector.

Open the snapshot again before doing dyre_new.

Why are you reading in models with dyre_new before every simulation? What parameters are you changing in your simulations? You are not following the normal procedure for dynamic simulations.

Dyre_new replaces old dynamic models with the new models defined in the dyre-file. PSSE will then allocate the new model parameters at the end of the CON, VAR, STATE and ICON vectors. After doing that 900 times you reached the maximum possible index for the a vector.

Open the snapshot again before doing dyre_new.

EDIT: In my answer above I mixed up dyrenew with dyreadd. My discussion above is valid for dyreadd but you are using dyrenew so there should not be any problems with the vectors.

Why are you reading in models with dyre_new before every simulation? What parameters are you changing in your simulations? You are not following the normal procedure for dynamic simulations.

Dyre_new replaces old dynamic models with the new models defined in the dyre-file. PSSE will then allocate the new model parameters at the end of the CON, VAR, STATE and ICON vectors. After doing that 900 times you reached the maximum possible index for the a vector.

Open the snapshot again before doing dyre_new.

EDIT: In my answer above I mixed up dyrenew with dyreadd. My discussion above is valid for dyreadd but you are using dyrenew so there should not be any problems with the vectors.

Why are you reading in models with dyre_new before every simulation? What parameters are you changing in your simulations? You are not following the normal procedure for dynamic simulations.

EDIT 2: I would recommend you to move all code from line:

#Parameters

to line:

ierr = psspy.bus_frequency_channel([-1, bus])

before the loop, since the same raw-file and dyr-file is used in all simulations. Then save the converted saved case and the prepared snapshot (including all dynamic data and channels).

psspy.save(xxx)
psspy.snap(yyy)

Inside the loop:

Read the converted case and restore the snaphot at the beginning, so you will start each simulation with same data (case and snapshot).

psspy.case(xxx)
psspy.rstr(yyy)

In this way dyre_new will only be executed once!!!