modelReadParametersFromFile
Demonstrate how to read Real and String parameters in a file
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
Hypothesis and equations
Example that shows the usage of functions readRealParameter and readStringParameter.
The example model has 4 parameters of types Real and String, the values of these parameters are read from a file.
Bibliography
none
Instructions for use
none
Known limits / Use precautions
none
Validations
Validated model - Benoît Charrier 12/2015
--------------------------------------------------------------
Licensed by EDF under a 3-clause BSD-license
Copyright © EDF 2009 - 2023
BuildSysPro version 3.6.0
Author : Benoit CHARRIER, EDF (2015)
--------------------------------------------------------------
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| String | file | Modelica.Utilities.Files.loadResource("modelica://BuildSysPro/Resources/Documentation/Examples_ReadParametersFromFile.txt") | File on which data is present |
| Modelica.Units.SI.Area | S | Modelica.Utilities.Examples.readRealParameter(file, "S") | Surface |
| Modelica.Units.SI.ThermalConductance | G | Modelica.Utilities.Examples.readRealParameter(file, "G") | Conductance of thermal bridges |
| Modelica.Units.SI.Volume | V | Modelica.Utilities.Examples.readRealParameter(file, "V") | Air volume |
| String | Meteo | BuildSysPro.Utilities.Analysis.readStringParameter(file, "Meteo") | Name of the meteo file |
| String | pth | Modelica.Utilities.Files.loadResource("modelica://BuildSysPro/Resources/Donnees/Meteos/RT2012/" + Meteo) |