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 and Options
- WSMConnectComponentsString takes the same arguments and options as WSMConnectComponents.
- Instead of committing newmodel to the System Modeler kernel, WSMConnectComponentsString returns a Modelica string representation.
Examples
open allclose allBasic Examples (2)
Properties & Relations (1)
Use WSMConnectComponents to create a model in the System Modeler kernel:
Simulate and plot the voltage in the resistor and the voltage source: