Function that validates the incidence angle modifiers.
If the data are invalid, the function issues an assertion and stops the simulation.
Otherwise it returns true
.
function validateAngles extends Modelica.Icons.Function; input Modelica.Units.SI.Angle[:] incAngDat(each final min = 0, each final max = Modelica.Constants.pi/2) "Incident angle data in degrees"; input Real[:] incAngModDat(each final min = 0, each final unit = "1") "Incident angle modifier data"; output Boolean valid; end validateAngles;