English: Diagram showing a voltage waveform and the corresponding power waveform (dissipated by a resistive load).
The power is zero when the voltage is zero. Otherwise, the power waveform is always positive, as the resistor can only dissipate energy; it cannot supply energy to the circuit. In other words, the resistor outputs power regardless of whether the voltage is positive or negative.
importmatplotlib.pyplotaspltfromnumpyimportsin,pi,sqrt,mean,amax,linspacet=linspace(0,1.5,1000)sig=sin(2*pi*t)Vrms=1/sqrt(2)power=sig**2# R = 1 ohmPpeak=amax(power)Pavg=mean(power[t<1])plt.figure()plt.subplot(2,1,1)plt.plot(t,sig,color='0.2',lw=1.5)plt.axhline(Vrms,color='blue',ls='-',lw=1.2,alpha=0.8)plt.ylabel('Voltage [V]')plt.margins(0,0.1)plt.xticks(linspace(0,1.5,7))plt.yticks([-1,-0.5,0,0.5,1,Vrms])plt.grid(True,color='0.2',linestyle=':')plt.subplot(2,1,2)plt.plot(t,power,color='0.2',lw=1.5)plt.axhline(Ppeak,color='red',ls='-',lw=1.2,alpha=0.8)plt.axhline(Pavg,color='green',ls='-',lw=1.2,alpha=0.8)plt.xlabel('Time [s]')plt.ylabel('Power [W]')plt.margins(0,0.1)plt.ylim(-1.2,1.2)plt.xticks(linspace(0,1.5,7))plt.grid(True,color='0.2',linestyle=':')plt.tight_layout()plt.savefig('RMS voltage vs average power.svg')
to share – to copy, distribute and transmit the work
to remix – to adapt the work
Under the following conditions:
attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
share alike – If you remix, transform, or build upon the material, you must distribute your contributions under thesame or compatible license as the original.
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.