UliEngineering を使って Python で MTTF を PFH に変換する方法

UliEngineering Python ライブラリを使うと、MTTF(平均故障時間)を PFH(1 時間あたりの故障確率)に簡単に変換できます。

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 *

# 1,000,000 時間を PFH に変換
pfh = MTTF_to_PFH("1000000h")
print(f"1,000,000 h = {pfh:.2e} PFH")

# 100,000 時間を PFH に変換
pfh = MTTF_to_PFH("100000h")
print(f"100,000 h = {pfh:.2e} PFH")

出力例

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

PFH は 1 時間あたりの故障確率です。この変換は次の式を使用します: $PFH = \frac{1}{MTTF}$。

関連記事


同じカテゴリの類似記事をチェック: 計算機 信頼性 Python