WOLFRAM SYSTEMMODELER LINK PACKAGE SYMBOL

ModelicaConversion


is an option for WSMModelData and WSMFindEquilibrium that specifies the conversion rule for Modelica variables.

DetailsDetails

  • With ModelicaConversion->Automatic, the setting is used.
  • Setting uses the conversions:
  • "a.b"ab
    "a_b"ab
    "a.der(b)"ab'
    "a[1]"a1
    "a[1,2]"a1¸2
    dummy derivative of "a"dera
  • Setting converts states to s[i], algebraic variables to a[i], input variables to i[i], and parameters to p[i].
  • converts the Modelica name to the symbol and remaining variables according to def, as above.
  • The setting is interpreted as {{"v1"->v1,},Automatic}.

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Load Wolfram SystemModeler Link:

In[1]:=
Click for copyable input

Convert to symbols similar to Modelica naming:

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

Compare with the short naming:

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

Specify custom naming of two variables:

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

Control naming of output from WSMFindEquilibrium:

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