„However, the thermal losses are still determined by the RMS value of current passing through the resistance.“
Hi ScottyUK,
RMS means Root-Mean-Square, that indicates that we are talking about a mathematical model.
Can you understand the difference between a mathematical model and a real circuit?
RMS-model works with a DC-Current or with a Sine-Current, but only approximately.
If there is a “distorted” current, you have to represent this current as a mix of different sine curves with different frequencies (Fourrier Analysis).
You can calculate the RMS-Value of a sine current as:
I rms = squ(sum( In mom ^2)/n); n- number of the instant-currents
As you see, you have to split your real current curve into n instant-currents to find out your “root mean square”, which means that you can only find out an approximate value of the real current curve, because you are operating with a limited number

.
If your current is “ugly”, you have to do your calculation with a limited number of sine curves and then find the total RMS of the sine-mix.
I rms-total = squ(sum Im rms ^2 ); m – the number of sines
As you can see, there is a big fault in this model. You cannot take into account the phase-displacement of different frequencies.
In circuits with “ugly current” you have to distinguish between DPF (displacement power factor) and TPF (true power factor).
The term “effective current” refers to a low-frequency-sine-current that causes the same thermal “effect” in a resistor as a DC-Current. You just measure the temperature in this resistor and if the temperatures are equal, you can say that the “effective” values of these currents are equal.
As you see, the “Effective Value” (heating effect in a resistor) and the “RMS-Value” of a current are different things. "Effective value" can be measured with a thermometer, the "RMS-Value" can be calculated, but only approximately, not taking into account many important things.
Have you got my drift, ScottyUK?