blockSkyClearness
Sky clearness
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Information
This component computes the sky clearness.
Implementation
In the Buildings library, HDirNor
is always larger than 1E-4,
minus some small undershoot due to regularization. Hence,
the implementation is not simplified for
HDirNor < Modelica.Constants.small.
The function call
Buildings.Utilities.Math.Functions.smoothMax
is such that the regularization is usually not triggered.
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | zen | Zenith angle of the sun beam | |
| Modelica.Blocks.Interfaces.RealInput | HDifHor | Horizontal diffuse solar radiation | |
| Modelica.Blocks.Interfaces.RealInput | HDirNor | Horizontal global solar radiation | |
| Modelica.Blocks.Interfaces.RealOutput | skyCle | Sky clearness. skyCle=1: overast sky; skyCle=8: clear sky |
Revisions
-
March 4, 2024, by Michael Wetter:
CorrecteddisplayUnit.
This is for IBPSA, #1848. -
September 6, 2021, by Ettore Zanetti:
Changedlatfrom being a parameter to an input from weather bus.
Changed input connectorHGloHortoHDirNor.
This is for IBPSA, #1477. -
May 2, 2021, by Ettore Zanetti:
Corrected expression for sky clearness.
This is for issue 1477. -
September 23, 2016, by Michael Wetter:
ChangeddeltaXfrom0.1to0.01, and also optimized the code.
This is for issue 521. -
May 5, 2015, by Michael Wetter:
Introduced constantkto reduce number of operations. -
May 5, 2015, by Filip Jorissen:
Convertedalgorithmsection intoequationsection for easier differentiability. -
July 07, 2010, by Wangda Zuo:
First implementation.