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

Addition of EMT::Ph1::Switch component #312

Merged
merged 6 commits into from
Aug 16, 2024
Merged

Addition of EMT::Ph1::Switch component #312

merged 6 commits into from
Aug 16, 2024

Conversation

MarvinTollnitschRWTH
Copy link
Contributor

@MarvinTollnitschRWTH MarvinTollnitschRWTH commented Jun 29, 2024

This branch adds:

  • A simple Ph1::Switch component version for the EMT domain.
  • A test Notebook for a circuit VS, Switch, RL1 to test and compare the switch components for the domains EMT_1Ph EMT_3Ph DP_1Ph and SP_1Ph

dpsim-models/include/dpsim-models/EMT/EMT_Ph1_Switch.h Outdated Show resolved Hide resolved
dpsim-models/src/EMT/EMT_Ph1_Switch.cpp Outdated Show resolved Hide resolved
dpsim-models/src/EMT/EMT_Ph1_Switch.cpp Outdated Show resolved Hide resolved
dpsim-models/src/EMT/EMT_Ph1_Switch.cpp Outdated Show resolved Hide resolved
examples/Notebooks/Components/Ph1_Switch.ipynb Outdated Show resolved Hide resolved
Copy link
Collaborator

@leonardocarreras leonardocarreras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a general suggestion, it would be great if you use clang-format to keep the code formatting

dpsim-models/include/dpsim-models/EMT/EMT_Ph1_Switch.h Outdated Show resolved Hide resolved
examples/Notebooks/Components/Ph1_Switch.ipynb Outdated Show resolved Hide resolved
gnakti
gnakti previously approved these changes Jul 22, 2024
@gnakti gnakti force-pushed the Ph1_Switch branch 2 times, most recently from 79c3db7 to c34650d Compare July 22, 2024 09:08
MarvinTollnitschRWTH and others added 6 commits August 15, 2024 22:37
- added Ph1::Switch header and cpp files
- added header to Components.h
- added cpp to CMakeLists.txt
- made Ph1::Switch usable in pybind by adding it in EMTComponents.cpp
- added simple example circuit (VS_sw_R_L) for new EMT::Ph1::Switch model

Signed-off-by: Marvin Tollnitsch <marvin.tollnitsch@rwth-aachen.de>
- declare methods as "override" implementations
- encapsulate system matrix stamps using "MNAStampUtils::stampConductance()"

Signed-off-by: Marvin Tollnitsch <marvin.tollnitsch@rwth-aachen.de>
reformatted files:
- EMT_Ph1_Switch.h
- EMT_Ph1_Switch.cpp

Signed-off-by: Marvin Tollnitsch <marvin.tollnitsch@rwth-aachen.de>
Signed-off-by: Ghassen Nakti <ghassen.nakti@eonerc.rwth-aachen.de>
Signed-off-by: Ghassen Nakti <ghassen.nakti@eonerc.rwth-aachen.de>
- increase simulation time to 2 seconds
- add another switch event to close switch at 1.5 seconds
- fix vs parameters by removing frequency for dp and sp domains
- add assertions to check Ph1::EMT against Ph3::EMT, Ph1::EMT against dp and dp against sp

Signed-off-by: Marvin Tollnitsch <marvin.tollnitsch@rwth-aachen.de>
Copy link

sonarcloud bot commented Aug 15, 2024

@m-mirz
Copy link
Contributor

m-mirz commented Aug 16, 2024

Hm, the villas tests are failing due to docker compose missing. I don’t see how this could be related to the changes here. So, I will ignore the tests for the moment and we have to figure out later why they suddenly pop up.

@m-mirz m-mirz merged commit 832c484 into master Aug 16, 2024
13 of 18 checks passed
@m-mirz m-mirz deleted the Ph1_Switch branch August 16, 2024 18:26
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.

5 participants