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 mADer Strom wird mit der Formel $I = \sqrt{\frac{P}{R}}$ berechnet
Verwandte Beiträge
- How to compute current from power and voltage in Python using UliEngineering
- How to compute resistor value from voltage and power in Python using UliEngineering
- How to compute power from current and voltage in Python using UliEngineering
Check out similar posts by category:
Electronics, Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow