Comment convertir MTTF en PFH en Python avec UliEngineering

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

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

# Convertir 1 000 000 heures en PFH
pfh = MTTF_to_PFH("1000000h")
print(f"1,000,000 h = {pfh:.2e} PFH")

# Convertir 100 000 heures en PFH
pfh = MTTF_to_PFH("100000h")
print(f"100,000 h = {pfh:.2e} PFH")

Exemple de sortie

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

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

Articles liés


Check out similar posts by category: Reliability, Python