SystemModels

SystemModels[]

returns a list of loaded system models.

SystemModels[patt]

returns the models matching the string pattern patt.

SystemModels[patt,"spec"]

only returns specialized models of the kind "spec".

Details

  • SystemModels[patt] allows the same string patterns as StringMatchQ.
  • With SystemModels[patt,"spec"], only models with "spec" are returned:
  • "class"general class
    "model"model class
    "block"input/output block
    "connector"connector class
    "function"function definition
    "package"collection of classes and constants
    "record"collection class
    "type"type specification

Examples

open allclose all

Basic Examples  (3)

Get all models currently available:

In[1]:=
Click for copyable input
Out[1]//Shallow=

Show all examples in the Modelica rotational mechanics library:

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

Get only a specific type of model:

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

Scope  (1)

Applications  (1)

Properties & Relations  (1)

See Also

StringMatchQ  SystemModelExamples  SystemModel

Introduced in 2018
(11.3)