Python: Widerstandsstrom aus Leistung und Widerstand mit UliEngineering berechnen

Der Strom durch einen Widerstand bei gegebener Verlustleistung und Widerstand lässt sich mit der UliEngineering-Python-Bibliothek einfach berechnen:

resistor_current_by_power.py
from UliEngineering.Electronics.Resistors import *
from UliEngineering.EngineerIO import *

# Strom für 1W Verlustleistung an 1kΩ-Widerstand berechnen
current = resistor_current_by_power("1W", "1k")
print(f"Strom für 1W an 1kΩ: {format_value(current, 'A')}")

# Strom für 0,5W Verlustleistung an 100Ω-Widerstand berechnen
current = resistor_current_by_power("0.5W", "100Ω")
print(f"Strom für 0,5W an 100Ω: {format_value(current, 'A')}")

Beispielausgabe

resistor_current_by_power_output.txt
Strom für 1W an 1kΩ: 31.6 mA
Strom für 0,5W an 100Ω: 70.7 mA

Berechnet wird der Strom nach der Formel $I = \sqrt{\frac{P}{R}}$

Verwandte Beiträge


Ähnliche Beiträge nach Kategorie: Electronics, Python