First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

what is DSTATE?

asked Dec 9 '0

Etki Acilan gravatar image

updated Dec 17 '0

It is defined as 'the values of the corresponding time derivative (DSTATE)' in API. However, I did not get it. Can anyone help?

Thanks.

[Solved] Please read the comments.

2 answers

Sort by » oldest newest most voted
0

answered Dec 10 '0

Pasnos gravatar image

In case you retrieve the state variable from the API, why don't you calculate it in an 'a posteriori' pattern, after the value of the state variable is available? You could calculate it as a divided difference, since the time step is known.

link

Comments

Thank you for the answer. The was the thing that came to my mind after RJG@PSM's answer. I think I'll go with this. I think what you suggest will work fine in quasi steady-state operation. During the transient, I think this is the best I can get. Thank you again for the answer.

Etki Acilan gravatar imageEtki Acilan (Dec 10 '0)
0

answered Dec 10 '0

RJG@PSM gravatar image

DSTATE is the derivate of the state variable, PSS/E looks at it during initialization to check if it is zero (in steady state the state variable is a constant).

link

Comments

Thank you for the answer. I am changing the state variable in every timestep. In this case, how do we know the derivative of the state variable? I mean we don't know the diff. algebraic equations corresponding the state variables. Is it OK if we just write something other than 0?

Etki Acilan gravatar imageEtki Acilan (Dec 10 '0)

Ideally, as mentioned above, DSTATE=0 at the start of your simulation will ensure that you get a "flat start" or "steady-state initial conditions". After that, you need to calculate DSTATE at each time step to do the numerical integration.

jfconroy gravatar imagejfconroy (Dec 16 '0)

@jfconroy Do I have to provide a derivative to PSS/E? Doesn't it have Differential Algebraic Equations which it can make a transition to next state(k+1)?

Etki Acilan gravatar imageEtki Acilan (Dec 16 '0)

If you are writing your own dynamic models, then you have to write the equations for DSTATE for each state variable that you need. If you are using "built-in" dynamic models, then there is no need for you to define DSTATE for any state variable.

jfconroy gravatar imagejfconroy (Dec 17 '0)

If you are seeing initialization warnings about DSTATE, when you are using "built-in" dynamic models, that means you need to adjust some load flow or dynamic model parameters, you do not need to re-write equations.

jfconroy gravatar imagejfconroy (Dec 17 '0)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

Stats

Asked: Dec 9 '0

Seen: 1,647 times

Last updated: Dec 17 '20