How to dynamically get the value of a variable in pyfmi
For example, this is my modelica model
How with FMPy to get access to stored variable values with causality: ‘calculatedParameter’?
I develop simulation scripts in Python using FMPy (and also PyFMI). For some Modelica models you have parameters that are defined as a function of other parameters. If you include these parameters in the list “output” of the simulate_fmu() function you get information about that “variable” stored.
How with FMPy to get access to stored variable values with causality: ‘calculatedParameter’?
I develop simulation scripts in Python using FMPy (and also PyFMI). For some Modelica models you have parameters that are defined as a function of other parameters. If you include these parameters in the list “output” of the simulate_fmu() function you get information about that “variable” stored.
How with FMPy to get access to stored variable values with causality:’calculatedParameter’?
I develop simulation scripts in Python using FMPy (and also PyFMI). For some Modelica models you have parameters that are defined as a function of other parameters. If you include these parameters in the list “output” of the simulate_fmu() function you get information about that “variable” stored.