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

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.16-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (336.4 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.16-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (336.4 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.16-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (339.9 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.16-cp38-abi3-win_amd64.whl (187.4 kB view details)

Uploaded CPython 3.8+Windows x86-64

ofire-0.1.16-cp38-abi3-manylinux_2_34_x86_64.whl (340.1 kB view details)

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

ofire-0.1.16-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (340.8 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

ofire-0.1.16-cp38-abi3-macosx_11_0_arm64.whl (299.9 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

ofire-0.1.16-cp38-abi3-macosx_10_12_x86_64.whl (298.0 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ofire-0.1.16.tar.gz
Algorithm Hash digest
SHA256 47e11bc2083c8f86ad912470e417068f7e787b8a50c82ef76e0b7a5437cfcdd1
MD5 f367da33cb2795c0a83e232b33ce0afe
BLAKE2b-256 85a46b82ff4ee7715ead46fd2b723f067851c28e4172670f0d1a90bcc6a0dfb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.16-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 690ac464faa54130e1c0ef4cb86f72eec7ef58628bd8fe53ce889655c88ffde7
MD5 607066d4cd07ebef4beb41a3be10d2ab
BLAKE2b-256 5e4f553e6d6ca2fdf84d34f305081c63b1820f8626d1c8d0f61e715b8faedc3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.16-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c882187c6b30443f0e190b588d0365156ac84a3d4487f66f1e096d98ce0f899e
MD5 1742b16fea88d1b118c93d69fb4f4aff
BLAKE2b-256 f8fe837d3d4f932b7e6e82ef9d64902d8062202eed462c066990da660f90e620

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.16-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f54d20c479127d1fce89db7bc7aeccea91e5212d0a8c07842cb957f9b54f73a8
MD5 146b71212a1b17ad886960cfae679fd8
BLAKE2b-256 bd467a509bee638efa4f4823862793488b0eba0c38c7ece4d678f29106260ef6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.16-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 60f623fd595cc44eba4e11fbfb6c4ed3feaf1b8a76c84b2171efbf2ba7878f94
MD5 91db707238e97368a06bc5f8a373e7cd
BLAKE2b-256 1ad90611e0141f3be9e7b5379f1c7107e53171df8d286b963b7e8f29e48d47a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ofire-0.1.16-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 187.4 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.11.5

File hashes

Hashes for ofire-0.1.16-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 002f1d05a2cd89e3fbf8b218b1c282ba4941688bd8d455d1da05bb96b7f45098
MD5 1407413d39b19e7d633d6c553136b32a
BLAKE2b-256 c05a0d5a146275b632f2741b7ab21106cc577ae1ccf5ba858b1d6a10088ece13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.16-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 589dc04ec9098bcb0d01673e4dcd91235a4d7fdea8570abb67d0d163fcf2aaac
MD5 aa1d18b669b7d5bcfb4e27b915f30cd7
BLAKE2b-256 b2a5c19b2f2234a49d8e74cbd8143d17781c81bdb8a3cc0234e16f457a16e3b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.16-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 eee189c1092957d5e6f8708820b05464e00dd8efee29f54df7897d8e39a295ee
MD5 9599a95c4329223db108887377d548b3
BLAKE2b-256 1edbb009f37204bdcdeb65e6ff3362ed8fa884865714cb285b942f7411cd81ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.16-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2dbd7ad8ade62a6ded2615f166b450f5de48b44ffa8b662a423b5f55b21c0980
MD5 626f524189979392f3e288a01a4ef9e1
BLAKE2b-256 f8c01008845f50902c70545ef70de16bb73a74521db0b08d483933f042c015cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.16-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f64acb6ba75bab8e72990042ccdd23436372ce483ae982e191e73d5f8b1f9d3c
MD5 ded1943a6a78a02482807b0b8f5b49fd
BLAKE2b-256 455f5d45e4efee03607c0de9e90f20a13d8e6ea7e27936731ca4f4120b084929

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