ConnectSystemModelComponents
✖
ConnectSystemModelComponents
creates a system model by connecting connector "a" of component "c1" with connector "b" of component "c2" etc.
Details and Options



- ConnectSystemModelComponents assembles components to create a new system model. These connections communicate values and set conservation laws in the system.
- ConnectSystemModelComponents returns SystemModel[…].
- ConnectSystemModelComponents["NewModel",…] gives the created model the name "NewModel".
- ConnectSystemModelComponents["PackageA.NewModel",…] inserts "NewModel" into "PackageA".
- The compi can be a SystemModel object, a full model name string or a shortened model name accepted by SystemModel.
- In ConnectSystemModelComponents[…,spec], spec is an Association with the following keys:
-
"ParameterValues" {p1val1,…} parameter values "InitialValues" {v1val1,…} initial values "ExtendsModels" {partial1,…} partial models to build on "DiscreteVariables" {v1,v2,…} variables changing only at events "SimulationSettings" {opt1val1,…} model simulation options - With ConnectSystemModelComponents[…,"ExtendsModels"partial], the new model is combined with the existing partial SystemModel defined in Modelica. »
- A model can extend multiple models using "ExtendsModels"{"partial1",…}.
- Partial models to build on are usually defined in an Interfaces package. For example, SystemModels["Modelica.Electrical.Analog.Interfaces.*","model" "block"] can be used to find partial models for the built-in electrical library.
- "InitialValues" correspond to the start property in the Modelica model.
- Allowed options in "SimulationsSettings"->{opt1val1,…} include
-
"Method" simulation method "StartTime" simulation start time "StopTime" simulation stop time - Available adaptive-step "Method" values include:
-
"DASSL" DASSL DAE solver "CVODES" CVODES ODE solver - Options for adaptive-step methods include:
-
"InterpolationPoints" number of interpolation points "Tolerance" tolerance for adaptive step size - Available fixed-step "Method" values include:
-
"Euler" explicit Euler's method of order 1 "Heun" Heun's method of order 2 "RungeKutta" explicit Runge–Kutta method of order 4 - Options for fixed-step methods include:
-
"StepSize" fixed step size - The layout for the created model diagram can be controlled with the option GraphLayout.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Create a simple electrical circuit:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-v1l37h

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-v4bmxq

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-bsa02i

Show the current and voltage in the inductor:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-jnpife

Use short naming to refer to the Abs and Sine components in Modelica.Blocks:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-t6zvif

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-6jici8

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-6co1a3


https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-7k1hm5

Scope (5)Survey of the scope of standard use cases
Create a block example, sampling a sine wave at regular intervals:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-mnb24w

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-sf148v

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-ocosqj

Simulate and plot the sampled signal:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-6ehbra

Give a value to a parameter in a component:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-vc054i

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-bafuw2
Set the amplitude of the sine to 3:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-peyebl


https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-q3gkgv

Connect two masses with heat capacity with a thermal conductor:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-rncjdw

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-ynjiv9

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-ugekp7

Set heat capacities, masses and initial temperatures:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-mh02wp
Show that a temperature equilibrium is reached:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-33zi9m

Create a mass connected to a spring:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-fwxpxx

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-i9yu45
Move the initial position of the mass, stretching the spring:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-xlbq8o

Show how the mass position oscillates:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-ga4ajv


https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-j3vspa

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-n84ab4

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-c0np1w

Simulate and animate the path of the pendulum:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-vk2zh3

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-tn5w6z

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-c9y27t

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-ss6rp9

Generalizations & Extensions (1)Generalized and extended use cases
Rule, DirectedEdge and UndirectedEdge can be used for connections:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-c6r3mn
Use Rule to specify a connection:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-qym8vg

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-gzoyrc

Use DirectedEdge and UndirectedEdge to specify connections:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-fbddx8

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-ygq1g1

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-174zm4

Simulate and plot the signals:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-eqdw7i

