First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
I presume you'll need them for inside a dynamic model and not for generating the simulation output.
As far as I know, PSSE doesn't offer functionality for using variables from previous time steps in dynamics models. However, many internal variables are based on previous calculation steps (e.g. STATE, STORE), so you could use them to regenerate the variable you want at t-T. This only allows you to use the previous time step, so t-DELT
Alternatively you could as you already mentioned generate a data structure (e.g. ring buffer) inside the VAR array. Be careful about how and at which moment in the integration routine the values inside this buffer are set, because the models are called multiple times per time-step or even multiple times per specific MODE.
2 | No.2 Revision |
I presume you'll need them for inside a dynamic model and not for generating the simulation output.
As far as I know, PSSE doesn't offer functionality for using variables from previous time steps in dynamics models. However, many internal variables are based on previous calculation steps (e.g. STATE, STORE), so you could use them to regenerate the variable you want at t-T. This only allows you to use the previous time step, so t-DELT
Alternatively you could as you already mentioned generate a data structure (e.g. ring buffer) inside the VAR array. The wiki on circular buffers could be a good starting point.
Be careful about how and at which moment in the integration routine the values inside this buffer are set, because the models are called multiple times per time-step or even multiple times per specific MODE.
3 | No.3 Revision |
I presume you'll need them for inside a dynamic model and not for generating the simulation output.
As far as I know, PSSE doesn't offer functionality for using variables from previous time steps in dynamics models. However, many internal variables are based on previous calculation steps (e.g. STATE, STORE), so you could use them to regenerate the variable you want at t-T. This only allows you to use the previous time step, so t-DELT
Alternatively you could as you already mentioned generate a data structure (e.g. ring buffer) inside the VAR array. The wiki on circular buffers could be a good starting point.
Be careful about how and at which moment in the integration routine the values inside this buffer are set, because the models are called multiple times per time-step or even multiple times per specific MODE.