watchDCMotor function
Requirements.Examples.MotorsWithLosses.Components.watchDCMotor
ยท source
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
| Date | Description |
|---|---|
| Sept. 14, 2026 | MotorData 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
| Name | Type | Description |
|---|---|---|
name input | String | Full name of DCmotor instance |
obj input | MotorData | DCmotor model data to be watched, built at the call site with the MotorData record constructor |
Outputs
| Name | Type | Description |
|---|---|---|
watchObj output | DCMotorWatching | Data in DCmotor format |