Como converter PFH para MTTF em Python usando UliEngineering

Você pode converter facilmente PFH (Probabilidade de Falha por Hora) para MTTF (Tempo Médio Até Falha) usando a biblioteca 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 *

# Converter 1e-6 PFH para MTTF
mttf = PFH_to_MTTF(1e-6)
print(f"1e-6 PFH = {format_value(mttf, 'h')}")

# Converter 1e-5 PFH para MTTF
mttf = PFH_to_MTTF(1e-5)
print(f"1e-5 PFH = {format_value(mttf, 'h')}")

Exemplo de saída

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

PFH é a probabilidade de falha por hora. A conversão usa a fórmula: $MTTF = \frac{1}{PFH}$ horas.

Posts relacionados


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