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

TypeNameDefaultDescription
StringfileModelica.Utilities.Files.loadResource("modelica://BuildSysPro/Resources/Documentation/Examples_ReadParametersFromFile.txt")File on which data is present
Modelica.Units.SI.AreaSModelica.Utilities.Examples.readRealParameter(file, "S")Surface
Modelica.Units.SI.ThermalConductanceGModelica.Utilities.Examples.readRealParameter(file, "G")Conductance of thermal bridges
Modelica.Units.SI.VolumeVModelica.Utilities.Examples.readRealParameter(file, "V")Air volume
StringMeteoBuildSysPro.Utilities.Analysis.readStringParameter(file, "Meteo")Name of the meteo file
StringpthModelica.Utilities.Files.loadResource("modelica://BuildSysPro/Resources/Donnees/Meteos/RT2012/" + Meteo)