watchDCMotor function

Requirements.Examples.MotorsWithLosses.Components.watchDCMotor  ยท source

Icon of watchDCMotor

Map data from Modelica.Electrical.Machines.BasicMachines.DCMachines.DC_PermanentMagnet to DCMotor

Extends Modelica.Icons.Function

Binding function that maps the data of a DC_PermanentMagnet motor, collected in a MotorData record, to the DCMotorWatching record observed by the requirements. The input name is the full name of the motor instance and is stored in the output record; the armature voltage va and current ia become v and i, and the rotor speed inertiaRotor.w becomes w. Example call:

Components.watchDCMotor(name="DCPM_withLosses.dcpm1",
  obj=Components.MotorData(VaNominal=DCPM_withLosses.dcpm1.VaNominal, ...,
    inertiaRotor=Components.InertiaData(w=DCPM_withLosses.dcpm1.inertiaRotor.w)))

Revisions

DateDescription
Sept. 14, 2026MotorData and InertiaData moved from the protected part of this function into the package, so that the call site can build them (H. Tummescheit, Model Based Innovation LLC)

Inputs

NameTypeDescription
name inputStringFull name of DCmotor instance
obj inputMotorDataDCmotor model data to be watched, built at the call site with the MotorData record constructor

Outputs

NameTypeDescription
watchObj outputDCMotorWatchingData in DCmotor format