0

Plotting a CON Parameter

Hello All,

Here's the situation.

With a USRMDL of a STATCOM that I am using (but did not write and do not have the source code for) the voltage setpoint of the STATCOM is a CON parameter. I make changes to this CON parameter and see the response of the STATCOM. I want to plot the STATCOM voltage and the reference voltage on the same graph, to show how the voltage follows the changes in setpoint. However, it seems that I cannot plot the CON parameter. Does anyone know a workaround?

I would like to ask the model writer to include the CON parameter as a VAR, so that I can plot it that way, but this might not happen any time soon.

Perhaps some of you have faced a similar situation. I would appreciate your replies. Thanks.

jfconroy's avatar
186
jfconroy
asked 2018-10-19 11:00:04 -0500
edit flag offensive 0 remove flag close merge delete

Comments

Do you have a FORTRAN compiler so you can compile and link Conec and Conet?

perolofl's avatar perolofl (2018-10-20 00:47:57 -0500) edit

Yes, I do have a FORTRAN compiler. What do you suggest? Thanks.

jfconroy's avatar jfconroy (2018-10-21 03:31:04 -0500) edit
add a comment see more comments

2 Answers

1

Assign the CON-value to a VAR in the following way:

  1. Find out the number of the CON you want to plot with DOCU. Let us assume the number is 1234.

  2. Create CONEC and CONET subroutines with DYRE if you don't have them already.

  3. Enter the following line in the CONEC file before the RETURN statement (make sure the VAR number is higher than the highest number used in the snapshot):

    VAR(99999) = CON(1234)

  4. Compile CONEC and CONET and link dsusr.dll.

  5. Load dsusr.dll into PSSE.

  6. Add a new VAR channel for the VAR number used in step 3. E.g. psspy.var_channel([-1,99999],"STATCOM VREF")

  7. Save the snapshot.

perolofl's avatar
3.8k
perolofl
answered 2018-10-21 15:17:13 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

Thanks for your help, I got it working.

jfconroy's avatar
186
jfconroy
answered 2018-10-26 01:40:49 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer