Ask Your Question

NunoFul's profile - activity

2022-06-21 11:50:04 -0500 received badge  Famous Question (source)
2020-06-01 10:13:29 -0500 answered a question how do I disable the window showing the logs of the power flow solution in python?

I also have a problem with the production of these reports, even directing them to file (islct = 2). After many simulations (about 4000 or 5000), instead of around 0.001 seconds, these commands start taking 40+ seconds each!

The workaround was simply deactivate them. Since I am running dynamic simulations in an iterative optimisation algorithm, only the best solutions have reports. The others are ignored.

Anyways, if anyone has any suggestion on this, I would appreciate it :) Thanks.

Best, Nuno

2020-05-28 12:31:07 -0500 answered a question Reloading PSS/E slows down simulations?

Cannot vote yet, so here's the comment: +1 with the same problem.

Running an optimisation algorithm to iteratively change the model's parameters. First ~1000 runs are smooth and pretty fast (<0.5s), and suddenly the simulations start taking around 3 to 5 seconds. No CPU or RAM limitation, in my case.

Any ideas?

Thanks a lot!

Best, Nuno F.

2020-05-13 05:11:47 -0500 commented question UDM - Environment Manager

I've looked online and I haven't found any solution for this. Hopefully someone here will! Please help this poor soul, we all do understand the feeling of "unbeatable quest" upon PSS/E installation. Goog luck, Nuno F

2020-01-17 20:42:40 -0500 received badge  Notable Question (source)
2019-11-06 13:50:42 -0500 received badge  Famous Question (source)
2019-10-31 09:19:06 -0500 commented question 'Yes?' - How to take this away (Python + PSS/E)

Not really, it does happen anyways. I only added that info because it could be related with that command, seen it comes right after that 'Yes?'. I have no idea why it happens...

2019-10-31 08:37:31 -0500 received badge  Notable Question (source)
2019-10-30 09:12:20 -0500 received badge  Popular Question (source)
2019-10-29 12:09:42 -0500 asked a question 'Yes?' - How to take this away (Python + PSS/E)

Everytime I run PSS/E with Python, if using the shortcut "shift+F10" from Pycharm, the execution starts, but eventually stops with this "Yes?" question in the prompt. By magic, when I use the "run" button from the IDE it does not occur...

This comes right after the:

ierr = psspy.psseinit(0)

After this I redirect the progress output to files:

psspy.progress_output(2, progress_file, [0, 0])
psspy.report_output(2, report_file, [0, 0])
psspy.alert_output(2, alert_file, [0, 0])
psspy.prompt_output(2, prompt_file, [0, 0])

Any idea what should it be? This is how it looks:

PSS(R)E Version 34
Copyright (c) 1976-2019
Siemens Industry, Inc.,
Power Technologies International                            (PTI)
This program is a confidential  unpublished  work  created  and  first
licensed in 1976.  It is a trade secret which is the property of  PTI.
All use,  disclosure,  and/or reproduction not specifically authorized
by  PTI  is prohibited.   This  program is protected  under  copyright
laws  of  non-U.S.  countries  and  by  application  of  international
treaties.  All  Rights  Reserved  Under  The  Copyright  Laws.

           SIEMENS POWER TECHNOLOGIES INTERNATIONAL

      50000 BUS POWER SYSTEM SIMULATOR--PSS(R)E-34.5.1

             INITIATED ON TUE, OCT 29 2019  17:08

Yes?

Thank you very much!

2019-09-26 08:01:18 -0500 commented answer How to get the Model VARS value output in Dynamic Simulation?

Yes! That's it. Thank you very much :)

2019-09-24 08:54:26 -0500 answered a question How to get the Model VARS value output in Dynamic Simulation?

Hello, I have a similar doubt, and I don't think it has been responded.

I wanted to know, via Python, which are the VARs for each model, so I can iterate it and plot them on demand. The idea is to define a function that returns the numbers of the VARs per model - similar to the info we can get with DOCU.

Thanks, Nuno

2019-09-20 23:07:45 -0500 received badge  Popular Question (source)
2019-09-18 09:51:51 -0500 received badge  Organizer (source)
2019-09-18 09:51:01 -0500 asked a question Using more than one CIM5OW model

Dear all,

I'm having problems in adding more than one CIM5OW model (induction motor) to the network. Every time I run the dynamic simulation, it crashes down. I'm basically using OWNER 1 for some loads, and OWNER 2 to some other.

1 'CIM5OW'            *            2    0.099   0.112   2.26    0.086   0.102   0   0   1   0.03    1.2 0.04    0   1   0.737   0.9 100 10  0   0.85/ 

2 'CIM5OW'            *            2    0.098   0.111   2.25    0.085   0.101   0   0   1   0.03    1.2 0.04    0   1   0.736   0.9 100 10  0   0.85/

I've tried to change the IDs of the loads per OWNER, and even using all loads with different IDs. Any idea what might be causing it?

NOTE: When using only one CIM5OW model it works, but I had to reduce the DELT value from 10ms to 1ms, otherwise PSS/E would crash as well.

Thank you all,

Nuno F.

2019-09-18 09:46:09 -0500 answered a question How to set different load models in dynamic simulation?

Dear all,

I'm having problems in adding more than one CIM5OW model to the network. Every time I run the dynamic simulation, it crashes down. I'm basically using OWNER 1 for some loads, and OWNER 2 to some other.

1 'CIM5OW'            *            2    0.099   0.112   2.26    0.086   0.102   0   0   1   0.03    1.2 0.04    0   1   0.737   0.9 100 10  0   0.85/ 

2 'CIM5OW'            *            2    0.098   0.111   2.25    0.085   0.101   0   0   1   0.03    1.2 0.04    0   1   0.736   0.9 100 10  0   0.85/

I've tried to change the IDs of the loads per OWNER, and even using all loads with different IDs. Any idea what might be causing it?

NOTE: When using only one CIM5OW model it works, but I had to reduce the DELT value from 10ms to 1ms, otherwise PSS/E would crash as well.

Thank you all :)

2019-09-03 04:18:14 -0500 received badge  Enthusiast
2019-09-03 04:18:14 -0500 received badge  Enthusiast
2019-08-13 04:41:34 -0500 received badge  Famous Question (source)
2019-08-12 01:48:08 -0500 received badge  Notable Question (source)
2019-08-08 21:48:32 -0500 received badge  Popular Question (source)
2019-08-08 12:18:02 -0500 answered a question Create DLL using Python

Hi pschmurr!

Thank you very much for your reply. That actually helped a lot. Based on your response, I've adapted the psse_env_manager.create_dll function that worked well. The code goes as following:

import psse_env_manager
import os

psse_version = 34
conec_file = r"C:\\...\\conec.flx"
conet_file = r"C:\\...\\conet.flx"
objlibfiles = r"C:\\...\\mymodel.obj"
dllname = r"C:\\...\\dsusr.dll"
workdir = r"C:\\...\\"
ivf_version = 'latest'

psse_env_manager.create_dll(psse_version, conec_file, conet_file, objlibfiles=objlibfiles,
                   dllname=dllname, workdir=workdir, showprg=True, useivfvrsn=ivf_version,
                   shortname='DSUSR', description='', majorversion=1, minorversion=0,
                   buildversion=0, companyname='', mypathlib=False)

To be noted that I use Visual Studio 2015.

Best, Nuno F.

2019-08-07 10:38:18 -0500 received badge  Editor (source)
2019-08-07 10:35:43 -0500 asked a question Create DLL using Python

Hello everyone!

Does anyone knows if it is possible to automate the Compilation and Link of user-defined models and respective DLL creation on the PSSE Environment Manager, using Python?

(using, in my case: PSSE v34, EM 8.1.0, IVF 19, Python 2.7, Visual Studio 2015)

Thanks, Nuno F.