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.4.tar.gz (145.1 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.4-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (312.0 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.4-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (312.1 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.4-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (312.1 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.4-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (314.3 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.4-cp38-abi3-win_amd64.whl (169.6 kB view details)

Uploaded CPython 3.8+Windows x86-64

ofire-0.1.4-cp38-abi3-manylinux_2_34_x86_64.whl (317.7 kB view details)

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

ofire-0.1.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (315.9 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

ofire-0.1.4-cp38-abi3-macosx_11_0_arm64.whl (278.2 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

ofire-0.1.4-cp38-abi3-macosx_10_12_x86_64.whl (278.6 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ofire-0.1.4.tar.gz
Algorithm Hash digest
SHA256 531f8f627a30600016356b2ff29b73afb21f40855fd5d85209fd7a1eea5e3040
MD5 4854e575e4a0068a2d3e393eea1e85f8
BLAKE2b-256 c346d73f1708146d63465f7bad3b75785648f179f71519627fb25b894524400d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.4-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0739c1fe459b4eae2f2ae335e77117784262b1750b64efc9471345642e992da0
MD5 ce690186d40e140cd43f828608e05c59
BLAKE2b-256 6562dd9feaae0312378d98c243506cc1ea3909908702a2baad24f3edd77808ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.4-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 87c3056dea19d15cd1b9397c9a649e38da53d5b308bad0a37794c37f54a71c58
MD5 ddcc2610a1aa40e69612b5d8f8fd2892
BLAKE2b-256 873d7de5aba99e69755ff74ee9bdd36795e03f64eaa4669e1f34474969304fd0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.4-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c80819689be83fbf9b406c8db772c59d4c7fa8dca15530a87e9ec5ba2434d41b
MD5 b619ec733599f75f8c0835cacc0baabd
BLAKE2b-256 7ad2352db92d2636ae9252b1bcb2da92bd384ed65fbdbcc62e27d54f76c10035

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.4-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3675fd38e26f104f23616027f2028c1284496e35ac2a7214f79304da6d34655d
MD5 c1259a3b0fa8d9735420a08a06845de2
BLAKE2b-256 24d03f41710e338d5f761f28808670e7240c08563a5d1fbc9374a73c6f6e2ccb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ofire-0.1.4-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 fa6cf4ce0bdde7b230de6fb5e50e55a95a4550ff8262755ae50d60d6226f9d65
MD5 ebebb3a0371461acd3ba37d153d98055
BLAKE2b-256 41c9e2af98d66fe81583cf36aaa8b228b542b039da4147dd71028db71be8a200

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.4-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 7a89722de3f6c259fda8396e4f42151566a069b4049b74d1d95d6d91cbd86dc8
MD5 965274d9a88513347050246bc120a7d7
BLAKE2b-256 5c0214f2e378a745f063845c40ad02c59ac1f66a2b040ee88e147f376b12ef15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 628589499f17f6ffb68d4ecc1be6a6feec5c2e0310a50301999da18f490893b1
MD5 05554a90baf980754087319c1b8e1f3a
BLAKE2b-256 c1a191fd348366e50944061d548c923f0766b1a4cb61e116b7e4319fb437fe02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.4-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 35e94fd2743f4db4b96d71b73d35c9f375cc2054c547a116bf8a6d632df712ff
MD5 f19946b1deccb3c3ec234b13e759360c
BLAKE2b-256 aad6921a512e0cfcbbcd61edc9ef9d18605eaefaad92ebcce26bfd19fd17ef0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.4-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8763dda86a1fc3c5d7905eba2fc2e988ca63a7ae4d6c2cc76e6e0b2cf0251f27
MD5 8841885d7688a8ce5703b0ba6e001196
BLAKE2b-256 28f0b4a6891890fe828e09168217f3a3e84f984a9eb7b4fe88882f50365ec467

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