Skip to content

Conversation

@HansOlsson
Copy link
Contributor

It builds on #4040
There is only one new commit here (the latest one); it might be better to cherry-pick - but this combined PR ensures that there are no unit-errors in the library.

This commit changes a start-value and actually changes the simulation results for the example as follows.
Simulating Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM we get:

SpeedControlledDCPM

The blue line indicates that previously the inverter started with a current of 120A and then quickly settled at 0A, now it starts at 0A. The start-value was VMax - which doesn't make sense for a current; I believe it was copied from the voltage-controller-component.

I believe we should consider also back-porting this to the maintenance-branch.

This is related to modelica#3881
These changes are completely safe.
Adding a protected element in an example model should be ok.
Detected due to unit-checking.
@HansOlsson HansOlsson added bug Critical/severe issue L: Electrical.Machines Issue addresses Modelica.Electrical.Machines labels Sep 30, 2022
@HansOlsson HansOlsson requested a review from AHaumer September 30, 2022 12:29
@beutlich beutlich added L: Magnetic.FundamentalWave Issue addresses Modelica.Magnetic.FundamentalWave example Issue only addresses example(s) labels Sep 30, 2022
Copy link
Contributor

@christiankral christiankral left a comment

Choose a reason for hiding this comment

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

Looks good from my side

@christiankral
Copy link
Contributor

I prefer #4041 over the save solution in #4040.

@christiankral
Copy link
Contributor

As a simulation example does not have to be backwards compatible there is no reason to keep it backwards compatible.

@HansOlsson HansOlsson merged commit bf66b23 into modelica:master Jun 13, 2023
@HansOlsson HansOlsson deleted the RemoveUnitErrorChanging branch June 13, 2023 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Critical/severe issue example Issue only addresses example(s) L: Electrical.Machines Issue addresses Modelica.Electrical.Machines L: Magnetic.FundamentalWave Issue addresses Modelica.Magnetic.FundamentalWave

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants