Ask Your Question
0

UDM Compile by Environment Manager

asked 2018-05-02 07:07:35 -0600

Rakibul Rakib gravatar image

updated 2018-05-04 01:10:47 -0600

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.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2018-05-05 12:28:01 -0600

Rakibul Rakib gravatar image

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.

edit flag offensive delete link more

Comments

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

patrickrossiter gravatar imagepatrickrossiter ( 2019-05-03 00:51:14 -0600 )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 gravatar imageJosimarDTM ( 2019-10-21 11:48:05 -0600 )edit
0

answered 2018-05-02 17:42:22 -0600

jconto gravatar image

updated 2018-05-03 12:34:36 -0600

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."

edit flag offensive delete link more

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 gravatar imageRakibul Rakib ( 2018-05-03 02:39:03 -0600 )edit

Updated my reply.

jconto gravatar imagejconto ( 2018-05-03 12:35:03 -0600 )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 gravatar imageRakibul Rakib ( 2018-05-04 01:14:36 -0600 )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 gravatar imagejconto ( 2018-05-04 08:27:31 -0600 )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 gravatar imageRakibul Rakib ( 2018-05-04 09:46:26 -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

3 followers

Stats

Asked: 2018-05-02 07:07:35 -0600

Seen: 2,187 times

Last updated: May 05 '18