Ground

model Ground "Zero magnetic potential"
    FluxTubes.Interfaces.PositiveMagneticPort port annotation (Placement(transformation(
        extent = {
            {-10, 110}, 
            {10, 90}},
        rotation = 0)));
equation
    port.V_m = 0;

    annotation (
        Documentation(info = "<html>\n<p>\nThe magnetic potential at the magnetic ground node is zero. Every magnetic network model must contain at least one magnetic ground object.\n</p>\n</html>"),
        Icon(
            coordinateSystem(
                preserveAspectRatio = false,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Line(
                    points = {
                        {-60, 50}, 
                        {60, 50}},
                    color = {255, 127, 0}), 
                Line(
                    points = {
                        {-40, 30}, 
                        {40, 30}},
                    color = {255, 127, 0}), 
                Line(
                    points = {
                        {-20, 10}, 
                        {20, 10}},
                    color = {255, 127, 0}), 
                Line(
                    points = {
                        {0, 90}, 
                        {0, 50}},
                    color = {255, 127, 0}), 
                Text(
                    extent = {
                        {-150, -50}, 
                        {150, -10}},
                    lineColor = {0, 0, 255},
                    textString = "%name")}),
        Diagram(
            coordinateSystem(
                preserveAspectRatio = false,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Line(
                    points = {
                        {-60, 50}, 
                        {60, 50}},
                    color = {255, 127, 0},
                    thickness = 0.5), 
                Line(
                    points = {
                        {-40, 30}, 
                        {40, 30}},
                    color = {255, 127, 0},
                    thickness = 0.5), 
                Line(
                    points = {
                        {-20, 10}, 
                        {20, 10}},
                    color = {255, 127, 0},
                    thickness = 0.5), 
                Line(
                    points = {
                        {0, 100}, 
                        {0, 50}},
                    color = {255, 127, 0},
                    thickness = 0.5), 
                Text(
                    extent = {
                        {-40, -40}, 
                        {40, 20}},
                    lineColor = {0, 0, 255},
                    textString = "port.V_m = 0")}));
end Ground;