How to convert PFH to MTTF in Python using UliEngineering

You can easily convert PFH (Probability of Failure per Hour) to MTTF (Mean Time To Failure) using the UliEngineering Python library:

PFH_to_MTTF.py
from UliEngineering.Reliability.Conversion import *
from UliEngineering.EngineerIO import *

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

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

Example output

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

PFH is the probability of failure per hour. The conversion uses the formula: $MTTF = \frac{1}{PFH}$ hours.


Check out similar posts by category: Reliability, Python