API documentation
otfmi facilitates the analysis of FMUs over time.
Main API
The class FMUPointToFieldFunction wraps the FMU in an openturns.PointToFieldFunction.
Its output is a openturns.Field gathering the outputs as function of time.
|
Define a PointToFieldFunction from a FMU file. |
Its lower-level counterpart is OpenTURNSFMUPointToFieldFunction, closer to PyFMI’s methods but not directly usable with OpenTURNS.
|
Define a PointToFieldFunction from a FMU file. |
For convenience the FMUFunction is provided for cases in which we absolutely need
a openturns.Function instead of a openturns.PointToFieldFunction.
|
Define a Function from a FMU file. |
Common low-level functions
The submodule otfmi.fmi gathers a set of useful functions, employed by the (higher-level) classes mentionned above.
|
Load and FMU. |
|
Simulate an FMU. |
|
Parse simulation keyword arguments and feed the simulate method of pyfmi's object. |
|
Apply an initialization script to a model. |
|
Get the list of variable names. |
|
Get the causality of a variable (input, output, or other). |
|
Get the variability of the variables (constant, discrete, continuous, or other). |
|
Get the values of the variables with 'fixed' variability, ignoring aliases. |
|
Get the values of the variables with a start value ignoring aliases. |
|
Set values from a dictionary with variable names as keys. |
From OpenTURNS to FMI
OTFMI can also export an OpenTURNS function in a Modelica source model (.mo) or Functional Mock-up Unit (.fmu).
|
Fonction export. |