modelreadRealParameterModel

Demonstrate usage of Examples.readRealParameter/.expression

Extends from Modelica.Icons.Example (Icon for runnable examples).

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
StringfileModelica.Utilities.Files.loadResource("modelica://Modelica/Resources/Data/Utilities/Examples_readRealParameters.txt")File on which data is present
Modelica.Units.SI.InertiaJreadRealParameter(file, "J")Inertia
Modelica.Units.SI.Anglephi_rel0readRealParameter(file, "phi_rel0")Relative angle
Modelica.Units.SI.AngularVelocityw_rel0readRealParameter(file, "w_rel0")Relative angular velocity