NegativePin

connector NegativePin "Negative 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_n",
        Documentation(
            info = "<html>\n<p>Connectors PositivePin and NegativePin are nearly identical. The only difference is that the icons are different in order to identify more easily the pins of a component. Usually, connector PositivePin is used for the positive and connector NegativePin for the negative pin of an electrical component.</p>\n</html>",
            revisions = "<html>\n<dl>\n<dt><em>1998</em></dt>\n<dd>by Christoph Clauss initially implemented\n</dd>\n</dl>\n</html>"),
        Icon(
            coordinateSystem(
                preserveAspectRatio = true,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Rectangle(
                    extent = {
                        {-100, 100}, 
                        {100, -100}},
                    lineColor = {0, 0, 255},
                    fillColor = {255, 255, 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 = {255, 255, 255},
                    fillPattern = FillPattern.Solid), 
                Text(
                    extent = {
                        {-40, 110}, 
                        {160, 50}},
                    textString = "%name",
                    lineColor = {0, 0, 255})}));
end NegativePin;