Piecewise linear diode in electrical systems
The Diode block models a piecewise linear diode. If the voltage across the diode is bigger than the Forward voltage parameter value, then the diode behaves like a linear resistor with low resistance, given by the On resistance parameter value, plus a series voltage source. If the voltage across the diode is less than the forward voltage, then the diode behaves like a linear resistor with low conductance given by the Off conductance parameter value.
When forward biased, the series voltage source is described with the following equation:
The Ron.Goff term ensures that the diode current is exactly zero when the voltage across it is zero.