WOLFRAM

Background & Context

    • System model files that include model dependencies.
    • File format created by Wolfram Research, Inc.
    • Imported result data is represented as a SystemModel.

Import & Export

Import Elements

  • General Import elements:
  • "Elements" list of elements and options available in this file
    "Summary"summary of the file
    "Rules"list of rules for all available elements

Options

  • Export option:
  • "IncludedLibraries"Automaticlibraries to include in file
  • Possible values for "IncludedLibraries" are:
  • Automaticautomatically decide what to include
    Noneinclude no dependencies
    Allinclude all dependencies
    "User"include dependencies not shipped with the system
    {lib1,lib2,}include the explicit libraries libi

Examples

open allclose all

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

Import a total model from an archive:

Out[1]=1

Examine the model's equations:

Out[2]=2

Simulate the model:

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

Export a model with dependencies:

Out[1]=1

Import the model again:

Out[2]=2

Simulate for 10 seconds and plot the first stored plot in the model:

Out[3]=3

Clean up by deleting the new file and model:

Export Options  (1)

"IncludedLibraries"  (1)

Export a model without any dependencies:

Out[1]=1

The resulting file size is typically small:

Out[2]=2

Including all dependencies, including system libraries, typically results in a large file:

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