This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buses = app.GetCalcRelevantObjects("*.ElmTerm") | |
events_folder = app.GetFromStudyCase('IntEvt'); # to get events folder | |
evt1 = events_folder.CreateObject('EvtShc', 'short circuit'); # generator switch event is created here | |
evt1[0].p_target = buses[1] # event target is the 1 bus | |
evt1[0].time = 1.0 # short circuit starts at t=1 s | |
evt1[0].i_shc = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
sys.path.append(r"C:\DigSILENT15p1p7\python") | |
# import PowerFactory module | |
import powerfactory | |
# start PowerFactory in engine mode | |
app = powerfactory.GetApplication() | |
user = app.GetCurrentUser() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set Sloads,BusBars,allBars,OldMons; | |
object Ldf; | |
double X; | |
object busbar,result; | |
string nombre; | |
allBars = AllRelevant('*.ElmTerm'); | |
!Ldf = GetCaseCommand('ComLdf'); | |
fopen('test.txt','w',0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install gfortran libopenblas-dev liblapack-dev | |
sudo apt-get install python-dev | |
sudo apt-get scipy | |
sudo apt-get install git | |
virtualbox | |
========== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/ |