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.6.tar.gz (152.0 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.6-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (316.6 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.6-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (316.7 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.6-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (316.8 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.6-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (319.1 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.8+Windows x86-64

ofire-0.1.6-cp38-abi3-manylinux_2_34_x86_64.whl (322.8 kB view details)

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

ofire-0.1.6-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.6-cp38-abi3-macosx_11_0_arm64.whl (283.6 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

ofire-0.1.6-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.6.tar.gz.

File metadata

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

File hashes

Hashes for ofire-0.1.6.tar.gz
Algorithm Hash digest
SHA256 0d3520cc4d2456a777784b2d4743717e1bacbdcb7adfdf097d03eb159f710911
MD5 a7126259fd34e90f9d1b7ade59f16ab0
BLAKE2b-256 f23bc9c817a5db250a4493e068babaed606f8572926ce1463adfa00b98bd752f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.6-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 dee5b571bf72c9e9b84cc364a69c0155a3c50cd53fd63bd6e58669eafeace83e
MD5 adacae374fc2005f4c91d818480de0af
BLAKE2b-256 600ca2510df0d7e2ab57cce1c2a3899e17b05c6b59dbb7dd5b928034e4117d96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.6-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 40cda6799a51ec5f5f255d15d2b24bf3c8ba548d819a90ccebf0a70cf812b633
MD5 51744f8b9b1676e4d755b3d7acecafb4
BLAKE2b-256 26988a0049480b06871626d769a8f942fe1935705077f19d6678a6a11f5a4795

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.6-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 04930cb7b2a220623d64ff2749d600550920e704c3ec4e65385fe05f74290b4d
MD5 b64d8c56c02e7e9979eea9c661a528c5
BLAKE2b-256 fdf31a0aad888d569c4ae22e8a99f8c2297e496de0d6d66b2314263862a49f6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.6-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a4f604cff57465d66a2d9adf1a69a16d7b49d21ed6c59fa0308b74fec990a975
MD5 5ec89c3cdb8364b459217e0249b8a63c
BLAKE2b-256 26e92270dc67ec7bbd816349f4a4aa0086c67d38b0f8d6a7f17804833198ac62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ofire-0.1.6-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.6-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 01a4af2ca3d99e6f3a97875e40cf6fdb5780f982ed7675097056bf5df2ecf80e
MD5 2674126aa024ae04949b654791a76d25
BLAKE2b-256 1482ff55b036868666571d073ad996ef440baf35937b823b3ec4da2966550e15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.6-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 06022a77e6de2c9afe76d9ece231c7d8983393997e508390f38d4677398e317d
MD5 9457bc01b927173c47c2df33c85faae2
BLAKE2b-256 3ccaf0b655b071c61b3ee749f4b688ac4626796bc8bca81af4f7c2025e114099

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.6-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f37c665b327f082db43ea6c60c32e9e15b5807200125108a6e10ec6a44fc3bdb
MD5 e4690b8d38ca7881411dc8e68b26bdf2
BLAKE2b-256 3cdaca202dd27fe1c3bd686edea644ef8f468b471206e65ea88efc5f4614b656

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.6-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2f61279f24146b90198a2b96126ee4b3407125ecff03b652836b50dc51babf8
MD5 c52c5220d522cdcb5f34088f3ef23987
BLAKE2b-256 3d2fe1b4c9016c6228a97c575691797c470da86a45ab016d0d81c29d7ada9352

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.6-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7807933a89c707cb2e87dad00052a6175e05d494f5c9d444282ab26370d8658b
MD5 0fe0fcc0a2ac6a171bc5da929c33b6e7
BLAKE2b-256 8fc560a459cc94fd99dfe02b168ec8174fecc513d7a8f401e9ebe2a0e3cb4c74

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