WSMLink`
WSMLink`

WSMConnectComponentsString

WSMConnectComponentsString is being phased out in favor of ConnectSystemModelComponents, which was introduced experimentally in Version 11.3.

WSMConnectComponentsString["newmodel",{"c1""comp1",},{"c1.a"->"c2.b",}]

creates a string with the Modelica model "newmodel" by connecting connector a of component c1 with connector b of component c2 etc.

Details

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

Examples

open allclose all

Basic Examples  (2)

Load Wolfram SystemModeler Link:

In[1]:=
Click for copyable input

Create a model string for a simple electrical circuit:

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

Properties & Relations  (1)

See Also

WSMConnectComponents  WSMModelData  WSMCreateModel