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

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.12-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (327.1 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.12-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (327.0 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.12-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (330.1 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.12-cp38-abi3-win_amd64.whl (179.5 kB view details)

Uploaded CPython 3.8+Windows x86-64

ofire-0.1.12-cp38-abi3-manylinux_2_34_x86_64.whl (332.3 kB view details)

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

ofire-0.1.12-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (330.4 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

ofire-0.1.12-cp38-abi3-macosx_11_0_arm64.whl (291.8 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

ofire-0.1.12-cp38-abi3-macosx_10_12_x86_64.whl (290.5 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ofire-0.1.12.tar.gz
Algorithm Hash digest
SHA256 8cd8c58cb163c6f929b492759e900ddd09d97e4b5b52b2721a97b8d66ec66bf4
MD5 2853b3999af3a61d21b59cb3e8c72e69
BLAKE2b-256 649384049c3e6d235c2a9205c5ff17fd4c658b406a0adfb077d9c86db8d79fe8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.12-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 118255743c2239345656691d0aed27c265cf0c59612527132049171215ae503e
MD5 35cd720b68acf350f9b07c2cb0a2cf2e
BLAKE2b-256 39c015030749a98e2e2f495d8b9aaff23a68ddbcbc6ef1f2b1a7ed76a40947bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.12-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fcd25caf77849153ac793c37cf1c2aef36029c959873fe5e3b6162aec060a73c
MD5 8c41757b00fc152c3d0022fa3b8355af
BLAKE2b-256 3d36a027d7e4123267d1ae96c3499fe70c0af4e1c7b3b66f0c35f8d3e9e1976e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.12-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e8cd6373797a6492c5ddb2b18702073bbcd2eada0a70b6cc0cdbd9be385edca6
MD5 17dfb44115037100cb7b57731234cc49
BLAKE2b-256 9efe0ad12fd9b2a9d890cdbda074bf470ec1855be94833b6e48db2514f571453

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.12-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c9e4c056b04a0a2d608c46356788c33c76fa6f5f832f0708d0bd06de2db66461
MD5 835b1c98f0fa57ff489279f70c3d775b
BLAKE2b-256 d7aef2b060054aff1d15d406f74a4a79904e19ba921441129eca7015dfa3a1cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ofire-0.1.12-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 179.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.12-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ec01cc2bfcb4c3b31eba110c068397c27be3404c52094796d48fb75a9a4d7bf1
MD5 70ca4184175089fc550b98c6ff46147d
BLAKE2b-256 0054d8f8519814ce6829d8c85f939d955f1201749cc1e06ba415f1be6f35d46c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.12-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 e110180e1939847c483db4e4f2e9836d886b4e81a6bdd81ca9d2e6ca2638373c
MD5 e5c90f047dd2c7d58d4493bca9440625
BLAKE2b-256 f79a39793161d2665a3e4db2b357e5caa20abbf04d71094d1013117181291204

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.12-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7444678e0e462382bfe355e5473f07759089fc4fd7a0f6e07efafcd5d84d0541
MD5 1810fa7b84030bdcb251f78d1acddf96
BLAKE2b-256 49cc3c50d36af4374d84bb807c38e3950a32c719c96b178d8702c6ab36f3b1eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.12-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d40dcc3e08a6fdd180a3d275287d9ea9e9af79efb9675aea688185aca25fbb8
MD5 fa1a61c85645a3fd27134a3a46c8dccd
BLAKE2b-256 5967b32c4cfa241299f602577dfa9484a5d228abe32dd210378d4d5e1b86ea1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.12-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3b72a191624c3143e349bf067ec0e726cabd6dc83033d94c9b2c4a27ab37da2e
MD5 692381180583f8cfe6910d26978cb6be
BLAKE2b-256 37a33a63da660a3acb491e2e68b434cdf111efabf958deabd7f6321916a4e13c

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