Options (3)Common values & functionality for each option
GraphLayout (3)
GraphLayout can be used to specify the layout of the model diagram:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-yj1ilw

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-zamb4p

An edge-weighted "SpringElectricalEmbedding" is used by default:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-7m8lyy

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-3i35q7


https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-jfaq9h

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-k8wj0f

Applications (3)Sample problems that can be solved with this function
A DC Motor (1)
Create a model of a DC motor by connecting electrical and mechanical components:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-cunj34

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-1fq0zl

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-f8e086

Show the angular velocity of the DC motor:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-x0jjd8

A Lowpass Filter (1)
Create a digital lowpass filter:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-ne9mv
Convert the filter into a transfer function:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-frtx5k

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-fma2c6


https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-lt4985
Create a signal generating source:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-nq68wj
Connect the signal source to the filter:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-tvuhnm

Simulate and plot the signal output and the filtered signal:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-9kmmeu

An Inerter (1)
Create an inerter, with forces at the terminals proportional to relative acceleration:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-0m6g03
Compare how adding an inerter to a damping system influences vibrations:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-rrvjc2


https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-8gpecl

Set parameter values and simulate the system with a sine vibration force:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-ib983p

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-ybnfpe

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-17qisq
Damping effects are of similar magnitude:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-mqmolc

Forces acting on the damper component are significantly reduced with an inerter:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-t848je

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-s3o2nn

Properties & Relations (3)Properties of the function, and connections to other functions
Use CreateSystemModel to create models based on differential equations:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-9au9aq

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-iujpgh

CreateSystemModel can be used similarly to ConnectSystemModelComponents:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-uul0vx

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-8iqyor

Hierarchical models based on existing components enable quick creation of larger systems:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-tqcupe
Build a 3D inverted pendulum model with a controller:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-13e4o4

A complex multidomain system can be built using few components:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-kubtms

Neat Examples (1)Surprising or curious use cases
Show thermal conductance between vertices in a graph:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-zx1h73

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-ksvj8e

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-pjiq4h

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-vwvete
Create a model and set initial and parameter values:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-kovksi

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-2jp40c
Simulate and animate the model, indicating temperature by color:

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-5gjnxb

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-fxgfmf

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-074yi

https://wolfram.com/xid/0nxtkmmb3cn7wzcwj-1rm1jb

Wolfram Research (2018), ConnectSystemModelComponents, Wolfram Language function, https://reference.wolfram.com/language/ref/ConnectSystemModelComponents.html (updated 2020).
Text
Wolfram Research (2018), ConnectSystemModelComponents, Wolfram Language function, https://reference.wolfram.com/language/ref/ConnectSystemModelComponents.html (updated 2020).
Wolfram Research (2018), ConnectSystemModelComponents, Wolfram Language function, https://reference.wolfram.com/language/ref/ConnectSystemModelComponents.html (updated 2020).
CMS
Wolfram Language. 2018. "ConnectSystemModelComponents." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/ConnectSystemModelComponents.html.
Wolfram Language. 2018. "ConnectSystemModelComponents." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/ConnectSystemModelComponents.html.
APA
Wolfram Language. (2018). ConnectSystemModelComponents. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ConnectSystemModelComponents.html
Wolfram Language. (2018). ConnectSystemModelComponents. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ConnectSystemModelComponents.html
BibTeX
@misc{reference.wolfram_2025_connectsystemmodelcomponents, author="Wolfram Research", title="{ConnectSystemModelComponents}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/ConnectSystemModelComponents.html}", note=[Accessed: 08-July-2025
]}
BibLaTeX
@online{reference.wolfram_2025_connectsystemmodelcomponents, organization={Wolfram Research}, title={ConnectSystemModelComponents}, year={2020}, url={https://reference.wolfram.com/language/ref/ConnectSystemModelComponents.html}, note=[Accessed: 08-July-2025
]}