This model demonstrates the behaviour of a dimmer with phase-angle control with resistive-inductive load. Note that due to the inductance the current is not zero at the points in time wehre zero-crossing of the voltage occurs, and the triac stays conducting until the current becomes zero.
The reference voltage is prescribed by a trapezoid between zero and full voltage. The voltageToAngle block calculates the necessary phase angle, which is processed by the Signal2mPulse adaptor, applying the firing signals to the triac.