An analogy often used to describe the behavior of a semiconductor diode is a mechanical switch. In Fig. 1 .21a the diode is acting like a closed switch permitting a generous flow of charge in the direction indicated. In Fig. 1 .21b the level of current is so small in most cases that it can be approximated as 0 A and represented by an open switch.