|
1 | | -otfmi documentation |
2 | | -=================== |
3 | | - |
4 | | -`otfmi <https://github.com/openturns/otfmi>`__ facilitates the probabilistic study of functional mockup units (FMUs) by interfacing `OpenTURNS <http://openturns.github.io/openturns/master/contents.html>`__ with `PyFMI <https://pypi.org/project/PyFMI/>`__. Using otfmi, modelers can perform advanced probabilistic analysis on their FMU. |
| 1 | +:hide-sidebar-secondary: true: |
5 | 2 |
|
6 | | -The core features of `otfmi <https://github.com/openturns/otfmi>`__ are: |
7 | | - |
8 | | -* load an FMU in an OpenTURNS object |
9 | | -* set some initial values to ease initialisation |
10 | | -* simulate the model, for a single set of input values or a sample |
11 | | -* retrieve and store the simulation results. |
| 3 | +OTFMI documentation |
| 4 | +=================== |
12 | 5 |
|
13 | | -.. image:: _static/logo_persalys.png |
14 | | - :align: left |
15 | | - :scale: 5% |
| 6 | +A bridge between `OpenTURNS <http://openturns.github.io/openturns/master/contents.html>`__ and functional mockup units (FMUs), based on `PyFMI <https://pypi.org/project/PyFMI/>`__ . |
16 | 7 |
|
17 | | -| `otfmi <https://github.com/openturns/otfmi>`__ is notably employed as backend for `Persalys <https://persalys.fr/?la=en>`__ (OpenTURNS GUI). |
18 | | -| The software is free and can be downloaded `here <https://persalys.fr/obtenir.php?la=en">`__. |
| 8 | +.. grid:: |
| 9 | + :gutter: 3 |
19 | 10 |
|
20 | | -.. container:: clearer |
| 11 | + .. grid-item:: |
| 12 | + :columns: auto |
21 | 13 |
|
22 | | - .. image :: _static/spacer.jpg |
| 14 | + .. button-link:: examples/index.html |
| 15 | + :color: primary |
| 16 | + :shadow: |
23 | 17 |
|
24 | | --------------- |
| 18 | + 🚀 Learn with examples |
25 | 19 |
|
26 | | -.. toctree:: |
27 | | - :maxdepth: 1 |
| 20 | + .. grid-item:: |
| 21 | + :columns: auto |
28 | 22 |
|
29 | | - install |
| 23 | + .. button-link:: api.html |
| 24 | + :color: primary |
| 25 | + :shadow: |
30 | 26 |
|
31 | | -.. toctree:: |
32 | | - :maxdepth: 1 |
| 27 | + ⚙️ Read the API doc. |
33 | 28 |
|
34 | | - api |
| 29 | +.. grid:: 1 2 1 2 |
| 30 | + :gutter: 3 |
35 | 31 |
|
36 | | -.. toctree:: |
37 | | - :maxdepth: 1 |
38 | | - :glob: |
| 32 | + .. grid-item-card:: 🎲 Load a FMU in OpenTURNS |
39 | 33 |
|
40 | | - examples/index |
| 34 | + You have a model in FMU format ? OTFMI transforms it into a `OpenTURNS <http://openturns.github.io/openturns/master/contents.html>`__ object, to let you analyze your model. |
41 | 35 |
|
42 | | -.. toctree:: |
43 | | - :maxdepth: 1 |
44 | | - :glob: |
| 36 | + .. grid-item-card:: 🚀 Simulate the model |
45 | 37 |
|
46 | | - application/application |
| 38 | + Initialise your model and run simulations, for a single set of input values or a sample |
47 | 39 |
|
48 | | -.. toctree:: |
49 | | - :maxdepth: 1 |
| 40 | + .. grid-item-card:: 🔌 Integrate an OpenTURNS model into a Modelica model. |
50 | 41 |
|
51 | | - examples/persalys/use_persalys.rst |
| 42 | + You can export your machine learning model built with OpenTURNS, to use it as a component of your Modelica model. |
52 | 43 |
|
53 | | --------------- |
| 44 | + .. grid-item-card:: 🍒 Use OTFMI through Persalys |
54 | 45 |
|
55 | | -About FMI, OpenTURNS and PyFMI |
56 | | ------------------------------- |
| 46 | + .. image:: _static/logo_persalys.png |
| 47 | + :align: left |
| 48 | + :scale: 3% |
57 | 49 |
|
58 | | -The `functional mock-up interface (FMI) |
59 | | -standard <https://fmi-standard.org/>`__ specifies a multipurpose |
60 | | -interfaces to 0D/1D physical models. It is currently supported by many |
61 | | -softwares, such as `OpenModelica <https://openmodelica.org/>`__, |
62 | | -`Dymola <https://www.3ds.com/fr/produits-et-services/catia/produits/dymola/>`__, |
63 | | -`Amesim <https://www.plm.automation.siemens.com/global/fr/products/simcenter/simcenter-amesim.html>`__, |
64 | | -`Ansys <https://www.ansys.com/>`__, |
65 | | -`Simulink <https://fr.mathworks.com/products/simulink.html>`__, etc. |
| 50 | + OTFMI is used within the OpenTURNS GUI `Persalys <https://persalys.fr/?la=en>`__ . |
| 51 | + Persalys is free and can be downloaded `here <https://persalys.fr/obtenir.php?la=en">`__. |
66 | 52 |
|
67 | | -`OpenTURNS <http://openturns.github.io/openturns/master/contents.html>`__ |
68 | | -library proposes a large range of mathematical methods to quantify, |
69 | | -propagate and handle uncertainties. |
70 | | -`PyFMI <https://pypi.org/project/PyFMI/>`__ is a package for loading and |
71 | | -interacting with FMUs in Python. |
72 | 53 |
|
73 | | -The need for otfmi |
74 | | ------------------- |
| 54 | +.. include:: ../README.rst |
| 55 | + :start-line: 24 |
| 56 | + :end-line: 29 |
75 | 57 |
|
76 | | -Using Python to easily perform computer experiments on 0D/1D models is |
77 | | -seducing. Yet the tool chain, from the physical model to OpenTURNS, was |
78 | | -incomplete. PyFMI objects, close to the FMUs methods, were to be adapted |
79 | | -for an easier use with OpenTURNS’ methods. |
80 | | - |
81 | | -otfmi is developed by `Phimeca <http://www.phimeca.com>`__, on the |
82 | | -demand of EDF Prisme department, to meet this need of compatibility |
83 | | -between PyFMI objects and OpenTURNS. |
84 | | - |
85 | | -Terminology |
86 | | ------------ |
87 | | - |
88 | | -**input, parameter, or input variable?** |
89 | | - |
90 | | -The FMI standard and OpenTURNS meet a (minor) conflict in the definition of *inputs*. |
91 | | -In the `FMI standard <https://fmi-standard.org/docs/3.0.1/#ModelVariables>`__ |
92 | | -(see table 18): |
93 | | - |
94 | | -* a FMU *parameter* remains constant during simulation (a single value). |
95 | | -* a FMU *input* evolves during simulation (time-dependent values). |
| 58 | +You can contribute to the project or signal issues on `otfmi GitHub repository <https://github.com/openturns/otfmi>`__. |
| 59 | +This package is licensed under the LGPL3. |
96 | 60 |
|
97 | | -In OpenTURNS, the terms *input* and *parameter* are synonym and designate a variable in input of a probabilistic model. |
98 | | -To reconcile the two worlds, we employ in otfmi the terms of *parameter* and *input* in the sense of FMI. |
99 | | -We call the input variables of a probabilistic model *variables*, or *input variables*. |
100 | 61 |
|
101 | | -**FMI : ME or CS?** |
| 62 | +.. toctree:: |
| 63 | + :hidden: |
| 64 | + :maxdepth: 1 |
102 | 65 |
|
103 | | -The FMI standard defines 2 kinds of FMUs: ModelExchange (ME) or CoSimulation (CS). |
104 | | -The CoSimulation FMUs embed the numerical solver of their generation tool whereas |
105 | | -the ModelExchange FMUs simulate with the solver of their host tool. |
| 66 | + why_otfmi |
| 67 | + terminology |
106 | 68 |
|
107 | | -Choosing ME or CS depends on the use of the FMU (see |
108 | | -`here <https://www.modelon.com/fmi-functional-mock-up-unit-types/>`__). |
109 | | -Both kinds are handled similarly by otfmi (and `Persalys <https://persalys.fr/?la=en>`__). |
| 69 | +.. toctree:: |
| 70 | + :hidden: |
| 71 | + :maxdepth: 1 |
110 | 72 |
|
111 | | -Contact |
112 | | -------- |
| 73 | + examples/index |
113 | 74 |
|
114 | | -| You can contribute to the project or signal issues on `otfmi GitHub |
115 | | - repository <https://github.com/openturns/otfmi>`__. |
116 | | -| For questions on the code, contact `Sylvain |
117 | | - Girard <https://github.com/SG-phimeca>`__. |
118 | | -| For questions or remarks concerning the documentation, contact |
119 | | - `Claire-Eleuthèriane |
120 | | - Gerrer <https://github.com/Claire-Eleutheriane>`__. |
| 75 | +.. toctree:: |
| 76 | + :hidden: |
| 77 | + :maxdepth: 1 |
121 | 78 |
|
122 | | --------------- |
| 79 | + api |
123 | 80 |
|
124 | | -This package is licensed under the LGPL3. |
0 commit comments