Can anyone help work out what characteristics diode D4 should have in this circuit diagram for a wind generator control board...?

My initial guess is that it's protecting U1 (a voltage regulator?) from discharge currents from C4. Does that sound right...?

Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.