You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Battery model removed from MSL 4.1 and no conversion script #4717
I have just updated some internal libraries and have an issue w/ my models as a model has been removed and I cannot find a conversion script for the MSL (to version 4.1):
The battery model Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.Battery solely consisted of a constant voltage source and a constant internal resistance. So there is no real "need" for such a model. @AHaumer I guess is the reason why this model has been removed.
The package Modelica.Electrical.Batteries has been added. The battery models provided in this package allow a lot of flexibility in considering battery behavior. So there was no need to keep the simple battery model in the Examples package of Machines.
On my opinion a conversion script is not required as models provided in an Examples package may be modified or removed anytime.
Thanks for the quick feedback.
As this is a component model w/in an Examples folder, then I think a conversion script should have been available.
However as you mentioned it was a very simple component. I have duplicated it from the MSL 4.0 and inserted into our own internal library and our models work again.
Thanks for the explanation @christiankral
In 2022 @dietmarw suggested to remove the battery model (consisting of a contant voltage source and an inner resistance) to avoid confusion with the Modelica.Electrical.Batteries package.
The "battery" model was part of the examples package - so no conversions script needed. @Walshest for your convenience you'll find attached the zipped "old" battery model.
Activity
Walshest commentedon Jan 2, 2026
@christiankral Would you be able to look at this and either provide a conversion or return the model?
christiankral commentedon Jan 2, 2026
It think we have two aspects here:
christiankral commentedon Jan 2, 2026
On my opinion a conversion script is not required as models provided in an Examples package may be modified or removed anytime.
Walshest commentedon Jan 2, 2026
Thanks for the quick feedback.
As this is a component model w/in an Examples folder, then I think a conversion script should have been available.
However as you mentioned it was a very simple component. I have duplicated it from the MSL 4.0 and inserted into our own internal library and our models work again.
Regards,
Stefan
beutlich commentedon Jan 2, 2026
Thatis correct.
AHaumer commentedon Jan 2, 2026
Thanks for the explanation @christiankral
In 2022 @dietmarw suggested to remove the battery model (consisting of a contant voltage source and an inner resistance) to avoid confusion with the Modelica.Electrical.Batteries package.
The "battery" model was part of the examples package - so no conversions script needed.
@Walshest for your convenience you'll find attached the zipped "old" battery model.
Battery.zip
HansOlsson commentedon Jan 7, 2026
And included in #4698