从电容和电压计算电容器能量的在线计算器和 Python 代码
Σ
TechOverflow calculators:
You can enter values with SI suffixes like 12.2m (equivalent to 0.012) or 14k (14000) or 32u (0.000032).
The results are calculated while you type and shown directly below the calculator, so there is no need to press return or click on a Calculate button.
You can enter values with SI suffixes like 12.2m (equivalent to 0.012) or 14k (14000) or 32u (0.000032).
The results are calculated while you type and shown directly below the calculator, so there is no need to press return or click on a Calculate button.
C
⚠
V
⚠
公式
$$E = \frac{1}{2}\cdot{}C\cdot{}U_p^2$$Python 代码
你可以像这样使用 UliEngineering 库:
capacitor_energy_calculator.py
from UliEngineering.Electronics.Capacitors import capacitor_energy
from UliEngineering.EngineerIO import auto_format, auto_print
# 这些是等效的:
energy = capacitor_energy("100 uF", "24 V") # energy = 0.0288 (J)
energy = capacitor_energy(100e-6, 24.0) # energy = 0.0288 (J)
# ... 或获取人类可读的值:
energy_str = auto_format(capacitor_energy, "100 uF", "24 V") # "28.8 mJ"
# ... 或直接打印
auto_print(capacitor_energy, "100 uF", "24 V") # prints "28.8 mJ"如果你不能使用 UliEngineering,使用此 Python 函数:
capacitor_energy_uli.py
def capacitor_energy(capacitance, voltage):
return 0.5*capacitance*voltage*voltage
# 用法示例:
print(capacitor_energy(100e-6, 24.0)) # 打印 0.0288 (J)Check out similar posts by category:
Calculators, Electronics
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow