.VehicleInterfaces.ElectricDrives.Tutorial

Information

Tutorial - Defining a new electric motor model

The following process will demonstrate how to create a new electric motor model using these interface definitions. This tutorial will guide you through building a simple DC electric motor.

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



  2. In the component browser, right click on BaseDCMachine and select Parameters from the context menu to produce the following parameter dialog



  3. This dialog allows you to enable/disable the optional connections by setting includeBearing as required for your new motor model. The shaft_b connector is of the type Modelica.Mechanics.MultiBody.Interfaces.FlangeWithBearing, the parameter includeBearing controls whether the bearing connector within the shaft_b connector is enabled or not.
  4. You can now define your driveline model as required

Creating a simple electric motor example

The following steps demonstrate how to create a simple rear-wheel drive driveline model. The driveline model will transmit the torque from the transmission to the rear wheels via a propshaft, differential with final drive and then two halfshafts. No torque reaction in to the transmission housings will be modelled.

Starting from step 3 above.

  1. First, decide if the bearing connector is required in the model and set the internal parameter appropriately.
  2. Add the following blocks and connections to the diagram.




Generated at 2024-04-25T18:15:59Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos