Skip to content

Conversation

hexaeder
Copy link
Member

@hexaeder hexaeder commented Sep 19, 2025

This PR starts adding OpenIPSL models.
Many OpenIPSL models are tested in a SMIB model. We can execute those test cases and export CSV files from them.
We reproduce the SMIB test case in PowerDynamics so we can directly compare to reference. This PR implemnts the

  • SMIB "testharness" in power dynamics
  • implements a script which automaticially creats the csv reference files for a testcase
  • implements the PSSE.GENCLS model and tests it against reference

It also includes a markdown file explaining the process which can be feed to AI agents to hopefully partially automate the process.

Machines

  • GENCLS
  • GENROU
  • GENROE
  • GENSAL
  • GENSAE

Exciters

  • IEEET1
  • ESST4B
  • ESST1A - needed for testcase of IEEEST
  • EXST1
  • SCRX

Govenors

  • IEEEG1
  • GGOV1 - well, its complicated. I think the OpenIPSL model is slightly wrong and the initialisation is at its limits. So implemented but not ready for use and not fully tested
  • HYGOV - also a bit complicated (initialization point not unique)

PSS

  • IEEEST -> needed in IEEE39 files from Texas AMU

otherwise, _out might be initialized at 0 which leads
to max iters at t=0
@hexaeder
Copy link
Member Author

We have some problems with the doc layout. I linked the references images in the docstring of the models:

Validated against the OpenIPSL SMIB testcase
[`Tests.Machines.PSSE.GENROU`](https://github.com/OpenIPSL/OpenIPSL/blob/fe8aa5c/OpenIPSL/Tests/Machines/PSSE/GENROU.mo).
See [validation plot](../assets/OpenIPSL_valid/GENROU.png) generated by automatic validation script in `/test/OpenIPSL_test`.

however, this is not registered as a correct relative link ../assets/OpenIPSL_valid/GENROU.png in a docstring, because it only makes sense once the docstring is spliced into the ComponentLibrary.html file.
I'm gonna merge anyway. This will result in a red cross in doc ci for now, however since i am per default rebuild the docs nonstrict (disabled linkcheck) for deployment we still get deployed docs. I'll figure out a better solution later to get the green badge back. In the build document the links actually work, its just that they don't satisfy the strict interlink checks.

on 1.12.0 we get some internal typ inference error
in the 9bus system -- i still works but renders the
example ugly.
@hexaeder hexaeder merged commit 540814f into main Oct 13, 2025
3 of 7 checks passed
@hexaeder hexaeder deleted the hw/openipsl branch October 13, 2025 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant