WOLFRAM

Background & Context

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

Import & Export

Examples

open allclose all

Basic Examples  (3)Summary of the most common use cases

Import a model:

Out[1]=1

Examine the model's equations:

Out[2]=2

Simulate the model:

Out[3]=3
Out[4]=4

Create a new model:

Save the model, which renames the model to "DiffEq":

Out[2]=2

Show the saved file:

Clean up by deleting the new file and models:

Create a new model inside a new package:

Save the package in a directory structure:

Out[2]=2

The package is saved in a directory "MyPackage", where files mirror the model structure:

Out[3]=3

Clean up by deleting the new files and model:

Properties & Relations  (1)Properties of the function, and connections to other functions

Use "SME" to import SystemModelSimulationData:

Out[1]=1
Out[2]=2

Possible Issues  (1)Common pitfalls and unexpected behavior

Already-saved models cannot be saved in a different place using Export:

Out[14]=14

Make a copy of the model to save it in a different location:

Out[16]=16

Clean up by deleting the new files and model: