Options for System Modeling

Most users will not need to change any options related to system modeling, but there are some cases where a custom configuration is warranted.

Advanced Translation Options

There are advanced settings controlling how a SystemModel is translated to a simulation executable. This section describes the available options.

Note that these settings are persistent over sessions.

Tearing

Tearing is a technique used to reduce large, sparse systems of equations to smaller, denser systems. It can significantly improve the runtime performance of a model. By default, this technique is applied. It is possible to turn off tearing for all models.

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

Restore the default behavior where tearing is active.

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

Dynamic State Selection

A state selection algorithm can be used that may introduce dynamic states in the model. This algorithm can be enabled, disabled or enabled for a list of specified libraries. Retrieve the current settings under "Translation" and "DynamicStateSelection".

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

Turn on dynamic state selection for all models.

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

Turn off dynamic state selection for all models.

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

Restore the default setting.

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