Four quadrant switched inverter, based on switch equation. Fulfills the power balance:
vAC*iAC = vDC*iDC
Gates:
true=on, false=off.
The Boolean parameter Vf_zero chooses faster code if both Vf_s and Vf_d are zero.
Blocking losses are neglected in the expression of dissipated heat Q_flow.