diagram of open and closed circuits