Measuring shadow area

Hello. I am a new bee to rhino grasshopper. I am working on a self-shading envelope wall. I am trying to correlate the cumulative incident surface radiation with shadow area on the walls. Can someone help me with scripting or calculating surface shadow areas on the walls as a result of self shading from the envelope geometry?