This component computes the sky clearness.
In the BuildingSystems
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
BuildingSystems.Utilities.Math.Functions.smoothMax
is such that the regularization is usually not triggered.
displayUnit
.lat
from being a parameter to an input from weather bus.HGloHor
to HDirNor
.deltaX
from 0.1
to 0.01
,
and also optimized the code.k
to reduce number of operations.
algorithm
section into
equation
section for easier differentiability.