modelPartialDrive
Information
This is a simple drive train consisting of the following elements:
- A motor inertia that is driven by an external torque.
- The measured motor speed (= angular velocity) provided as output signal.
- A load inertia.
- A gearbox. The compliance of the gearbox is modelled with a nonlinear spring defined with a table and a linear damper. The compliance is modelled because it limits the performance of a controller.
Typically, a controller is designed to compute the motor torque, from the measured motor speed and a provided reference speed of the motor (= reference speed of the load, because the gear ratio is one). Furthermore, an external torque might be applied on the load inertia.
All the significant parameters of the drive train are provided via the
record instance data containing the values of the
parameters, as well as information about the credibility of the
parameters.
Initialization
The initialization is a bit tricky. The goal is to initialize in steady state
because initial transients are then no longer present.
However, this depends on the controller that is generating the motor torque.
Furthermore, when exporting the model as FMU, the FMU must be also reasonably
initialized. Since this partial model has four states (e.g., inertiaLoad.phi,
inertiaLoad.w, damper.phi_rel and damper.w_rel),
four initial conditions have to be provided.
Typically, the user is interested in the load position/speed,
not in the motor position/speed. Therefore, the following initialization is defined:
- The load angle and load angular velocity are both initialized to zero. Note, if standard steady state initialization would be performed, then the load angle would be undefined. When a controller is added to the model and steady-state initialization is desired, then the load angular acceleration should also be set to zero, provided the controller has at least one state (e.g. a PI controller) that can be computed from this setting, cf. initialization of SimpleControlledDrive_original.
-
The relative angular velocity and relative angular acceleration of the
gear/compliance are both initialized to zero, see
damperelement which is, therefore, initialized in steady state.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| PartialData | data | Data of the drive train, including credibility information |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Mechanics.Rotational.Components.Inertia | inertiaMotor | J from datasheet; Init defined by system spec or scenario spec | |
| Modelica.Mechanics.Rotational.Sources.Torque | torqueMotor | ||
| Credibility.Examples.SimpleControlledDriveNonlinear.Utilities.SpringNonLinear | spring | table from datasheet; Init defined by system spec or scenario spec | |
| Modelica.Mechanics.Rotational.Components.Damper | damper | d to be calibrated; Init defined by system spec or scenario spec | |
| Modelica.Mechanics.Rotational.Components.Inertia | inertiaLoad | Guess value, with defined uncertainty; Init defined by system spec or scenario spec | |
| Modelica.Mechanics.Rotational.Sensors.SpeedSensor | speedSensor | ||
| Modelica.Mechanics.Rotational.Components.IdealGear | idealGear |