MagneticPotentialDifferenceSensor

model MagneticPotentialDifferenceSensor "Sensor to measure magnetic potential difference"
    extends FluxTubes.Interfaces.RelativeSensor;
equation
    y = V_m;
    Phi = Complex(0);

    annotation (
        defaultComponentName = "magVoltageSensor",
        Icon(
            coordinateSystem(
                preserveAspectRatio = false,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Text(
                    extent = {
                        {-52, 1}, 
                        {48, -57}},
                    textString = "V_m"), 
                Line(
                    points = {
                        {-70, 0}, 
                        {-90, 0}},
                    color = {255, 170, 85}), 
                Line(
                    points = {
                        {70, 0}, 
                        {90, 0}},
                    color = {255, 170, 85}), 
                Line(points = {
                    {0, -90}, 
                    {0, -70}})}),
        Diagram(coordinateSystem(preserveAspectRatio = false)),
        Documentation(info = "<html>\n<p>\nThis sensor can be used to measure the complex magnetic potential difference <code>V_m</code>\nin a quasi static magnetic system.\n</p>\n</html>"));
end MagneticPotentialDifferenceSensor;