This component computes the sky clearness.
In the IDEAS library, HGloHor
is always larger than 1E-4,
minus some small undershoot due to regularization. Hence,
the implementation is not simplified for
HGloHor < Modelica.Constants.small.
The function call
IDEAS.Utilities.Math.Functions.smoothMax
is such that the regularization is usually not triggered.
lat from being a parameter to an input from weather bus.HGloHor to HDirHor.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.