WSMLink`
WSMLink`

WSMCreateModelString

WSMCreateModelString is being phased out in favor of CreateSystemModel, which was introduced experimentally in Version 11.3.

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".

Details

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

Examples

open allclose all

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]=

Properties & Relations  (1)

See Also

WSMCreateModel  WSMConnectComponents  WSMModelData