Python: Widerstandsstrom aus Leistung und Widerstand mit UliEngineering berechnen

English Deutsch

Du kannst leicht den Strom durch einen Widerstand bei gegebener Verlustleistung und Widerstand mit der UliEngineering-Python-Bibliothek 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

Der Strom wird mit der Formel $I = \sqrt{\frac{P}{R}}$ berechnet

Verwandte Beiträge


Check out similar posts by category: Electronics, Python