SystemModeler Link >
WOLFRAM SYSTEMMODELER LINK PACKAGE SYMBOLSee Also »|More About »

ModelicaConversion


is an option for WSMModelData and WSMFindEquilibrium that specifies the conversion rule for Modelica variables.
  • Setting uses the conversions:
"a.b"a▴b
"a_b"ab
"a.der(b)"a▴b'
"a[1]"a◂1▸
"a[1,2]"a◂12▸
dummy derivative of "a"dera
  • Setting converts states to FormalS[i], algebraic variables to FormalA[i], input variables to FormalI[i], and parameters to FormalP[i].
  • converts the Modelica name to the symbol and remaining variables according to def, as above.
  • The setting is interpreted as {{"v1"->v1, ...}, Automatic}.
Load Wolfram SystemModeler Link:
Convert to symbols similar to Modelica naming:
Compare with the short naming:
Specify custom naming of two variables:
Control naming of output from WSMFindEquilibrium:
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]=
Each element in arrays is represented as one variable:
Indices are represented with :
Use custom naming for one variable and for the rest:
Get the equations of a model, renaming parameter c:
Replace parameters by their numeric values, keeping the renamed c:
Solve the system for different c: