Modelica versions of the ElectricCircuit (with and without overlapping connect lines)

Gallery
Tutorial
The spec example circuit is almost identical to the example circuit known in the Modelica world as:
IntroductoryExamples.ComponentBased.ElectricCircuit
A version from Wolfram SystemModeler is shown here side-by-side with the same model drawn without any overlapping connect lines:
Click on the image to view it full size

It is not suggested in this trail that you should always draw it that way in Modelica. The point is rather to make it clear what is actually going on behind the scenes in the tool. In most Modelica tools, if you select one of the connect lines it is momentarily highlighted and it becomes clear in the model diagram shown left that there is in fact no node or junction between the positive pins of the source and the two resistors; this is not so clear when the diagram is exported!

One could of course instead introduce an explicit 3-way Junction component.

Let's now reproduce this model using SysML/SysPhS. First we'll create a Block Definition Diagram (BDD) to define the components then we'll mimic the lumped-model electric circuit using an Internal Block Diagram (IBD). (The spec actually shows this done the other way round, with the IBD shown first.)

Up next
Notes
Snippets (quotes/extracts)
Visit also
Visit also (backlinks)
Related slides (includes other tutorials)
Related slides (backlinks, includes other tutorials)