Skip to main content

A comprehensive Python package for fire safety engineering calculations and tools, providing implementations for industry standards like BR 187, BS 9999, CIBSE Guide E, PD 7974, SFPE Handbook, and more.

Project description

OFire - Fire Safety Engineering Library

PyPI Python Version

A comprehensive Python package for fire safety engineering calculations and tools, built on industry standard fire engineering documents and implemented in Rust for performance and reliability.

Overview

OFire provides Python bindings for a wide range of fire engineering calculations from authoritative sources including:

  • BR 187 - External Fire Spread (Building Research Establishment)
  • BS 9999 - Code of Practice for Fire Safety in the Design, Management and Use of Buildings
  • CIBSE Guide E - Fire Safety Engineering
  • PD 7974 - Application of Fire Safety Engineering Principles to the Design of Buildings
  • SFPE Handbook - Fire Protection Engineering
  • Introduction to Fire Dynamics - Fundamental fire behavior principles
  • TR 17 - Fire Safety Engineering Technical Reports

All calculations are implemented in Rust and exposed through Python bindings using PyO3 for optimal performance and memory safety.

Installation

Install from PyPI using pip:

pip install ofire

Quick Start

import ofire

# Calculate thermal radiation intensity using BR 187
radiation = ofire.br_187.appendix_a.equation_a2.radiation_intensity_at_receiver(0.15, 50000.0)
print(f"Received radiation: {radiation:.1f} W/m²")

# Calculate view factor for parallel surfaces using BR 187 
x = ofire.br_187.appendix_a.equation_a3.x(5.0, 10.0)
y = ofire.br_187.appendix_a.equation_a3.y(3.0, 10.0)
view_factor = ofire.br_187.appendix_a.equation_a3.phi(x, y, True)
print(f"View factor: {view_factor:.4f}")

# Calculate heat release rate at flashover using CIBSE Guide E
flashover_hrr = ofire.cibse_guide_e.chapter_6.equation_6_7.heat_release_rate_flashover(2.0, 2.1)
print(f"Flashover HRR: {flashover_hrr:.1f} kW")

# Calculate mean flame height using CIBSE Guide E
flame_height = ofire.cibse_guide_e.chapter_6.equation_6_55.mean_flame_height(1000.0)
print(f"Mean flame height: {flame_height:.2f} m")

📚 Documentation

📖 Complete API Documentation & Examples →

Find the complete function reference, mathematical formulations, detailed examples, and all supported fire engineering standards and modules in the full documentation.

Links

Contributing

We welcome contributions! Please see our Contributing Guidelines for information on how to get started.

License

This project is licensed under the terms specified in the PYTHON_LICENSE file.

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

ofire-0.1.8.tar.gz (151.5 kB view details)

Uploaded Source

Built Distributions

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

ofire-0.1.8-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (316.4 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.8-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (316.5 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.8-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (316.6 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.8-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (319.0 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.8-cp38-abi3-win_amd64.whl (174.2 kB view details)

Uploaded CPython 3.8+Windows x86-64

ofire-0.1.8-cp38-abi3-manylinux_2_34_x86_64.whl (322.9 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.34+ x86-64

ofire-0.1.8-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (321.8 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

ofire-0.1.8-cp38-abi3-macosx_11_0_arm64.whl (283.5 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

ofire-0.1.8-cp38-abi3-macosx_10_12_x86_64.whl (282.6 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file ofire-0.1.8.tar.gz.

File metadata

  • Download URL: ofire-0.1.8.tar.gz
  • Upload date:
  • Size: 151.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.10.2

File hashes

Hashes for ofire-0.1.8.tar.gz
Algorithm Hash digest
SHA256 a263e85109e06362af3f0c3c7c14e13ce8565a04e8cb0790150ea4c6d9474c53
MD5 e2e54a748a6c287e4729f9437cfd578f
BLAKE2b-256 24febcf541d1502433269ffb633e8cd7c882abb2485673c83b69b26d41158018

See more details on using hashes here.

File details

Details for the file ofire-0.1.8-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for ofire-0.1.8-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 05ba002c309e2c7644183e35b1955158caf129da37fc13e02c2873008b1da0d4
MD5 4c7493dc458b4f39cf9c8b521a5e1d19
BLAKE2b-256 9bc70ab223d33b84d24333cf774054c6dcb1e7eed85fe5d21b77130b1032929b

See more details on using hashes here.

File details

Details for the file ofire-0.1.8-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for ofire-0.1.8-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 26cc1a7ac1e42d13f250c5d97ec51988afec6b7989cbffab3887b56355ce8c93
MD5 304d9a9ba3eadacc7f12b6887e0a98a5
BLAKE2b-256 b9f192b0ec66d200c1d026058bedc1816cef18fe96663286e8a6624021462863

See more details on using hashes here.

File details

Details for the file ofire-0.1.8-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for ofire-0.1.8-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 71987dc35b356c2d3f2948542440afc4aa0eef32befe4470b249fb34654aa702
MD5 84a70c564739dfba98400b6b75bd9913
BLAKE2b-256 08f2d454476f6f707577a24cb1bd75a2b46736277114eb87d93bbe5075ffd4c6

See more details on using hashes here.

File details

Details for the file ofire-0.1.8-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for ofire-0.1.8-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 22b1a586a427fb2afe555e682ca402845bd76f13c901c1bafa50f33434eca64b
MD5 a21eb5d07ca79f0f38c9e4e406fc96f0
BLAKE2b-256 b288173441e38c2d70f4c974347494aea38167878c4a69d1cdaa3957454ae039

See more details on using hashes here.

File details

Details for the file ofire-0.1.8-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: ofire-0.1.8-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 174.2 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.10.2

File hashes

Hashes for ofire-0.1.8-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b0139cd97c9f3af6b57cce9e433781c45e5c8246f0a1caf5a33d51e9363e275b
MD5 84f44b718cd5e58bf6043c9b257f9207
BLAKE2b-256 283ffed15e13be017d31a4a94b06bf1d1f30ae648a0f53982d823cc09027d907

See more details on using hashes here.

File details

Details for the file ofire-0.1.8-cp38-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for ofire-0.1.8-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2057707fcd764017d0f4d906f6680cd78deb4b08f8cdf7c55372b5c286c928ea
MD5 b26854605732c461bb39c57282c1ceb2
BLAKE2b-256 c76ba632b24e7196e8d986584d6ab3c807330732e47a62c1d3ed845020a629b9

See more details on using hashes here.

File details

Details for the file ofire-0.1.8-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for ofire-0.1.8-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4ebd4a9ea551cf0b9e02d1d81f2fb5da191abfe347a872e715c4e0267715a6fb
MD5 bc0c1c52808562d383e4fbffe77500e3
BLAKE2b-256 3b3ea61d321006a052ac1483fa1d5619243772d783e8343b7a5250bd88839c26

See more details on using hashes here.

File details

Details for the file ofire-0.1.8-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ofire-0.1.8-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d50b9f6466c7febfb153c815daa87dea699901423db6405bd92806be4a78101a
MD5 88ed3b7f0c003426e2d42afa526ea8af
BLAKE2b-256 311c3fcc828d56ccf4a74cb88dd861bbf94884862bdcc5b2858260588be07e1c

See more details on using hashes here.

File details

Details for the file ofire-0.1.8-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for ofire-0.1.8-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 50b3f1212472a10ac4cd34690a5c2479b190add5b192c9957d7e9c6767691c0f
MD5 47b9ccaebc7f6ba5cdc13c85d3b2041c
BLAKE2b-256 dd1034b2fcb811e0af4d79f94d222775d4c42dabc1a22c43728e3dc936670aac

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