Skip to main content

PFDavg calculation

Project description

Introduction

PyPFD is a Python library designed to calculate the Probability of Failure on Demand (PFD) in accordance with the international safety standards IEC 61508 and IEC 61511. It provides a way to estimate the reliability of Safety Devices, making it easier for engineers and safety professionals to perform consistent SIS assessments.

It allows you to evaluate PFDavg for various architectures (1oo1, 1oo2, 2oo2, 2oo3, 1oo3, and KooN using a general formula).

The library provides the following formulas:

def pfd_avg_1oo1(λ_du, λ_dd, T1_month, MTTR):

def pfd_avg_1oo1_pt(λ_du, λ_dd, T1_month, T2_month, PDC, MTTR):

def pfd_avg_1oo2(λ_du, λ_dd, β, βd, T1_month, MTTR):

def pfd_avg_1oo2_pt(λ_du, λ_dd, β, βd, T1_month, T2_month, PDC, MTTR):

def pfd_avg_1oo3(λ_du, λ_dd, β, βd, T1_month, MTTR):

def pfd_avg_2oo2(λ_du, λ_dd, T1_month, MTTR):

def pfd_avg_2oo2_pt(λ_du, λ_dd, T1_month, T2_month, PDC, MTTR):

def pfd_avg_2oo3(λ_du, λ_dd, β, βd, T1_month, MTTR):

def pfd_avg_KooN(K, N, λ_du, λ_dd, β, βd, T1_month, MTTR):

Parameters:

λ_du = dangerous undetected failure rate per hour

λ_dd = dangerous detected failure rate per hour

β = common cause for safe failure in %

βd = common cause for unsafe failure in %

T1_month = test interval in months (with PDC effectiveness)

T2_month = test interval in months for "as good as new" condition

PDC = partial diagnostic coverage of the test (% capable of revealing dangerous undetected failures)

MTTR = mean time to repair

All formulas assume identical devices. For combinations of different devices or different test intervals, see the formulas below (currently in development and not validated yet):

def pfhKooN(K, N, λ_d, β, T1_month): def pfd_avg_1oo2_dif(λ_du1, λ_dd1, T1_month1, MTTR1, β1, βd1, λ_du2, λ_dd2, T1_month2, MTTR2, β2, βd2):

def pfd_avg_2oo3_dif(λ_du1, λ_dd1, T1_month1, MTTR1, β1, βd1, λ_du2, λ_dd2, T1_month2, MTTR2, β2, βd2, λ_du3, λ_dd3, T1_month3, MTTR3, β3, βd3):

def pfd_avg_1oo3_dif(λ_du1, λ_dd1, T1_month1, MTTR1, β1, βd1, λ_du2, λ_dd2, T1_month2, MTTR2, β2, βd2, λ_du3, λ_dd3, T1_month3, MTTR3, β3, βd3):

Roadmap

-Test and validate all existing formulas.

-Create a GitHub repository explaining the logic behind the formulas.

-Develop default reliability data for common devices (Analog Transmitters, Valves, and Logic Solvers).

Highlights

-These formulas, combined with xlwings Lite in Excel, provide an efficient and user-friendly way to perform SIS assessments.

-If you need a specific architecture not present in the library, feel free to contact me for assistance.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypfd-2025.0.0.7.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypfd-2025.0.0.7-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pypfd-2025.0.0.7.tar.gz.

File metadata

  • Download URL: pypfd-2025.0.0.7.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pypfd-2025.0.0.7.tar.gz
Algorithm Hash digest
SHA256 7368b7bb8cdfbf7a7cb4764b3025c9e571b363582addd1fa4c2c253f563ea496
MD5 562a784cd8e5d7894852c38ff93a7b90
BLAKE2b-256 8e31782bb0cd5fe09dc4f3f0747c79c9b522c77310d95c318065d291137ed5f1

See more details on using hashes here.

File details

Details for the file pypfd-2025.0.0.7-py3-none-any.whl.

File metadata

  • Download URL: pypfd-2025.0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pypfd-2025.0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8fe1fdf19e6c25d46dd58e46d1c9db711a1c923c0d8931e240a49dd558e396ec
MD5 6d47021c495f3dc68e79658798a84ebf
BLAKE2b-256 f7b7e0af1a4e4e4876f031708b3a6d7468ecf7a9d62fc336538cc8a6afb4380d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page