Pin

connector Pin "Pin of an electrical component"
    SI.ElectricPotential v "Potential at the pin"
        annotation (unassignedMessage = "An electrical potential cannot be uniquely calculated.\nThe reason could be that\n- a ground object is missing (Modelica.Electrical.Analog.Basic.Ground)\n  to define the zero potential of the electrical circuit, or\n- a connector of an electrical component is not connected.");
    flow SI.Current i "Current flowing into the pin"
        annotation (unassignedMessage = "An electrical current cannot be uniquely calculated.\nThe reason could be that\n- a ground object is missing (Modelica.Electrical.Analog.Basic.Ground)\n  to define the zero potential of the electrical circuit, or\n- a connector of an electrical component is not connected.");

    annotation (
        defaultComponentName = "pin",
        Icon(
            coordinateSystem(
                preserveAspectRatio = true,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Rectangle(
                    extent = {
                        {-100, 100}, 
                        {100, -100}},
                    lineColor = {0, 0, 255},
                    fillColor = {0, 0, 255},
                    fillPattern = FillPattern.Solid)}),
        Diagram(
            coordinateSystem(
                preserveAspectRatio = true,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Rectangle(
                    extent = {
                        {-40, 40}, 
                        {40, -40}},
                    lineColor = {0, 0, 255},
                    fillColor = {0, 0, 255},
                    fillPattern = FillPattern.Solid), 
                Text(
                    extent = {
                        {-160, 110}, 
                        {40, 50}},
                    lineColor = {0, 0, 255},
                    textString = "%name")}),
        Documentation(
            revisions = "<html>\n<ul>\n<li><em> 1998   </em>\n       by Christoph Clauss<br> initially implemented<br>\n       </li>\n</ul>\n</html>",
            info = "<html>\n<p>Pin is the basic electric connector. It includes the voltage which consists between the pin and the ground node. The ground node is the node of (any) ground device (Modelica.Electrical.Basic.Ground). Furthermore, the pin includes the current, which is considered to be <strong>positive</strong> if it is flowing at the pin <strong>into the device</strong>.</p>\n</html>"));
end Pin;