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
| Type | Name | Default | Description |
|---|---|---|---|
| String | file | Modelica.Utilities.Files.loadResource("modelica://Modelica/Resources/Data/Utilities/Examples_readRealParameters.txt") | File on which data is present |
| Modelica.Units.SI.Inertia | J | readRealParameter(file, "J") | Inertia |
| Modelica.Units.SI.Angle | phi_rel0 | readRealParameter(file, "phi_rel0") | Relative angle |
| Modelica.Units.SI.AngularVelocity | w_rel0 | readRealParameter(file, "w_rel0") | Relative angular velocity |