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

Ask Your Question
0

How to save a value in fortran and re-use it ?

asked Jul 10 '19

anonymous user

Anonymous

Hello,

I have a basic issue in PSS/E and fortran. In my fortran program, I wish to record a value in a certain situation and re-use it for other situations.

The specific value is obtained during a deadband, for example active power value recorded before every droop (in the deadband) happening. How can I record this value so that I can use for other calculations, after the deadband ?

Thank you in advance

2 answers

Sort by » oldest newest most voted
0

answered Jul 11 '19

perolofl gravatar image

I am not sure what you want to do. Please explain your problem better.

But a general rule is to never use static or SAVE in a user written dynamic model in PSSE. Assign a VAR to store the value between model calls.

link
0

answered Jul 10 '19

drsgao gravatar image

Have you tried the "static" data type?

The very worst case is just to save the var to a file and then let others read it. But this is really the last resort.

link

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

1 follower

Stats

Asked: Jul 10 '19

Seen: 1,024 times

Last updated: Jul 11 '19