11.3 Component behavior - Electrical components

Gallery
Tutorial
The following image combines a Block Definition Diagram (BDD) representation of MagicDraw/Cameo SysPhSLibrary components vs the SysPhS-1.1 spec table 11.3.4 Electrical components and an unwired representation of them in a Internal Block Diagram (IBD):
Click on the image to view it full size
Beware that:
Note how some of the Port names have been re-mapped using the 'name' tagged value of «ModelicaPort» or «SimulinkPort».
There are a couple of subtleties when dealing with the electrical components.

The Port 'p' on the SysPhS Electrical.Ground block is 'inout'. It maps to a Modelica Pin, where:

A typical implementation of Modelica.Electrical.Analog.Interfaces.Ground is:

connector Pin "Pin of an electrical component"
  SI.ElectricPotential v "Potential at the pin";
  flow SI.Current i "Current flowing into the pin";
end Pin;

So current i flowing back out of the Ground is negative.

Also on the Modelica side, it's worth noting the particular usage of the word 'Port':

Where Modelica.Electrical.Analog.Interfaces.OnePort is extended by many basic analog components such as Modelica.Electrical.Analog.Basic.Resistor.

It's worth noting that use of the term Connector in UML/SysML is very different from that of the connector keyword in Modelica, as explained under: Concerning definitions: "a connector end" vs "a connector between 2 ends" vs "connection" vs "connect" in various technologies.

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