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.13.tar.gz (161.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.13-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (328.4 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.13-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (329.3 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.13-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (329.3 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.13-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (332.3 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.13-cp38-abi3-win_amd64.whl (181.5 kB view details)

Uploaded CPython 3.8+Windows x86-64

ofire-0.1.13-cp38-abi3-manylinux_2_34_x86_64.whl (334.1 kB view details)

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

ofire-0.1.13-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (332.8 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

ofire-0.1.13-cp38-abi3-macosx_11_0_arm64.whl (293.7 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

ofire-0.1.13-cp38-abi3-macosx_10_12_x86_64.whl (292.3 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ofire-0.1.13.tar.gz
Algorithm Hash digest
SHA256 da2ac9b70bec31ddccd3ca61875a82fac602136fba1b6fd9a3d8da786b7c4c56
MD5 42069d9fa0a984703f88ed481051fd03
BLAKE2b-256 e130ee13738148373f0d8208ed990f2e05da1a26a629398f15e2126668c79803

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.13-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3b46b4f0ad892383821865a62f3d30f188d0afbb311d552bcca394a2f2556929
MD5 1fb9d6105c21ee9a81a3930b1b479c9f
BLAKE2b-256 b9a1e585244d71c31d8130dbfc0f30c2d95fb74c7ccc0bdcdbced368fec53e82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.13-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4e30f9e25eea1eadf52e989ed55071645b3f386f2fe7d32fab5cf5d73debdb9c
MD5 e133e2c614c1d3732cc07068e68a041e
BLAKE2b-256 f4eedadc56614bf7a128441045926188d7ba7d8d4f95d7bfccdd005b0b636f3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.13-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fb91e954da7033d19acdbc5d7aee8a90ccf8bf773a8642bd8e101708a6a984b5
MD5 90d84da09984542862a1db6b4aebdf69
BLAKE2b-256 3820e593f59984033437af89302afaef0095ce1fd94f41fd71a2fcd5207632c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.13-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ef5f9496b01dbed8221197a21d04433e155f85cf18abc485e31b6c8e48c9ec5d
MD5 8a07145a2f1cb08c94ca99aa23d78cef
BLAKE2b-256 4aa33a8062ecd870bb58c1c4b4368957d732cd00f7279f6e245b34b49feb8ca7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ofire-0.1.13-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 181.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.13-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5b8fb1f29bc09f87be6c205ad413c766e15bdaacd134b46aa309568b03386fa0
MD5 57c5098703cbe8aba58b7007b9439f5e
BLAKE2b-256 9d6f4d64a30f070806190b9e1a130c7133f7215d405a9264cc28d6892c9efbd0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.13-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b64b58ac8844058cf7322f9325ea3a79075827b611753094cb7662d196576feb
MD5 15725aee3c5f36d448ab9a7c897c3179
BLAKE2b-256 d49cef556177eb2829695be20e894ebfd999dd9974351e76f3d5b4ea1f67560b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.13-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fd3a99e1d9ad198f916baee823558534e5c298ca3c2ea66bbf13fce5622b6b24
MD5 385a3b28edb7b63ed6507bb8e6b7ea96
BLAKE2b-256 a9273633ab5ce5994e2bd6e85e9b79a093cd61c8dd4c6de16a9894d839c09e28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.13-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ebae440e638698e6bb7e4a7a3ec74c1e157979f0d9cceb21a348c637b546878f
MD5 a58403fac197af72bb552724eec96cac
BLAKE2b-256 6c703884227793714c6f4af46a5af5a37285ae3439e6c8a42c8089924d60c429

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.13-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 60e3996414a4f23be4be8840f6f133485f149d56a72e91afd43408813fb012ac
MD5 21cd99a2354e3f1f1e1b6b700d98b91b
BLAKE2b-256 552511ae68012cb5b77f8b210b8727373fdc5b2257d3656053bd0162d44e6541

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