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

Fix consistency of calculations at first time step #210

Merged
merged 10 commits into from
Nov 27, 2023

Conversation

martinmoraga
Copy link
Contributor

@martinmoraga martinmoraga commented Mar 27, 2023

This PR ensures that the calculation of the first simulation step means the calculation of the values for the time instant t=mTimeStep, while t=0 is covered by the initialization values. This was not consistently the case, in particular for EMT::Ph3::VoltageSource, which caused corresponding transients at the beginning of some simulations. Moreover, a small error in the intialization of the EMT Power Transformer is fixed. Besides, the scaling of voltages and currents has been harmonised, which is documented now under docs/Development/Guidelines.

Closes #195

@martinmoraga martinmoraga added the bug Something isn't working label Mar 27, 2023
@martinmoraga martinmoraga self-assigned this Mar 27, 2023
@martinmoraga martinmoraga linked an issue Mar 27, 2023 that may be closed by this pull request
@sonarcloud
Copy link

sonarcloud bot commented Mar 27, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

0.0% 0.0% Coverage
25.0% 25.0% Duplication

@sonarcloud
Copy link

sonarcloud bot commented May 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

0.0% 0.0% Coverage
24.8% 24.8% Duplication

@martinmoraga martinmoraga force-pushed the voltage-source-delay branch 3 times, most recently from 863319b to d2b4f3a Compare August 3, 2023 12:56
@martinmoraga martinmoraga force-pushed the voltage-source-delay branch 2 times, most recently from fa007cd to 6755617 Compare August 11, 2023 09:02
@sonarcloud
Copy link

sonarcloud bot commented Aug 11, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

0.0% 0.0% Coverage
23.5% 23.5% Duplication

warning The version of Java (11.0.14.1) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

dpsim-models/src/SimNode.cpp Outdated Show resolved Hide resolved
dpsim-models/src/SystemTopology.cpp Outdated Show resolved Hide resolved
dpsim/src/Simulation.cpp Outdated Show resolved Hide resolved
Signed-off-by: Martin Moraga <[email protected]>
Copy link

sonarcloud bot commented Nov 22, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

0.0% 0.0% Coverage
26.9% 26.9% Duplication

warning The version of Java (11.0.14.1) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

@dinkelbachjan dinkelbachjan changed the title Voltage source delay Fix consistency of calculations at first time step Nov 27, 2023
@dinkelbachjan dinkelbachjan merged commit dfd811d into master Nov 27, 2023
22 checks passed
@stv0g stv0g deleted the voltage-source-delay branch March 7, 2024 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

One-step delay in Voltage source
2 participants