blockLimiterWindDirection

Block that limits the wind direction

Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).

Information

Block that limits the wind direction.

This block is used because the weather data from file can have values for wind direction below 0 and above 360 degrees.

Parameters

TypeNameDefaultDescription
RealuMax2*Modelica.Constants.piMaximum value

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputuWind direction
Modelica.Blocks.Interfaces.RealOutputwinDirWind direction between 0 and 2 pi

Revisions

  • May 1, 2026, by Michael Wetter:
    Changed implementation to restrict output to [0, 360) degrees. This changes the range of the output to be the same as in the original implementation, but makes the block valid for any input value.
    This is for IBPSA, #2068.
  • April 7, 2026, by Ettore Zanetti:
    Updated limit from [0,360] to [-720,720].
    This is for IBPSA, #2068.
  • April 14, 2020, by Michael Wetter:
    First implementation.