the input dc current to the inverter is pulsating with ripples, so iuse mean block to measure averaged dc i/p current. the average time is 0.02 seconds as the output frequency is 50 Hz.
Im using unipolar sinusoidal pulse width modulation (PWM) for switching, and getting nearly sinusoidal output.
I use rms block with fundamental frequency 50Hz to measure voltage across and current through resistor.
But he measured input power by multiplying dc voltage and averaged input current is different for different simulation times, the same occurs with output power,
What should be the simulation time, and what are the setting tio be done in the model to find correct efficiency