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

TypeNameDefaultDescription
Stringfile"noFileDefined"File on which data is present
SI.InertiaJreadRealParameter(file, "J")Inertia
SI.Anglephi_rel0readRealParameter(file, "phi_rel0")Relative angle
SI.AngularVelocityw_rel0readRealParameter(file, "w_rel0")Relative angular velocity

Components

TypeNameDefaultDescription
Modelica.Mechanics.Rotational.Components.Inertiainertia
Modelica.Mechanics.Rotational.Sources.Torquetorque
Modelica.Blocks.Interfaces.RealInputtauAccelerating torque acting at flange (= -flange.tau)