modelInertiaFromFile
Extends from Modelica.Blocks.Interfaces.BlockIcon.
Information
Model that shows the usage of Examples.readRealParameter and Examples.expression. The model has 3 parameters and the values of these parameters are read from a file.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| String | file | "noFileDefined" | File on which data is present |
| SI.Inertia | J | readRealParameter(file, "J") | Inertia |
| SI.Angle | phi_rel0 | readRealParameter(file, "phi_rel0") | Relative angle |
| SI.AngularVelocity | w_rel0 | readRealParameter(file, "w_rel0") | Relative angular velocity |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Mechanics.Rotational.Components.Inertia | inertia | ||
| Modelica.Mechanics.Rotational.Sources.Torque | torque | ||
| Modelica.Blocks.Interfaces.RealInput | tau | Accelerating torque acting at flange (= -flange.tau) |