How to compute diode power dissipation using the Shockley equation in Python using UliEngineering

You can easily compute the power dissipated by a diode using the Shockley equation using the UliEngineering Python library:

shockley_diode_power.py
from UliEngineering.Electronics.Diode import *
from UliEngineering.EngineerIO import *

power = shockley_diode_power(voltage="600mV", saturation_current="1pA")
print(f"Diode power: {format_value(power, 'W')}")

Example output

shockley_diode_power_output.txt
Diode power: 8.32 mW

Check out similar posts by category: Electronics, Python