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

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.7-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (316.6 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.7-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (316.7 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.7-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (319.0 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.7-cp38-abi3-win_amd64.whl (174.3 kB view details)

Uploaded CPython 3.8+Windows x86-64

ofire-0.1.7-cp38-abi3-manylinux_2_34_x86_64.whl (322.9 kB view details)

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

ofire-0.1.7-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (321.8 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

ofire-0.1.7-cp38-abi3-macosx_11_0_arm64.whl (283.6 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

ofire-0.1.7-cp38-abi3-macosx_10_12_x86_64.whl (282.6 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ofire-0.1.7.tar.gz
Algorithm Hash digest
SHA256 12e85c58a5783b68627257fa86511817728aea2fe3a1a3d473ea38aaed313c45
MD5 34d503cd79e6c49669e5448ccdab0f57
BLAKE2b-256 777af48de74d6e185663f063e3c0af06c61091bef582014a2f7d1c2c2d1c2ecf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.7-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 98c01b58f96ee1a1e2688ffb012076b4ca99991d144724d9a44e7ce0a6d51830
MD5 d74db653123bc7c07c7589ef46675a89
BLAKE2b-256 846e81157e543a829c4fbefd4e5a9f201f20bcb81d74c483e295fb163fbd4ae8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.7-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8a4743ef0ca299f09fb7832d1ba3b950021e92f82176e4d0fa5ede1c9caf640f
MD5 d7c08d87ced25838d47a8f8c3824fb5c
BLAKE2b-256 e207e8f0e3124457ea15f83ea7b91f28587c0f039669362e8c932e85ef134b6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.7-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c8d65b124b92f110799d0b4f987aaa8e388be95aecfb0d29bd75c6a491d16366
MD5 57819a5826571200fe95fe8ec80c69a8
BLAKE2b-256 2297da9eeffe05cd93f103fa21a8d7929ce03cbac187fcacace4eb33e064c920

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.7-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0ce78715bbb4cb9585f00ee345ce321bc05893f74fb57344b096fcba226cf4bb
MD5 b330018ee2ff7ac54e7591c77540499d
BLAKE2b-256 20d375e911a59072a1fbb5d2dff1f6d6a3704258cbd59ee60fd1313e577882d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ofire-0.1.7-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 174.3 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.7-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 eb72e306eb8f048b565f8103a69be1644537d4832e1bb463b331b7c2244dd60b
MD5 e95c1807cfbc3032d4f477efacee20d6
BLAKE2b-256 5bee1d8f2192b95054ea5f0f7616970cdaab1f63c357e4190a5615753ed9f8cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.7-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4d01b77cc325ded24227c2a457e0dbb48c17f0f948f15af5ad7a7792f1d24286
MD5 3e9af09d4f7cf36623dd8233c271a0cd
BLAKE2b-256 537b63a4680fe9ea674e1296d9845bee6598527385ae59aa199140bdc11c517d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.7-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3134cad30fd701062f6e7114c7fa9c0473f581b115384aac68c81f2a1ef3e740
MD5 e072798f0bcae2f0a4588392b0c3d4bc
BLAKE2b-256 b58fa018fb7c719ace00487657bf313062852fdfb0176ae15990d65ecc0596e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.7-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ad85f66eb7854cd8e0e3b03e99a36dfc87c1de258d5e41991c73a16cc1031d7
MD5 17242f7305898d8d87618d6ea41bbe18
BLAKE2b-256 d51cf5de28100331af2c79346d1e8fd3869316068a45fdf495d9db08a8f14f90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.7-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6d825b46ce34e4c137cd35dd51b2c9da68cd970d334d485ee5f008f709537d3d
MD5 68a63d64a29c3306ed2f00cdb19e2c8f
BLAKE2b-256 756836823db9b4875ff92ef0681de3ce8329c4a0afdbbe4e504f9585cee8d64a

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