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.11.tar.gz (158.9 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.11-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (324.1 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.11-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (325.4 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.11-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (325.3 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.11-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (328.5 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.11-cp38-abi3-win_amd64.whl (178.5 kB view details)

Uploaded CPython 3.8+Windows x86-64

ofire-0.1.11-cp38-abi3-manylinux_2_34_x86_64.whl (330.8 kB view details)

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

ofire-0.1.11-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (328.9 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

ofire-0.1.11-cp38-abi3-macosx_11_0_arm64.whl (290.5 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

ofire-0.1.11-cp38-abi3-macosx_10_12_x86_64.whl (289.5 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ofire-0.1.11.tar.gz
Algorithm Hash digest
SHA256 f9f8ec64174acc23b7d9d559a6306cc5cdd7707369099599b889db4dd2612f37
MD5 40fe8a5562c20967bcbc00744a3edde8
BLAKE2b-256 307ae00036bca003c7ca35ba63c6f0fb9334ec8022023eee536eb7f93d09029a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.11-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fcbbee56422167783ca92f7ff285306ae8eefabb70c41957412daf22cf054f36
MD5 f97ecb1c6a02068e6bd3feb1f242174f
BLAKE2b-256 f907f82b00130c463173ed77b2d800891573e7941cbc2f89670465810c8130b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.11-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 226f0066ee7ffbcf954a9f25f6a3abc422066796f21375171b6bca183ee78a3d
MD5 8d26bb280fd21d54d23e4d54cf48d28d
BLAKE2b-256 cf73e202fd75d830d9c3c567314eb58f111957e90726730055c85c53303314c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.11-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9df69e9f0190c74f9c6d66dc4e8842dd055c22d1a8878cb3a8eb61bba3358b1d
MD5 81bad8f200b6fe4f539858f94adcc065
BLAKE2b-256 f05a3972157faee623e94504a76f1f23ef9358d76616618565b6dfb5e6b018cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.11-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8318a562bf2a1cde113b1ed0b7198473818ca3f7405dd39dd021d6dafbcf7a80
MD5 e3223eb9e615e4c19ea9bb92d5c0303f
BLAKE2b-256 1053fc641851fd0f428728ef4f17b11705306bb77db0f0ef0c1410bc55660b5f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ofire-0.1.11-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 178.5 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.11-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 51c33bbb91801109ba1f56158bd2ecf2cb640a9dd7f3927f779353a2d39bb5a5
MD5 2a6a67a2fd477db5f4358b561669d8dc
BLAKE2b-256 d821a5abc3ec1b4a0315ade18f8b2a4b545885028df72bf020264e2d19ae3e3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.11-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 decc44dcc71f7fface5df3c54aaca471b2374ca33201d71220be813828df2ff7
MD5 5b9dc732be7a9cdb719878191a0a8f06
BLAKE2b-256 20585704999e405857965b4caea957dd7238ed81b2786cb8bfb55ca75e75b4c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.11-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 79a6cff78c17dc3ff51720c7b1c59e231f94502b68d9876fb0003ee092c2a713
MD5 9c8c96379c30469b38b9841dc041c2e8
BLAKE2b-256 7144a9d12febc8e6cc5ffbc021c26b0a61ca3b67c9a612a5070baeb869b0991f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.11-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 91137214425b930d78f9f86e684773dda1f03738ddee4bb1a8bce39a7cc3e67d
MD5 2768a3b8d85fbfa9e3d48c949b046776
BLAKE2b-256 40d3a9f27bd1b40b430f1bc3bd80d73ba49d22aa0d35904465245412a9c30591

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.11-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ced8773b36a9b662f965f42dba1ef889411c4081e5c416d21d5037fcd97a98f8
MD5 8cd6146a109d902e6affbb2864f979ee
BLAKE2b-256 7e8f2630ea91111324a1302609475328bb31ba7721d6b7e8722e37be443adcbd

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