classTutorial
Energy Storage Device Tutorial
Extends from Modelica.Icons.Information (Icon for general information packages).
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.
- 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.