WOLFRAM SYSTEMMODELER LINK PACKAGE SYMBOL

WSMCreateModelString

WSMCreateModelString["newmodel",sys]
creates a string with the Modelica model "newmodel", of systems model sys.

WSMCreateModelString["newmodel",eqns,t]
creates a string for the system equations eqns with independent variable t.

WSMCreateModelString["newmodel",,tspecs]
creates a string with type specifications tspecs for variables and parameters.

WSMCreateModelString["newmodel""interface",eqns,t]
creates a string extending the specification given by "interface".

DetailsDetails

  • WSMCreateModelString takes the same arguments and options as WSMCreateModel.
  • Instead of committing newmodel to the SystemModeler kernel, WSMCreateModelString returns a Modelica string representation.

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Load Wolfram SystemModeler Link:

In[1]:=
Click for copyable input

Generate a model string based on a StateSpaceModel:

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

Create a model based on a TransferFunctionModel:

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

Create a block that adds 1 to the input:

In[1]:=
Click for copyable input

Create the block, extending a SISO block interface:

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