Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ODE based Tx line Model Development #516

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
5afd89e
Included ODE based Tx line equations
aaliqureshi Mar 2, 2024
c26bcb9
Merge branch 'master' into DPLine
cuihantao Mar 4, 2024
f914998
Force `diag_eps` for bus variables.
cuihantao Mar 6, 2024
f955c3e
Typo in DAE Scalar Descriptions
weigao-123 Mar 7, 2024
f73b124
Typo in DAE Scalar Descriptions
weigao-123 Mar 7, 2024
732e8b7
Typo in DAE Scalar Descriptions
weigao-123 Mar 8, 2024
b5df676
Merge pull request #517 from weigao-123/doc
jinningwang Mar 8, 2024
1978194
TRBDF2 dirty version added
aaliqureshi Mar 8, 2024
efc8751
t_const for Tx line ODE added
aaliqureshi Mar 8, 2024
2a3b052
Merge branch 'DPLine' of github.com:aaliqureshi/andes into DPLine
aaliqureshi Mar 8, 2024
5cb1a91
Format file
cuihantao Mar 10, 2024
d409483
Allow steady state power flow to be solved when DPLine is off.
cuihantao Mar 10, 2024
7ea376e
Add placeholder field `amachint` for PSS/E data
cuihantao Mar 16, 2024
c8373e7
Add `wmod` field for psse data.
cuihantao Mar 16, 2024
308ecd8
Update notes.
cuihantao Mar 16, 2024
22a9dd1
Update github remote name to `curent`.
cuihantao Mar 17, 2024
a00f05f
Fix PSS/E line parser to include status field `u`.
cuihantao Mar 18, 2024
b79a8cf
Fix an indexing issue with Line.
cuihantao Mar 18, 2024
5b7acbd
[WIP] Add function for generating network admittance matrix.
cuihantao Mar 19, 2024
b4624e2
Add note on Octave installation.
cuihantao Mar 20, 2024
46c1adb
Update variable names for clarity.
cuihantao Mar 20, 2024
4a8a7f4
Add test code.
cuihantao Mar 20, 2024
dfd6bb9
Add function for building Bdc matrix like in MATPOWER. Update tests.
cuihantao Mar 21, 2024
4f991fc
Update.
cuihantao Mar 21, 2024
127dc46
Fix format.
cuihantao Mar 21, 2024
4f533a0
Save intermediate matrices.
cuihantao Mar 25, 2024
a7b27f2
Edit year.
cuihantao Mar 25, 2024
b1c5f2c
Update.
cuihantao Mar 25, 2024
7a87ad5
Update date.
cuihantao Mar 25, 2024
7cc8daf
Update.
cuihantao Mar 31, 2024
000825b
Merge branch 'develop' into DPLine
cuihantao Mar 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Types of Contributions
Report Bugs
~~~~~~~~~~~

Report bugs at https://github.com/cuihantao/andes/issues.
Report bugs at https://github.com/curent/andes/issues.

If you are reporting a bug, please include:

Expand Down Expand Up @@ -42,7 +42,7 @@ or even on the web in blog posts, articles, and such.
Submit Feedback
~~~~~~~~~~~~~~~

The best way to send feedback is to file an issue at https://github.com/cuihantao/andes/issues.
The best way to send feedback is to file an issue at https://github.com/curent/andes/issues.

If you are proposing a feature:

Expand Down Expand Up @@ -97,8 +97,8 @@ Before you submit a pull request, check that it meets these guidelines:
2. If the pull request adds functionality, the docs should be updated. Put
your new functionality into a function with a docstring, and add the
feature to the list in README.rst.
3. The pull request should work for Python 3.6 and up. Check
https://github.com/cuihantao/andes/actions
3. The pull request should work for Python 3.8 and up. Check
https://github.com/curent/andes/actions
and make sure that the tests pass for all supported Python versions.

============
Expand Down
457 changes: 457 additions & 0 deletions andes/cases/SMIB_Chow/ANDES_Chow_Out_Inductance.csv

Large diffs are not rendered by default.

457 changes: 457 additions & 0 deletions andes/cases/SMIB_Chow/ANDES_Chow_Out_RL_Line.csv

Large diffs are not rendered by default.

Binary file added andes/cases/SMIB_Chow/SMIB_Mod.xlsx
Binary file not shown.
Binary file added andes/cases/SMIB_Chow/SMIB_Mod_B.xlsx
Binary file not shown.
Binary file added andes/cases/SMIB_Chow/SMIB_Mod_Tx.xlsx
Binary file not shown.
Binary file added andes/cases/SMIB_Chow/SMIB_RL_Line.xlsx
Binary file not shown.
204 changes: 204 additions & 0 deletions andes/cases/SMIB_Chow/Save_data.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import andes"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Working directory: \"/home/aaliqureshi/andes/andes/cases/SMIB_Chow\"\n",
"> Loaded config from file \"/home/aaliqureshi/.andes/andes.rc\"\n",
"> Loaded generated Python code in \"/home/aaliqureshi/.andes/pycode\".\n",
"Generated code for <PQ> is stale.\n",
"Numerical code generation (rapid incremental mode) started...\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Generating code for 1 models on 8 processes.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Saved generated pycode to \"/home/aaliqureshi/.andes/pycode\"\n",
"> Reloaded generated Python code of module \"pycode\".\n",
"Generated numerical code for 1 models in 0.1786 seconds.\n",
"Parsing input file \"./SMIB_RL_Line.xlsx\"...\n",
"Input file parsed in 0.4110 seconds.\n",
"System internal structure set up in 0.0289 seconds.\n",
"-> System connectivity check results:\n",
" No islanded bus detected.\n",
" System is interconnected.\n",
" Each island has a slack bus correctly defined and enabled.\n",
"\n",
"-> Power flow calculation\n",
" Numba: Off\n",
" Sparse solver: KLU\n",
" Solution method: NR method\n",
"Power flow initialized in 0.0045 seconds.\n",
"0: |F(x)| = 0.9236039498\n",
"1: |F(x)| = 0.1578673997\n",
"2: |F(x)| = 0.0019952715\n",
"3: |F(x)| = 3.351401032e-07\n",
"Converged in 4 iterations in 0.0052 seconds.\n",
"Report saved to \"SMIB_RL_Line_out.txt\" in 0.0008 seconds.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"-> Single process finished in 0.9327 seconds.\n"
]
}
],
"source": [
"ss = andes.run(\"./SMIB_RL_Line.xlsx\")"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"ss.TDS.config.tf = 15"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"\n",
"-> Time Domain Simulation Summary:\n",
"Sparse Solver: KLU\n",
"Simulation time: 0.0-15 s.\n",
"Fixed step size: h=33.33 ms. Shrink if not converged.\n",
"Initialization for dynamics completed in 0.0259 seconds.\n",
"Initialization was successful.\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "39ef888f0aa44a73835f1938100ac2da",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
" 0%| | 0/100 [00:00<?, ?%/s]"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"<Fault Fault_1>: Applying fault on Bus (idx=3) at t=6.0 sec.\n",
"<Fault Fault_1>: Clearing fault on Bus (idx=3) at t=6.1 sec.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Simulation to t=15.00 sec completed in 0.3628 seconds.\n",
"Outputs to \"SMIB_RL_Line_out.lst\" and \"SMIB_RL_Line_out.npz\".\n",
"Outputs written in 0.0026 seconds.\n"
]
},
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"ss.TDS.run()"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"CSV data saved to \"ANDES_Chow_Out_RL_Line.csv\".\n"
]
},
{
"data": {
"text/plain": [
"'ANDES_Chow_Out_RL_Line.csv'"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"ss.TDS.plt.export_csv(\"ANDES_Chow_Out_RL_Line.csv\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "andes",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.0"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Empty file.
Loading
Loading