Comment convertir PFH en MTTF en Python avec UliEngineering

Vous pouvez facilement convertir PFH (Probability of Failure per Hour) en MTTF (Mean Time To Failure) à l’aide de la bibliothèque Python UliEngineering :

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

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

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

Exemple de sortie

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

PFH est la probabilité de défaillance par heure. La conversion utilise la formule : $MTTF = \frac{1}{PFH}$ heures.

Articles liés


Check out similar posts by category: Reliability, Python