WSMLink`

Modelica Model (.mo, .moe)

"MO" from WSMLink is being phased out in favor of "MO", which was introduced experimentally in Version 11.3.

Background

    Modelica models.
    File format specified by the Modelica Association.
    ASCII format.

Import and Export

  • Import["file.mo",{"ModelicaModel"}] imports the specified model to SystemModeler and makes it available in the Wolfram Language.
  • Saving of Modelica models can be done using WSMSaveModel.

Elements

  • Import element:
  • "ModelicaModel" loads the model from file

Examples

open allclose all

Basic Examples  (2)

Load Wolfram SystemModeler Link:

In[1]:=
Click for copyable input

Import a model:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Examine the model's equations:

In[3]:=
Click for copyable input
Out[3]=

Simulate the model:

In[4]:=
Click for copyable input
In[5]:=
Click for copyable input
Out[5]=

Properties & Relations  (1)