.VehicleInterfaces.EnergyStorage.Tutorial

Information

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.

  1. Create a new model that extends VehicleInterfaces.EnergyStorage.Interfaces.Base, it should look like this:



  2. Unlike most of the other systems in the VehicleInterfaces package, the energy storage device interface definition does not contain any optional connectors.
  3. 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.

  1. Add the following blocks and connections to the diagram.




Generated at 2024-11-20T19:25:51Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos