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.10.tar.gz (159.2 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.10-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (322.8 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.10-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (324.0 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.10-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (323.8 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.10-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (327.3 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.10-cp38-abi3-win_amd64.whl (180.0 kB view details)

Uploaded CPython 3.8+Windows x86-64

ofire-0.1.10-cp38-abi3-manylinux_2_34_x86_64.whl (332.6 kB view details)

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

ofire-0.1.10-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (328.1 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

ofire-0.1.10-cp38-abi3-macosx_11_0_arm64.whl (292.4 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

ofire-0.1.10-cp38-abi3-macosx_10_12_x86_64.whl (290.3 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ofire-0.1.10.tar.gz
Algorithm Hash digest
SHA256 a1fafb760273296706e801d013f63956a6a371a372d1407405f2e2ac9fe81d26
MD5 acd6d2acfc728dbf6cba178fbf090adf
BLAKE2b-256 c688be73a2748227345b444c2e1433d199cb6fabefb3369d47498ab2354896eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.10-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7030631a148b45cd83da047066c7294d9eb77a18fa0bfc24c9e10f8ce0bd1293
MD5 9f1b155f2797b25c3abedf941e3f6b53
BLAKE2b-256 c2aecdd66c4e483dcf6c2081ebda99fb412b69b0ddec3bab63f1f1b903ec580c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.10-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 642e4ac074d5720a2c0b01bffed81bf0c35d53b2e9e7c393aeddc9dea1ca2cd4
MD5 b04879d5399a2709c09cd3d0a8c6fdf2
BLAKE2b-256 09e31e8442248a436d9fb09e626e3c4622a56612333d1cc1d0a009e67ddcadf1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.10-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a7edec4fd6252f5e71b6bb5e4a8960c601551627db986ba13d56cd75d5f07737
MD5 ae586d1c51444ce70bf364e1096191b9
BLAKE2b-256 682fc59c72ecbae191f4243c7d8ef16c4bd18fd29a7cd0803ab29a677daf2716

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.10-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f0937c1f4535f4089eb220c89328b0c7cc42671c7d2cba82f8462e8624263ed7
MD5 41475a3037c2f9d7462f60209d86692d
BLAKE2b-256 206dd58de848bbe861689b6113df19e340ecbffa0c4282688ca8e9f425630ab2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ofire-0.1.10-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 180.0 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.10-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 47f58db7e2f5abcebebadc36f7464c6c722ce36c1026f524282fe05bd329acff
MD5 6ae868f0faba8353067ba46d18d97fde
BLAKE2b-256 962491dc121dce5425ed5d6652267ed5caf87177ae67150474c88180701f615a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.10-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b5ceaf26a67808f98b88cb146eb51b0f258551f7cc0c70550e68e108c9e6a426
MD5 eecb3e4a96fa2274f790a2bb02edc2f1
BLAKE2b-256 da892061f0a98ade2935189ab4579474a043f68d918751769fc2e2fa6604f49e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.10-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5690815e361b6a25181348af304f442454eef7171b6dc08a0b1dd98b7685bd88
MD5 1ee1cb03762f8008891c592b563551a2
BLAKE2b-256 60e272310ba6e096eb71c42c62247061a11451ffccacb3246a03fc679a5a45ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.10-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 acf1737591453922df3672b0a75f23be58f24db63e1d3934569a62f513245e70
MD5 5cd6ea95ab3655da936921a22c474808
BLAKE2b-256 e5d4834db8061e7b66bc9e9c05437c77236ab71af2d5986ddaf18380eff5928b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.10-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e5c66ea73ea7cc6b33ff41d566f2b57bc39ff25bc9ba61ce60502f97907f7664
MD5 d6a7b16ca5a6bab4d12b2a133ae36e89
BLAKE2b-256 535fc34e07587139a2576448a23edcbd1e8da69c5f8711f65ae91722de43d245

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