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


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

Details and Options

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


open allclose all

Basic Examples  (2)

Load Wolfram SystemModeler Link:

Create a model string for a simple electrical circuit:

Properties & Relations  (1)

Use WSMConnectComponents to create a model in the SystemModeler kernel:

Simulate and plot the voltage in the resistor and the voltage source: