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

Major refactoring the system models to a more modular form #128

Merged
merged 17 commits into from
Jun 5, 2024

Conversation

mhinkkan
Copy link
Member

@mhinkkan mhinkkan commented Jun 5, 2024

The handling of the state variables, inputs, and outputs is changed so that the subsystems become more modular. Furthermore, main-level system models are simpler and their amount is reduced significantly.

The subsystems contain set_outputs() and rhs() methods, which are called by the main-level system model, whose base class is Model(ABC). The basic drive model is Drive(Model), which contains the interconnections of the subsystems in the interconnect() method. The same Drive class can now be used with both induction and synchronous machines (as well as with a diode bridge model, two-mass mechanics or other subsystems where the interconnections remain the same ). The post-processing is moved to subsystems to make it more modular as well.

@mhinkkan mhinkkan merged commit 434e969 into Aalto-Electric-Drives:main Jun 5, 2024
1 check passed
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.

2 participants