Ask Your Question
0

How to get the Model VARS value output in Dynamic Simulation?

asked 2019-09-03 07:35:53 -0600

LLL gravatar image

Now I create a SMIB to the solar inverter to test the inverter model. However, the voltage and current is very strange. As a result, I want check the model itself. Is there any method to get the Model VARS value curve during the Dynamic Simulation such as bus voltage?

Another question is, how can I get the bus frequency value in HZ? Thank you very much.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2019-09-24 17:33:30 -0600

VISHNU gravatar image

updated 2019-09-25 01:06:46 -0600

perolofl gravatar image
 ierr, variableNumber = psspy.mdlind(busNumber, 'machine id', 'GEN', 'VAR')
 psspy.var_channel([-1,variableNumber],"variableName")

Here the first command stores the first variable 'VAR' associated with GEN into the variable varname. The second command add the channel corresponding to the variable variableNumber. You can use this commands to get any variable associated with any components.

For instance, If you want to store the second variable then,

 psspy.var_channel([-1,variableNumber+1],"anotherVariableName")

Hope this helps

edit flag offensive delete link more

Comments

Yes! That's it. Thank you very much :)

NunoFul gravatar imageNunoFul ( 2019-09-26 08:01:18 -0600 )edit
0

answered 2019-09-24 08:54:26 -0600

NunoFul gravatar image

Hello, I have a similar doubt, and I don't think it has been responded.

I wanted to know, via Python, which are the VARs for each model, so I can iterate it and plot them on demand. The idea is to define a function that returns the numbers of the VARs per model - similar to the info we can get with DOCU.

Thanks, Nuno

edit flag offensive delete link more
0

answered 2019-09-04 01:31:14 -0600

perolofl gravatar image

VAR: See Miscellaneous Quantity in Chapter 20.5 of GUI Users Guide.

Hz: See FUNC - Add Function in Chapter 22.3.

edit flag offensive delete link more

Comments

I can find the Miscellaneous Quantity in Chapter 20.5, but I cannot find the FUNC - Add Function in Chapter 22.3. Is this a version thing? I am using v33.4

drsgao gravatar imagedrsgao ( 2019-09-04 03:40:10 -0600 )edit

One way to get the frequency in HZ is to add a function in the plot tree in psse after opening the .out file. Type in the function 60*(1+A) or 50*. After adding the function, then you can assign the frequency deviation channel you have to the value of A and plot the full functio

zezo510 gravatar imagezezo510 ( 2019-09-04 19:43:45 -0600 )edit

using psspy: ierr = var_channel(status, ident) mentioned in section 4.2.4.4 in psse v33 API book

bikiran1991 gravatar imagebikiran1991 ( 2019-09-04 21:38:31 -0600 )edit

@zezo510 Thanks! I got it working. Do you want I need to add 1 to A to get the correct value? Something to do with the index of sort?

drsgao gravatar imagedrsgao ( 2019-09-05 05:52:43 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

2 followers

Stats

Asked: 2019-09-03 07:35:53 -0600

Seen: 2,318 times

Last updated: Sep 25 '19