Modelica Model (.mo, .moe)
[Experimental]
Background & Context

-
- Modelica models.
- File format specified by the Modelica Association.
Import & Export

- Import["file.mo","MO"] imports the specified model and makes it available as a SystemModel.
- See the following reference pages for full general information:
-
Import, Export import from or export to a file CloudImport, CloudExport import from or export to a cloud object ImportString, ExportString import from or export to a string ImportByteArray, ExportByteArray import from or export to a byte array
Examples
open allclose allBasic Examples (3)Summary of the most common use cases
In[1]:=1

✖
https://wolfram.com/xid/0knltly-b4lvyk
Out[1]=1

Examine the model's equations:
In[2]:=2

✖
https://wolfram.com/xid/0knltly-ezrg2s
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0knltly-i0zv5r
Out[3]=3

In[4]:=4

✖
https://wolfram.com/xid/0knltly-ce1mfj
Out[4]=4

In[1]:=1

✖
https://wolfram.com/xid/0knltly-jq04ty
Save the model, which renames the model to "DiffEq":
In[2]:=2

✖
https://wolfram.com/xid/0knltly-ukfii1
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0knltly-rzdtg9
Clean up by deleting the new file and models:
In[4]:=4

✖
https://wolfram.com/xid/0knltly-pv7qdp
Create a new model inside a new package:
In[1]:=1

✖
https://wolfram.com/xid/0knltly-oobtyy
Save the package in a directory structure:
In[2]:=2

✖
https://wolfram.com/xid/0knltly-l5fxf7
Out[2]=2

The package is saved in a directory "MyPackage", where files mirror the model structure:
In[3]:=3

✖
https://wolfram.com/xid/0knltly-8m8hu1
Out[3]=3

Clean up by deleting the new files and model:
In[4]:=4

✖
https://wolfram.com/xid/0knltly-uxjzwb
Properties & Relations (1)Properties of the function, and connections to other functions
Use "SME" to import SystemModelSimulationData:
In[1]:=1

✖
https://wolfram.com/xid/0knltly-x9gpv3
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0knltly-2xeotw
Out[2]=2

Possible Issues (1)Common pitfalls and unexpected behavior
Already-saved models cannot be saved in a different place using Export:
In[13]:=13

✖
https://wolfram.com/xid/0knltly-jtj4k6
In[14]:=14

✖
https://wolfram.com/xid/0knltly-v92h6b

Out[14]=14

Make a copy of the model to save it in a different location:
In[15]:=15

✖
https://wolfram.com/xid/0knltly-64yqe
In[16]:=16

✖
https://wolfram.com/xid/0knltly-vz2aln
Out[16]=16

Clean up by deleting the new files and model:
In[17]:=17

✖
https://wolfram.com/xid/0knltly-vra1bo