0

UDM Compile by Environment Manager

I am quite new to PSS/E Xplore 34 and want to use User Defined Model in dynamic simulation. I have found a .flx file written for an excitation system. I want to use it.

The procedure as I learned (please correct me if I am wrong):

  1. .flx or .for file need to be compiled to make a .dll file
  2. Load Model Library from PSS/E and use it

To make the .dll file in Environment manager(EM) I have specified the file in User Model Fortran Source Files and tried Compile and dll --> There are lots of errors ...

error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [PBUFFR]
       USE DBUFFR
error #6423: This name has already been used as an external function name.   [STATE]
       STATE(K+1)=CON(J+3)
...

and many more like that...

I think there is an issue with any paths. But I couldn't fix it. Please help me to correct. Another thing is that I can't open EM form PSS/E GUI Create Model Library It shows-

AttributeError: 'Button' object has no attribute 'SetBitmap'

So, I opened it running the run_envmgr_py27 batch file in Python27 internal folder.

------------- PSS(R)E 34 Environment settings

 Fortran PATH paths (IVF 15.0.108):
    c:\program files (x86)\intel\composer xe 2015\bin\ia32
    c:\program files (x86)\intel\composer xe 2015\redist\ia32\compiler

 Visual Studio PATH paths (VS 2013):
    c:\program files (x86)\microsoft visual studio 12.0\vc\bin
    C:\Program Files (x86)\windows kits\8.1\bin\x86

 Fortran LIB paths (IVF 15.0.108):
    c:\program files (x86)\intel\composer xe 2015\compiler\lib\ia32

 Visual Studio LIB paths (VS 2013):
    c:\program files (x86)\microsoft visual studio 12.0\vc\lib
    C:\Program Files (x86)\windows kits\8.1\Lib\winv6.3\um\x86

 Successfully added PSSE paths to local PATH and LIB environment.

Please help me,

  • What's wrong with?

Thanks in advance.

Rakibul Rakib's avatar
1
Rakibul Rakib
asked 2018-05-02 07:07:35 -0500, updated 2018-05-04 01:10:47 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

0

Check the posting "User Defined Model Development" and get a ready-to-run demo data set on that UEXC exciter. Also when running the "Environment Manager" (which needs Fortran & Visual Studio installs), check the second window (in the background) for the "Environment settings" information. In my pc, using full PSSe 34:

" PSS(R)E User Model Compile/Link - Environment Manager 8.0.1, Python 2.7.13 Thu May 03 12:22:21 2018

------------- PSS(R)E 34 Environment settings

Fortran PATH paths (IVF 12.1.325): c:\program files (x86)\intel\composer xe 2011 sp1\bin\ia32 c:\program files (x86)\intel\composer xe 2011 sp1\redist\ia32\compiler

Visual Studio PATH paths (VS 2012): c:\program files (x86)\microsoft visual studio 11.0\vc\bin C:\Program Files (x86)\windows kits\8.0\bin\x86 c:\program files (x86)\microsoft visual studio 11.0\common7\ide

Fortran LIB paths (IVF 12.1.325): c:\program files (x86)\intel\composer xe 2011 sp1\compiler\lib\ia32

Visual Studio LIB paths (VS 2012): c:\program files (x86)\microsoft visual studio 11.0\vc\lib C:\Program Files (x86)\windows kits\8.0\Lib\win8\um\x86

Successfully added PSSE paths to local PATH and LIB environment."

jconto's avatar
2.9k
jconto
answered 2018-05-02 17:42:22 -0500, updated 2018-05-03 12:34:36 -0500
edit flag offensive 0 remove flag delete link

Comments

Thanks for replying... Actually, I have downloaded the files from your google drive and try to compile the uexc.flx using Environment manager ...but it is not working..so many errors as I mentioned... Can you please help me in this?

Rakibul Rakib's avatar Rakibul Rakib (2018-05-03 02:39:03 -0500) edit

Updated my reply.

jconto's avatar jconto (2018-05-03 12:35:03 -0500) edit

Thanks for replying... I have appended My Environment Setting in the question. It seems okay, right? To compile "uexc.flx" is there any module source files needed? or just only I can compile "uexc.flx" ?

Rakibul Rakib's avatar Rakibul Rakib (2018-05-04 01:14:36 -0500) edit

Just only "uexc.flx" and the one in my data set works. I know that Fortran v.15 + VS v.11 works with PSSev.33 but I have not tested if Fortran v.15 + VS v.13 works with PSS/E Xplore 34. Does anyone else have other 'combination' examples?

jconto's avatar jconto (2018-05-04 08:27:31 -0500) edit

okay...Thanks for the reply. I will then try more to get it done... will contact you later for further help. Can you please share your e-mail with me?

Rakibul Rakib's avatar Rakibul Rakib (2018-05-04 09:46:26 -0500) edit
add a comment see more comments
0

Well, after doing some research I solved this compilation issue.

So, it showed that "Check include paths"

Environment manager can be run either by running run_envmgr_py27 batch file or by python file example_psse34_ivf15_vs2013

There are some library files in PSSLIB10 folder of PSS/E installation and this folder is not included in the default environment manager.

So I add the folder path in the inlcude section of the python file. And, now it works through the python file.

Rakibul Rakib's avatar
1
Rakibul Rakib
answered 2018-05-05 12:28:01 -0500
edit flag offensive 0 remove flag delete link

Comments

Hi there, Can you please share exactly how you were able to add PSSLIB10 to the path? Thanks, Patrick

patrickrossiter's avatar patrickrossiter (2019-05-03 00:51:14 -0500) edit

I have the same errors that you showed in the first question, I have tried to add the include paths on the python file example_psse34_ivf15_vs2013, but it does not work. I am using IVF 17 and VS 2015 with PSSE Xplore 34. Please, it would be helpful if you explain how did you do it

JosimarDTM's avatar JosimarDTM (2019-10-21 11:48:05 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer