- Notifications
You must be signed in to change notification settings - Fork0
Julia interface for Easy SimAuto(ESA) and PowerWorld Simulator
License
mzy2240/EasySimauto.jl
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The Julia interface forEasy SimAuto (ESA) and PowerWorld COM object (SimAuto Server).
EasySimauto.jl
is the Julia API for ESA, an easy-to-use power system analysis automation environment atop PowerWorld Simulator
InstallEasySimauto.jl
with
using PkgPkg.add("EasySimauto")
If you have installed ESA in an existing Python environment and do not want to reinstall it from conda, you can configure it in Pycall.
You can manually set the Python path with the following commands in Julia:
ENV["PYTHON"] = "... path of the python executable ..." Pkg.build("PyCall")
Check out thedocumentation ofPyCall.jl
for more details.
EasySimauto.jl
exposes all Python APIs underesa.py
. Use the package with
using EasySimauto
Two classesesa
andSAW
are exposed once loading the module. Then all the methods inesa.py
shall be available in Julia. For example, to load a case file and run power flow analysis, use
using EasySimautocase_path=raw"C:\Users\myuser\git\ESA\tests\cases\ieee_14\IEEE 14 bus_pws_version_21.pwb"saw=SAW(case_path)saw.SolvePowerFlow()bus_data= saw.get_power_flow_results("bus")print(bus_data)
The example above is taken fromQuick Start and translated to Julia.
VisitESA Documentation for tutorial and API details
We welcome contributions! Please readcontributing.md
.
EasySimauto.jl
is released underApache License 2.0.
This work was supported by the U.S. Department of Energy (DOE) under award DE-OE0000895 and the Sandia National Laboratories’ directed R&D project #222444.
Special thanks toDr. Hantao Cui for his advice and help!
About
Julia interface for Easy SimAuto(ESA) and PowerWorld Simulator