Ask Your Question
0

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

asked 2018-11-30 12:33:54 -0600

marilyn3 gravatar image

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

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted
0

answered 2018-12-13 13:07:23 -0600

wassup_doc gravatar image

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"

edit flag offensive delete link more
0

answered 2018-11-30 18:34:03 -0600

txc gravatar image

updated 2018-11-30 18:40:51 -0600

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

edit flag offensive delete link more
0

answered 2018-11-30 16:51:24 -0600

perolofl gravatar image

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.

edit flag offensive delete link more

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 gravatar imagemarilyn3 ( 2018-11-30 17:56:20 -0600 )edit

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

marilyn3 gravatar imagemarilyn3 ( 2018-11-30 17:57:17 -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

1 follower

Stats

Asked: 2018-11-30 12:33:54 -0600

Seen: 1,925 times

Last updated: Dec 13 '18