The I-V characteristics of a thermionic diode with patchy cathode