0

¿what does it mean the line code INCLUDE COMON4.INS in the PSS/E user written model examples ?? also , what is BADMID?

Hi i need some help with this, im trying to develop a user written model , i have found some examples in the PSS/E user manual , i have done my research for most of the functions , but i cant find any description of this ones , also trying to compile what i have written , but when i open the enviroment manager from the PSS/E GUI just opens a window with options for changing paths , i really need some help , thanks in advance

SUBROUTINE DEMOEX(I,ISLOT)

INCLUDE ’COMON4.INS’

INTEGER I,ISLOT C I = MACHINE ARRAY INDEX C ISLOT = ARRAY ALLOCATION TABLE INDEX C J = STRTIN(1,ISLOT) [ USES CON(J) THROUGH CON(J+2) ] C K = STRTIN(2,ISLOT) [ USES STATE(K) AND STATE(K+1) ]

INTRINSIC MAX, ABS EXTERNAL BADMID, DOCUHD

marilyn3's avatar
3
marilyn3
asked 2018-11-30 12:33:54 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

3 Answers

0

There is a manual for using environment manager that should address your questions on how to use that application. It covers the GUI and a great library that can be imported into python and used to automate the process of compiling, linking, and building user DLL's. It has saved me a ton of time creating an automation script for compiling user-defined flecs code.

The manual is located in the "site-packages" directory of your python installation. You should find a manual entitled "PSSE Environment Manager.pdf"

wassup_doc's avatar
110
wassup_doc
answered 2018-12-13 13:07:23 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

You will have to compile your fortran code using the Environment manager to create a dsusr.dll. What you should do you in open the Environment manager, select the installed PSS/E version and select the place where your fortran files are in your computer. Once you do that, you will need to click compile + create dll. Depending on your code, Environment manager will create a dsusr.dll for you. However, you will have to install Intel Visual Fortran compiler with shell which will compile your fortran code. The easiest way to see if you have the compiler is to create a dsusr.dll from conect.flx and conet.flx which is available in the PSSE example folder in this location c:\programs86\pti\psse\example

txc's avatar
84
txc
answered 2018-11-30 18:34:03 -0500, updated 2018-11-30 18:40:51 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

The include statement just inserts the code in file comon4.ins into the source code. It contains declaration of variables and common blocks, for example CON, STATE, VAR, EFD, VREF used in the model.

BADMID is only needed if you have the option of extended term simulation, so you can, most probably, forget that function.

You need a Fortran compiler in order to compile and link the source code.

perolofl's avatar
3.8k
perolofl
answered 2018-11-30 16:51:24 -0500
edit flag offensive 0 remove flag delete link

Comments

Thanks for the help, i thought the compiling was done by the PSS/E create user DLL gui , i'm completely lost here , i'm writting a code based on some examples i've seen in Microsoft visual studio , then i use the Create user dll gui , and i'm getting so many errors

marilyn3's avatar marilyn3 (2018-11-30 17:56:20 -0500) edit

could you giveme some instructions for doing this process?? i think i'm doing something wrong , thanks for your help!

marilyn3's avatar marilyn3 (2018-11-30 17:57:17 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer