-
Notifications
You must be signed in to change notification settings - Fork 166
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
Implement idealized battery #2957
Comments
For many tasks such a simple model would be sufficient, especially for teaching. |
To start the discussion early ;-) with a positive argument: |
I am very much in favor of having simple battery models in the Modelica Standard Library (MSL). The proposed model is based on a table based OCV versus SOC curve. This makes a lot of sense for many applications. However, over and under charging the battery (SOC > 1 and SOC < 0) shall somehow be handled with asserts. Additionally an even much simpler battery model might be included in the MSL, based on a purely linear OCV versus SOC curve. In this case a linear capacitor model can be used. Then the upper and lower voltage limit and the nominal charge of the battery determine the capacitance. For now I can think of three places where such battery models can be placed:
|
@christiankral the purely linear OCV versus SOC is included in the table based model; just specify two points for the table {0, 0; 1, 1} Where to place:
So I'll create a PR for option 2. ( |
see PR #2959 |
On my opinion it makes sense to have an additional model for the linear case. We also have a voltage source model for constant, step and ramp voltages, even though the a ramp model covers all three cases. In order to avoid parameterization errors for new Modelica users the linear model shall have the addition parameter |
ok implemented with Boolean parameter useLinearSOCDependency=true |
Implement simple battery (see issue #2957)
Fix spelling and enhance battery example of #2957
I'm glad that we have these few models in MSL 4. |
Yes, I think it is good that with some more elaborated models the package moves from |
Hi everyone, I' m trying to simulate BatteryDischargeCharge model but the following error occurs: "Error: Class or component 'extrapolation' not found in CombiTable1Ds combiTable1Ds". How can I fix this error? |
Which version of MSL? Which simulation tool? |
Thank you for your quick response, I will open a new issue. |
I would like to implement an idealized battery with no-load voltage dependent on state of charge and inner resistance. Such a simple model is used over and over again in (simple) models of electric vehicles. Furthermore, it could be a trigger to start developemnt of more advanced battery models with effects like:
The ElectricalEnergyStorage Library was intended to address these goals, but it has been overdone - the library is too complicated and it is not in a good state.
As a starting point, I would place an "IdealizedBattery" in Modelica.Electrical.Analog.Sources.
I have prepared a PR but I would like to discuss where to place the component.
@christiankral , @christophclauss , @kristinmajetta what is your opinion?
The text was updated successfully, but these errors were encountered: