如何使用 UliEngineering 在 Python 中计算 PREN
你可以使用 UliEngineering Python 库轻松计算耐点蚀当量数(PREN):
pren.py
from UliEngineering.Chemistry.PREN import pren
# 计算 304 不锈钢的 PREN(18% Cr、8% Ni、0% Mo)
pren_value = pren({"Cr": 18.0, "Ni": 8.0, "Mo": 0.0})
print(f"PREN (304 steel): {pren_value:.1f}")
# 计算 316 不锈钢的 PREN(17% Cr、12% Ni、2.5% Mo)
pren_value = pren({"Cr": 17.0, "Ni": 12.0, "Mo": 2.5})
print(f"PREN (316 steel): {pren_value:.1f}")
# 计算 904L 不锈钢的 PREN(20% Cr、25% Ni、4.5% Mo)
pren_value = pren({"Cr": 20.0, "Ni": 25.0, "Mo": 4.5})
print(f"PREN (904L steel): {pren_value:.1f}")示例输出
pren_output.txt
PREN (304 steel): 18.0
PREN (316 steel): 24.5
PREN (904L steel): 33.5耐点蚀当量数(PREN)是一种用于预测不锈钢及其他耐腐蚀合金抗点蚀能力的指标。PREN 值越高,表示在含氯环境中抗点蚀能力越强。这在化工、海洋应用以及任何关注局部腐蚀的环境中的材料选型时非常重要。
PREN 按以下公式计算:$\text{PREN} = %Cr + 3.3 \times %Mo + 16 \times %N$,其中 $%Cr$、$%Mo$ 和 $%N$ 分别是铬、钼和氮的质量百分比。某些公式也会以一定系数纳入镍,但标准公式主要关注这三种对抗点蚀起关键作用的元素。
相关文章
- 如何使用 UliEngineering 在 Python 中计算加权 PREN
- 如何使用 UliEngineering 在 Python 中计算分子量
- 如何使用 UliEngineering 在 Python 中计算质量百分组成
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow