Ask Your Question

AML's profile - activity

2022-05-15 07:48:30 -0500 asked a question Add generator using for loop

I want to add ten of the same generator at bus 211

for j in range(2,11):
    psspy.machine_data_2(211,r"""j""",[1,22,0,0,0,0],
 [0.0,0.0, 9999.0,-9999.0, 9999.0,-9999.0, 100.0,0.0, 1.0,0.0,0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0])
    psspy.machine_chng_2(211,r"""j""",[_i,2,22,_i,_i,_i],
 [ 600.0, 35.0086, 400.0,-100.0, 616.25,_f, 725.0, 0.01, 0.26,_f,_f,_f, 0.4, 0.6,_f,_f,_f])

ID of machinedata2 must be string, j can't change string, what should I do?

2022-04-20 23:25:42 -0500 received badge  Famous Question (source)
2022-04-16 02:23:55 -0500 received badge  Notable Question (source)
2022-04-15 08:37:56 -0500 received badge  Popular Question (source)
2022-04-14 05:26:54 -0500 asked a question SOCini in BESS

I'm use BESS data from "Example .dyr data for BESS"

I want to change SOCini to see what different storage of battery affect system.

Change SOCini of REECCU1 in savnw_BESS.dyr from 0.2 to 0.5, but 3018 residual energy still start from 0.2 and frequency is wrong too.

Frequency should be lower when bus fault occur.

My point not enough to upload picture.

2022-03-06 04:03:28 -0500 received badge  Enthusiast
2022-03-04 01:00:14 -0500 received badge  Famous Question (source)
2022-03-02 14:47:59 -0500 received badge  Notable Question (source)
2022-03-01 18:15:44 -0500 received badge  Popular Question (source)
2022-03-01 16:15:41 -0500 commented answer Python cannot import psspy

I solved the problem! Add PSSE34 path to environmental variable. Although VS code says "Import "psspy" could not be resolved" but the program can run now.

2022-03-01 15:48:39 -0500 commented answer Python cannot import psspy

I found this https://psspy.org/psse-help-forum/question/2751/importerror-dll-load-failed/ my psspyc.pyd in PSSPY34 folder and python is 32-bits

2022-03-01 15:39:57 -0500 commented answer Python cannot import psspy

I want to use pythoon v3.4, change sys_path_PSSE to PSSPY34' ERROR:ImportError: DLL load failed: The specified module could not be found

2022-03-01 03:25:24 -0500 received badge  Editor (source)
2022-03-01 03:25:08 -0500 asked a question Python cannot import psspy

Hello everyone, My python version is 3.4.0, PSSE version is 34, I look all of the forum article but questions still here. This is my code:

import os

import sys

sys_path_PSSE=r'C:/Program Files (x86)/PTI/PSSE34/PSSPY27'  #or where else you find the psspy.pyc

sys.path.append(sys_path_PSSE)

os_path_PSSE=r' C:/Program Files (x86)/PTI/PSSE34/PSSBIN'  # or where else you find the psse.exe

os.environ['PATH'] += ';' + os_path_PSSE

os.environ['PATH'] += ';' + sys_path_PSSE

import psspy

REEOR:ImportError: bad magic number in 'psspy': b'\x03\xf3\r\n'

Paths of PSSE and psspy are right, version of python and psspy correspond, I can't figure out why this happended.