Skip to content

Commit

Permalink
v0.4.2. (1) Fix bug in powerflow solver when var check logic was disa…
Browse files Browse the repository at this point in the history
…bled to set slack and pv source power. (2) Add new function and APIs to show powerflow solver and dynamic simulator configuration. (3) Update models by initializing device's bus pointer to accelerate bus voltage and frequency retrieve. A new private variable internal_bus_pointer is also added to dynamic_simulator to reduce the burden of retrieving bus from database. Performance is improved. (4) Update stepspy. (5) fast-math flag is enabled in complier options to accelerate STEPS
  • Loading branch information
changgang committed Aug 27, 2019
1 parent 4251c90 commit 98dbece
Show file tree
Hide file tree
Showing 63 changed files with 6,491 additions and 3,508 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ Here is a complete procedure of how to build STEPS.
## How to use stepspy
stepspy is a Python module of advanced APIs of STEPS. It enables most of STEPS applications. It is recommended to use stepspy in Python 3 of 64-bit version, though Python 2 is also supported.

stepspy will be uploaded to pypi.org soon, and will be installed via:
stepspy has been uploaded to pypi.org, and can be installed via:
- pip3 install stepspy
- python -m pip install stepspy
26 changes: 13 additions & 13 deletions bench/IEEE39_wind.dyr
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@
/ 36 'WT3G0' 1 560 1.5 0.02 0.2 0.02 0.5 0.9 1.22
/ 0.02 0.8 20.0
/ 0.0 0.0 0.1 -0.1 /
36 'WT3G2' 1 0.02 0.02 0.0 0.0 0.1 1.5
36 'WT3G2' 1 600 0.02 0.02 0.0 0.0 0.1 1.5
0.5 0.9 1.22 0.8 20.0 0.2 0.02/
36 'AERD0' 1 0 3 13.0 1.0 1.25 0.7 1.2 1.25
0.5176 116.0 0.4 5.0 21.0 0.0068 0.08 0.035/
36 'WT3T0' 1 2.5, 0.5 0.3 1.0 0.0/
36 'WT3E0' 1 0 0 1
0.0, 0.02, 1.0, 18.0, 0.05, 5.0, -0.5, 0.5, 0.15, 0.05,
0.1, 0.9, 1.1, 10.0, -1.5, 1.45,
10.0, 0.0, 0.00001, 20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
/ 0.1, 0.9, 1.1, 10.0, -1.5, 1.45,
/ 60.0, 3.0, 0.6, 0.0, 1.0, 15.0, 0.1, 0.0, 0.0, 0.0
/ -0.45, 0.45, 0.05, 0.04, 1.12, 1.1/
37 'WT3P0' 1 0, 60.0, 150.0, 25.0, 0.2, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1, 90.0, 0.0, 90.0 1.0/
37 'WTRLY0' 1
0
Expand Down
9 changes: 6 additions & 3 deletions code/STEPS.cbp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<Add option="-O3" />
<Add option="-Wall" />
<Add option="-std=c++1z" />
<Add option="-ffast-math" />
<Add directory="../code" />
<Add directory="thirdparty/SuiteSparse/UMFPACK/Include" />
<Add directory="thirdparty/SuiteSparse/CSparse/Include" />
Expand All @@ -28,8 +29,10 @@
<Add directory="thirdparty/SuiteSparse/BTF/Include" />
</Compiler>
<Linker>
<Add option="-O3" />
<Add option="-static-libstdc++" />
<Add option="-static-libgcc" />
<Add option="-ffast-math" />
<Add library="../build/bin/Release/libCSparse.a" />
<Add library="../build/bin/Release/libCpptest.a" />
</Linker>
Expand Down Expand Up @@ -355,13 +358,13 @@
<Unit filename="main_dynamics_simulation.cpp">
<Option link="0" />
</Unit>
<Unit filename="main_gprof.cpp">
<Unit filename="main_gprof.cpp" />
<Unit filename="main_powerflow.cpp">
<Option link="0" />
</Unit>
<Unit filename="main_powerflow.cpp">
<Unit filename="main_tests.cpp">
<Option link="0" />
</Unit>
<Unit filename="main_tests.cpp" />
<Unit filename="main_ufls_simulation.cpp">
<Option link="0" />
</Unit>
Expand Down
Loading

0 comments on commit 98dbece

Please sign in to comment.