functionSmallestAngleDifference

Smallest difference between two angles around a point

Information

This function finds the smallest difference between two angles around a point.

The difference is calculated as input angle 'ang1' to the reference angle 'ang2', positive value shows a clockwise direction from input to reference, i.e. shows a counter-clockwise by measurement.

Inputs

TypeNameDefaultDescription
AixLib.Airflow.WindowVentilation.BaseClasses.Types.SmallestAngleDifferenceTypestypAixLib.Airflow.WindowVentilation.BaseClasses.Types.SmallestAngleDifferenceTypes.Range180
Modelica.Units.SI.Angleang1Input angle
Modelica.Units.SI.Angleang20Reference angle

Outputs

TypeNameDefaultDescription
Modelica.Units.SI.AngleangDifDifference between two angels

Revisions

  • June 13, 2024, by Jun Jiang:
    First implementation (see issue 1492)