Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Julia interface for Easy SimAuto(ESA) and PowerWorld Simulator

License

NotificationsYou must be signed in to change notification settings

mzy2240/EasySimauto.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EasySimauto.jl

The Julia interface forEasy SimAuto (ESA) and PowerWorld COM object (SimAuto Server).

Introduction

EasySimauto.jl is the Julia API for ESA, an easy-to-use power system analysis automation environment atop PowerWorld Simulator

Installation

InstallEasySimauto.jl with

using PkgPkg.add("EasySimauto")

(Optional) Customize Python Environment

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.

Usage

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

Contribution

We welcome contributions! Please readcontributing.md.

License

EasySimauto.jl is released underApache License 2.0.

Acknowledgement

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!


[8]ページ先頭

©2009-2025 Movatter.jp