Operational amplifier is a voltage comparison circuit, which compares the input signal with the in-phase zero crossing.
The diode shapes the output signal of the comparison circuit. The diode with positive saturation value (12V) is turned off, and the diode with negative saturation value (-12V) is turned on.
Triode constitutes a switching circuit, which is convenient for adjusting the output voltage.