fmi

FMU-module method get_states_list()

谁说胖子不能爱 提交于 2019-12-11 06:18:34
问题 I found a limitation of the FMU-module method get_states_list(). This method seems to bring a list only of continuous time states and not of discrete time states. I do usually make models that contain both continuous and discrete time sub-models describing process and control system and I am very interested to be able to get a list of ALL states in the system. One possibility could have been get_fmu_state() but I get the exception text “This FMU does not support get and set FMU-state”.

Sensitivity Analysis using PyFMI - FMU in for-loop

本小妞迷上赌 提交于 2019-12-09 06:53:09
问题 Main goal Sensitivity analysis of a district heating network. Approach Modelica model of the system (in Dymola) using the AixLib and BuildingSystem libraries Export model as FMU co-simulation Use SALib (sensitivity analysis python library) to define the samples (parameter sweep) Use PyFMI to run the model in a for-loop in Python for all the individual samples (and parallelize the for loop maybe using JobLib to perfome the simulation on multiple processors) SALib to perform a variance-based

Initialization of a Dymola FMU in Simulink

无人久伴 提交于 2019-12-04 06:18:19
问题 I have encountered an issue while trying to simulate a model using an fmu file in Simulink: I am using the Modelon FMI toolbox for a Dymola/Simulink interface to import a Model-Exchange type fmu file (version 1.0) into the Simulink model. I have a Matlab m-file that programmatically simulates the model sequentially, saving the final internal states of the model for initialization in the next simulation. The first iteration of the simulation runs without errors, but on the second iteration,

Sensitivity Analysis using PyFMI - FMU in for-loop

只谈情不闲聊 提交于 2019-12-03 08:51:24
Main goal Sensitivity analysis of a district heating network. Approach Modelica model of the system (in Dymola) using the AixLib and BuildingSystem libraries Export model as FMU co-simulation Use SALib (sensitivity analysis python library) to define the samples (parameter sweep) Use PyFMI to run the model in a for-loop in Python for all the individual samples (and parallelize the for loop maybe using JobLib to perfome the simulation on multiple processors) SALib to perform a variance-based sensitivity analyses ( http://salib.readthedocs.io/en/latest/basics.html#an-example ) First step Simple

Initialization of a Dymola FMU in Simulink

爱⌒轻易说出口 提交于 2019-12-02 07:50:20
I have encountered an issue while trying to simulate a model using an fmu file in Simulink: I am using the Modelon FMI toolbox for a Dymola/Simulink interface to import a Model-Exchange type fmu file (version 1.0) into the Simulink model. I have a Matlab m-file that programmatically simulates the model sequentially, saving the final internal states of the model for initialization in the next simulation. The first iteration of the simulation runs without errors, but on the second iteration, Matlab returns the following errors at the call for the simulation: module = partial_run_sim2/BasicModels