Как преобразовать PFH в MTTF на Python с помощью UliEngineering

Можно легко преобразовать PFH (вероятность отказа в час) в MTTF (среднее время до отказа) с помощью библиотеки Python UliEngineering:

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.
PFH
PFH_to_MTTF.py
from UliEngineering.Reliability.Conversion import *
from UliEngineering.EngineerIO import *

# Преобразовать 1e-6 PFH в MTTF
mttf = PFH_to_MTTF(1e-6)
print(f"1e-6 PFH = {format_value(mttf, 'h')}")

# Преобразовать 1e-5 PFH в MTTF
mttf = PFH_to_MTTF(1e-5)
print(f"1e-5 PFH = {format_value(mttf, 'h')}")

Пример вывода

PFH_to_MTTF_output.txt
1e-6 PFH = 1.00e+06 h
1e-5 PFH = 1.00e+05 h

PFH — это вероятность отказа в час. Преобразование использует формулу: $MTTF = \frac{1}{PFH}$ часов.

Связанные записи


Check out similar posts by category: Calculators, Reliability, Python