In the demo models 'Buck Converter with Thermal Model', the efficiency has been calculated just by 1-(Ploss/Pin), where Ploss is just the switch conduction and switching loss calculated in the thermal domain. In this, why in the denominator, Ploss has not been added? As the Pin reflects only the electrical loss (resistive losses), and not the switch loss (conduction+switching), but ultimately the switch loss also comes from the Pin. So, if the switch loss has been subtracted from the Pin separately in the numerator, then it should have been added in the denominator as well. Basically, as per my understanding, it should have been, (Pin-Ploss_switch)/(Pin+Ploss_switch). Can you please clarify this point?
So, If I connect the parasitic resistors along with the inductor and capacitor in my simulation, I observe that Pin-Po gives me the resistive losses only (not the switch loss). That means Pin=Po+resistive loss. But Pin doesn't include switch loss. So, how should I calculate efficiency in this case? Should it be, (1-(Ploss_resistive+Ploss_Switch)/Pin) or (Pin-Ploss_switch)/(Pin+Ploss_switch)?