ReferenceSensor

model ReferenceSensor "Sensor of reference angle gamma"
    extends FluxTubes.Interfaces.AbsoluteSensor;

    Modelica.Blocks.Interfaces.RealOutput y "Reference angle"
        annotation (Placement(transformation(extent = {
            {100, -10}, 
            {120, 10}})));
equation
    y = port.reference.gamma;

    annotation (
        Icon(graphics = {
            Text(
                extent = {
                    {60, -60}, 
                    {-60, -30}},
                fillPattern = FillPattern.Solid,
                textString = "ref")}),
        Diagram(coordinateSystem(preserveAspectRatio = false)),
        Documentation(info = "<html>\n<p>This sensor determines the reference angle of the connected quasi static magnetic system.\nThe integral of the angular frequency of the quasi static magnetic system is equal to the reference angle.\n</p>\n</html>"));
end ReferenceSensor;