Comment convertir une réactance capacitive en capacité en Python avec UliEngineering
Vous pouvez facilement calculer la capacité à partir de la réactance capacitive à une fréquence donnée en utilisant la bibliothèque Python UliEngineering :
capacitance_from_reactance.py
from UliEngineering.Electronics.Reactance import *
from UliEngineering.EngineerIO import *
# Calculer la capacité pour une réactance de 1kΩ à 1kHz
capacitance = capacitance_from_reactance("1k", "1kHz")
print(f"Capacité pour 1kΩ à 1kHz : {format_value(capacitance, 'F')}")
# Calculer la capacité pour une réactance de 100Ω à 10kHz
capacitance = capacitance_from_reactance("100Ω", "10kHz")
print(f"Capacité pour 100Ω à 10kHz : {format_value(capacitance, 'F')}")Exemple de sortie
capacitance_from_reactance_output.txt
Capacité pour 1kΩ à 1kHz : 159 nF
Capacité pour 100Ω à 10kHz : 159 nFLa capacité est calculée à l’aide de la formule : $C = \frac{1}{2\pi f X_C}$, où $f$ est la fréquence et $X_C$ est la réactance capacitive.
Articles liés
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