WOLFRAM SYSTEM MODELER

readRealParameterModel

Demonstrate usage of Examples.readRealParameter/.expression

Wolfram Language

In[1]:=
SystemModel["Modelica.Utilities.Examples.readRealParameterModel"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

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 (4)

file

Value: Modelica.Utilities.Files.loadResource("modelica://Modelica/Resources/Data/Utilities/Examples_readRealParameters.txt")

Type: String

Description: File on which data is present

J

Value: readRealParameter(file, "J")

Type: Inertia (kg⋅m²)

Description: Inertia

phi_rel0

Value: readRealParameter(file, "phi_rel0")

Type: Angle (rad)

Description: Relative angle

w_rel0

Value: readRealParameter(file, "w_rel0")

Type: AngularVelocity (rad/s)

Description: Relative angular velocity