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.15.tar.gz (165.4 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.15-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (331.7 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.15-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (332.5 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.15-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (332.5 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.15-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (335.3 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.15-cp38-abi3-win_amd64.whl (184.2 kB view details)

Uploaded CPython 3.8+Windows x86-64

ofire-0.1.15-cp38-abi3-manylinux_2_34_x86_64.whl (337.0 kB view details)

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

ofire-0.1.15-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (335.5 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

ofire-0.1.15-cp38-abi3-macosx_11_0_arm64.whl (296.5 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

ofire-0.1.15-cp38-abi3-macosx_10_12_x86_64.whl (294.8 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ofire-0.1.15.tar.gz
Algorithm Hash digest
SHA256 8bb0203194d6cb870879650ece8cec7a4e156ef13eea05912f866f5b9c60aaa3
MD5 67df90f36e971673cc0b34c6d24bc8db
BLAKE2b-256 b20eb62104a1a7315531841570397f998dfb7636f6f9a53137207ae5aca83f88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.15-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 172053855e8980f913d726d81b735679f624279b377dc7429b4fe1409b6f15a4
MD5 0aa7878901a0ae18561caa07db16321b
BLAKE2b-256 87fec9950d4a37b53244a78f581f83f7c8abe7c31124cd81d6377573cbef545e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.15-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c954a14db230ff6a511941c165844839400af0e7e518e3fa6e1eb54c2be68c8a
MD5 d0ec2466ac86d3216bb794dd249542eb
BLAKE2b-256 4201fdbc53b9594e2b6f76a69795aec52e14a72249f6cd4c4875e29dceac2947

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.15-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fd1d0ab5cf08b208cb7b2d5c2cb6fa237de06c528da49fc581a6adbbb4277407
MD5 f106160044c63ffa0fb985641a3452fb
BLAKE2b-256 7bab561c7a109a0e3b0159cb051506ef803ce51fc26a83b07fcbb679dbda1b3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.15-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 83f551867252457f5084aae55a030d4542eee098878003324c8a235b9bd96bcd
MD5 923e7bd7033d9bb923f3f8fc124306b6
BLAKE2b-256 4eacb2fb7640691409ba75538fb55125a46310e1bfd1597f935822f596837401

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ofire-0.1.15-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 184.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.15-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d59290da01294a07de89276fa6a74b1ca16a282857daed953e36c5c35581ef7e
MD5 9092ecf94d5a4dddb913863a4852f46b
BLAKE2b-256 6c511a4b2a50cd5d057a3813721115fa3f2bb0c11f905be51f59125b9300c23e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.15-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 30a9f2962827c4ab15df14a6325b638c52dd4273eddd5e454384c001bdfab807
MD5 61b949738c7e57cd89f2bf4fbf063d43
BLAKE2b-256 457e4838186d1ce5382022fea3ef14e003c5a80c7246e555c585a10625066017

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.15-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3765c7e1cecb74a5b41fb84626ab3ea588ff01c923a41fed80b291a7dd9f9af1
MD5 dba93973b4ebc3d26be92e85c5ad860f
BLAKE2b-256 8795b5ae1693d9ba091e54cf6eed47f151ebc6e7adc59128693e3d4bfec5b2d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.15-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94bdf785de5d17fd071de9ff6a900f819bacfb2e34c6894198a60419daf8ca15
MD5 9c002684dee4cdb146194ecb34910533
BLAKE2b-256 51ef86235999a0578a83b0b8a6cc79a2c775c90411b30e12e03c979326439c7c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.15-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2a17dc3f3c005cc4f489d6f7991f33644d7951e2c871a7b0f2066dd85f0ec59f
MD5 f90b08501f742f1225beca3ba438356c
BLAKE2b-256 b2478475c862208e228b8349911465986def45318af3ee54af9752aaab17d076

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