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 propagation of start time in IntersectivePWM #4090

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

christiankral
Copy link
Contributor

@christiankral christiankral commented Mar 12, 2023

Refs #4089

@christiankral christiankral marked this pull request as draft March 12, 2023 10:33
@christiankral christiankral added bug Critical/severe issue L: Electrical.PowerConverters Issue addresses Modelica.Electrical.PowerConverters labels Mar 12, 2023
@christiankral christiankral added this to the maintenance milestone Mar 12, 2023
@christiankral
Copy link
Contributor Author

I think it also makes sense to update the documentation to more clearly explain what the difference between the different phase shift strategies is.

@beutlich beutlich modified the milestones: maintenance, MSL4.1.0 Mar 14, 2023
@AHaumer AHaumer marked this pull request as ready for review April 27, 2023 17:02
Copy link
Contributor

@AHaumer AHaumer left a comment

Choose a reason for hiding this comment

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

fine with me, thanks!

@AHaumer
Copy link
Contributor

AHaumer commented Apr 27, 2023

Don't know why continuous-integration/ jenkins... fails?

@henrikt-ma
Copy link
Contributor

Don't know why continuous-integration/ jenkins... fails?

As far as I can tell we have a green light, at least as of now.

@TManikantan
Copy link
Contributor

TManikantan commented May 5, 2023

@henrikt-ma @AHaumer i think it requires approval from second reviewer for merging.I am not able to add @christiankral for some reason as a reviewer,he is the only other library officer other than @AHaumer who had already given his approval. Can you suggest someone who can review and approve this PR?

@TManikantan TManikantan linked an issue May 5, 2023 that may be closed by this pull request
@henrikt-ma
Copy link
Contributor

I'm sorry, I'm not the right person to recommend reviewers in this project.

@christiankral
Copy link
Contributor Author

christiankral commented May 10, 2023

The main purpose of this PR is not the documentation (which I provided so far), but the fix of the propagation of the start time as described in #4089. The actual implementation

  1. does not propagate correct units
    final startTime={startTime - 1.25 + (if refType == ReferenceType.Triangle1 then 0 else k)/m for k in 0:m - 1}/f) ...
  2. and does not (at all) calculate the correct start times.

The following graph shows how I think that the original implementation was intended.

sawTooth3

Two issues have to be resolved before moving forward with this PR:

  1. Based on the shown graph: @AHaumer Is this the way how start time shall be implemented? On my opinion the first triangle signal shall start 1/f later than shown, don't you agree? Otherwise the actual start time suggests an instance in time earlier than possibly intended.
  2. The meaning of the start time shall also be clarified: At the start time all three bridge branches shall already be supplied with firing signals, but no longer than necessary (this is why I think the first signal shall start 1/f later).

After clarifying these issues, we can go ahead with providing a code fix for this BUG (units are wrong and times are not determined correctly! So this fix then shall rather go into maintenance ...

@TManikantan
Copy link
Contributor

The main purpose of this PR is not the documentation (which I provided so far), but the fix of the propagation of the start time as described in #4089. The actual implementation

  1. does not propagate correct units
    final startTime={startTime - 1.25 + (if refType == ReferenceType.Triangle1 then 0 else k)/m for k in 0:m - 1}/f) ...
  2. and does not (at all) calculate the correct start times.

The following graph shows how I think that the original implementation was intended.

sawTooth3

Two issues have to be resolved before moving forward with this PR:

  1. Based on the shown graph: @AHaumer Is this the way how start time shall be implemented? On my opinion the first triangle signal shall start 1/f later than shown, don't you agree? Otherwise the actual start time suggests an instance in time earlier than possibly intended.
  2. The meaning of the start time shall also be clarified: At the start time all three bridge branches shall already be supplied with firing signals, but no longer than necessary (this is why I think the first signal shall start 1/f later).

After clarifying these issues, we can go ahead with providing a code fix for this BUG (units are wrong and times are not determined correctly! So this fix then shall rather go into maintenance ...

@AHaumer would you please comment on the suggestions made by @christiankral

@AHaumer
Copy link
Contributor

AHaumer commented Jan 16, 2024

We are missing a review, and the checks seem to be stuck

@casella
Copy link
Contributor

casella commented Jan 17, 2024

@AHaumer the missing reviewer should obviously be @christiankral, which has expressed some doubts about this PR, e.g. here. Please provide him some feedback at your earliest convenience.

@GallLeo please change the admin rights so I can give @christiankral write access to the repo and make him a reviewer.

@AHaumer
Copy link
Contributor

AHaumer commented Jan 18, 2024

As far as I see the PR was created by @christiankral and he can't review his own PR.
So @casella please add your review and it's done.
We have a lack of reviewers ...

@christiankral
Copy link
Contributor Author

@AHaumer Up to now the bug reported in #4089 is not yet fixed through this PR. My request was: Could you please fix this issue the way I proposed it verbally in #4089, considering, that you agree with my proposal.

@AHaumer
Copy link
Contributor

AHaumer commented Jan 24, 2024

This is not real a blocker, and it seems that it is not used a lot.
It's better to spend some time to get a clean solution instead of having a quick and dirty solutionh.
Therefore: Shift the milestone.

@AHaumer AHaumer modified the milestones: MSL4.1.0, MSL4.2.0 Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Critical/severe issue L: Electrical.PowerConverters Issue addresses Modelica.Electrical.PowerConverters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Faulty parameter propagation in IntersectivePWM
6 participants