Energy Storage Device Tutorial
Tutorial - Defining a new energy storage device model
The following process will demonstrate how to create a new
energy storage device model using these interface definitions. This
tutorial will guide you through building a simple battery.
- Create a new model that extends
VehicleInterfaces.EnergyStorage.Interfaces.Base,
it should look like this:
- Unlike most of the other systems in the VehicleInterfaces
package, the energy storage device interface definition does not
contain any optional connectors.
- You can now define your energy storage device model as
required
Creating a simple battery example
The following steps demonstrate how to create a simple
battery model. The battery model will have a constant voltage
and an internal resistance.
Starting from step 2 above.
- Add the following blocks and connections to the diagram.
Generated at 2026-04-14T18:18:34Z by OpenModelicaOpenModelica 1.26.3 using
GenerateDoc.mos