Reading data from *.mos script requires loadResource
Created by: marcusfuchs
What is the problem?
I am having problems with some examples that read weather data from the location
modelica://AixLib/Resources/WeatherData/USA_CA_San.Francisco.Intl.AP.724940_TMY3.mos
In examples like AixLib.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement
, the resource is loaded with
Modelica.Utilities.Files.loadResource("modelica://AixLib/Resources/weatherdata/USA_CA_San.Francisco.Intl.AP.724940_TMY3.mos")
This works fine on the two systems I tested this on.
In examples like AixLib.ThermalZones.ReducedOrder.Examples.Multizone
and AixLib.BoundaryConditions.GroundTemperature.Examples.ExampleSanFran
, we do not use the loadResource()
, there is only
"modelica://AixLib/Resources/WeatherData/USA_CA_San.Francisco.Intl.AP.724940_TMY3.mos"
This does not work when I test it.
Why do we want to solve it?
The examples should work
How do we want to solve it?
Are the examples like AixLib.ThermalZones.ReducedOrder.Examples.Multizone
and AixLib.BoundaryConditions.GroundTemperature.Examples.ExampleSanFran
working for anyone? If not, I'd change them to use loadResource()
.