Como converter MTTF para PFH em Python usando UliEngineering

Você pode converter facilmente MTTF (Tempo Médio Até Falha) para PFH (Probabilidade de Falha por Hora) 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.
h
MTTF_to_PFH.py
from UliEngineering.Reliability.Conversion import *
from UliEngineering.EngineerIO import *

# Converter 1.000.000 horas para PFH
pfh = MTTF_to_PFH("1000000h")
print(f"1,000,000 h = {pfh:.2e} PFH")

# Converter 100.000 horas para PFH
pfh = MTTF_to_PFH("100000h")
print(f"100,000 h = {pfh:.2e} PFH")

Exemplo de saída

MTTF_to_PFH_output.txt
1,000,000 h = 1.00e-06 PFH
100,000 h = 1.00e-05 PFH

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

Posts relacionados


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