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.5.tar.gz (146.8 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.5-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (315.3 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.5-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (315.4 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.5-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (315.5 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.5-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (317.9 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.5-cp38-abi3-win_amd64.whl (172.6 kB view details)

Uploaded CPython 3.8+Windows x86-64

ofire-0.1.5-cp38-abi3-manylinux_2_34_x86_64.whl (321.5 kB view details)

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

ofire-0.1.5-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (320.5 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

ofire-0.1.5-cp38-abi3-macosx_11_0_arm64.whl (282.5 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

ofire-0.1.5-cp38-abi3-macosx_10_12_x86_64.whl (282.0 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ofire-0.1.5.tar.gz
Algorithm Hash digest
SHA256 4e581ebfb7a7ea547a4297d93cfeef3a5e73c138aedd6d45596fed0f34054328
MD5 40f945523ac47b282c3854fdc4459ba5
BLAKE2b-256 9e13c559bc4fdd8c3d1b7ed6610daded97ddef2c1cc1a4b6adfcaced5839bf60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.5-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fad3efce08098d4447984bfcad88206cbc70420ede51e9b0956dfbab6715c435
MD5 c08c8f4e0a7929ff7c72117d40320196
BLAKE2b-256 9cac7ea037c10997d9d12d969436be374ec9f7e3cd0e05c9278ae28768a88e52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.5-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2d03f6eb4dea23745ce7ef2ea0c53784f8cf7fa2d210ca5c750600284c07ba0c
MD5 69816bda0b8f3846cc0e7e25a4d82645
BLAKE2b-256 99d34de37aa824d54cb7ad014ab2dcc4565ee3ce0b72e75bfc0427f771fab2c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.5-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2f6d460514bdbdb38090cafd00d2fcf84d03a27cd1aade976dc48b116ff74ec7
MD5 965c1028a1e5bb9a049a7997b140f442
BLAKE2b-256 5753388169f33c5ffc6a7112497d98926558fa34569c98ca013b993b373715b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.5-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 29073002ccd6d262355fe198f71dfce1137a81a8ec2993c294af53d9634b3446
MD5 c6bd24dbe9bb187826a9690a85bed276
BLAKE2b-256 84416839e43e0a0b4553815fc20669b3502424602a48020479470feacc9e72f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ofire-0.1.5-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 172.6 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.5-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f7eab8bdc5d02eba6e452a2f6b0c2496dadd4036b23dbe99c3bebd3fbc97c63b
MD5 578a0b1f9aaf44fb5861a844612380fd
BLAKE2b-256 45005c4aa0d5f2bc82dd737fa2aeb8a884d8e9368b7fd4fd8791f1631fd996ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.5-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 75de4dbc6ec6c5c0f346e11bec0b2fe6edf784b7d89c8c667d15acb35b4c7afc
MD5 7dadf58352ed494e755fb608d2acf3cb
BLAKE2b-256 6f447ac1fdaf97c45f3b6d474087e8fc9ac37aa29cc18ec7ebc047e0f931693c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.5-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9f73a403f93551f06f16c4a9466e4efb6fac62a36130382e1a6150a3939b8950
MD5 df791cc5ee5c3d7f830e894625cc63ab
BLAKE2b-256 621477ef84fdc5d59df480b2d9c453b31b3ea7701121a74b57fc108b8f8a45b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.5-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fd4bd55e28a65af8ac7dc24e1984c861366d24bc4f05a8f7c60d333e27181402
MD5 a28e784f9764e9ec20b04de927dc50a3
BLAKE2b-256 3f392c451d5916ce89a8f4965e0aea1981bb18705ae7b6d191aa3ad71e0932a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.5-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 14833e66cdb01445b412883657878adf1af8e4dad5b4ae96f22689676b47bfcb
MD5 6a01a7db66e71e38b7c606b3415fe600
BLAKE2b-256 34ad44654b98dd17b17d80b4d991b398784fd49dcfa2581dea0907b5b1f08898

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