Skip to content

Conversation

@HansOlsson
Copy link
Contributor

Remove use of unitK and unitH and instead use proper units.
(Keeping them just in case.)
Part is related #4053 - other part mean that we get Resistance as input to the variable Resistance - which makes sense to me.

Based on comment in #4053 is should be an issue for Thomas Boedrich and Johannes Ziske - but I couldn't find the latter and the former had latest activity in 2020.

@HansOlsson HansOlsson added the L: Magnetic.FluxTubes Issue addresses Modelica.Magnetic.FluxTubes label Jun 19, 2023
@HansOlsson HansOlsson added L: Electrical.Machines Issue addresses Modelica.Electrical.Machines L: Magnetic.FundamentalWave Issue addresses Modelica.Magnetic.FundamentalWave L: Magnetic.QuasiStatic Issue addresses Modelica.Magnetic.QuasiStatic labels Jun 19, 2023
@HansOlsson
Copy link
Contributor Author

Also removed unitFrequency for similar cases.
I'm more and more convinced that any use of unit... is a code smell.

@HansOlsson HansOlsson added the bug Critical/severe issue label Sep 12, 2023
@Harisankar-Allimangalath
Copy link
Contributor

@christiankral can you review the changes , Thanks .

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.

This PR looks good to me.

@christiankral
Copy link
Contributor

christiankral commented Dec 4, 2023

@HansOlsson Is there way to savely remove the "ghosting" constants by means of a conversion script? If yes, we should open a ticket to not forget about it in the future.

@HansOlsson HansOlsson enabled auto-merge December 11, 2023 15:29
@HansOlsson HansOlsson merged commit 81f039f into modelica:master Dec 11, 2023
@beutlich beutlich removed the request for review from ThomasBoedrich December 11, 2023 19:01
@beutlich beutlich added this to the MSL4.1.0 milestone Dec 11, 2023
@HansOlsson HansOlsson deleted the RemoveUnitCasting branch December 13, 2023 08:10
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.Machines Issue addresses Modelica.Electrical.Machines L: Magnetic.FluxTubes Issue addresses Modelica.Magnetic.FluxTubes L: Magnetic.FundamentalWave Issue addresses Modelica.Magnetic.FundamentalWave L: Magnetic.QuasiStatic Issue addresses Modelica.Magnetic.QuasiStatic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants