File:RMS voltage average power.svg

Summary

Description
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.

  • The RMS voltage is shown by the blue line.
  • The peak power is shown by the red line.
  • The average power is shown by the green line.
Date
Source Own work
Author Omegatron
SVG development
InfoField
Source code
InfoField

Python code

Source code
import matplotlib.pyplot as plt
from numpy import sin, pi, sqrt, mean, amax, linspace

t = linspace(0, 1.5, 1000)
sig = sin(2*pi*t)
Vrms = 1/sqrt(2)
power = sig**2  # R = 1 ohm
Ppeak = 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')

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • 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 the same or compatible license as the original.
Category:CC-BY-SA-4.0#RMS%20voltage%20average%20power.svg
Category:Self-published work

References

Annotations
InfoField
This image is annotated: View the annotations at Commons
Category:Waveforms Category:Voltage Category:Electrical power Category:Audio engineering Category:SVG line charts
Category:Audio engineering Category:CC-BY-SA-4.0 Category:Electrical power Category:Images with annotations Category:SVG line charts Category:Self-published work Category:Valid SVG created with Matplotlib code Category:Voltage Category:Waveforms