This model contains operator to compute
-time of sunrise and sunset
-angles to build the position of the sun in the sky
-a method to build a map of shadow duration
I used a command in Building Space Planning to check that the result is correct, but I didn't reuse the same method of computation, so I suppose the result is correct for both.
Warning, time must be manipulated in seconds but the model has a converter to display or input time in h.min.s
the model is here :
