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

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.9-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (320.8 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.9-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (320.9 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.9-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (323.3 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

ofire-0.1.9-cp38-abi3-win_amd64.whl (176.7 kB view details)

Uploaded CPython 3.8+Windows x86-64

ofire-0.1.9-cp38-abi3-manylinux_2_34_x86_64.whl (326.7 kB view details)

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

ofire-0.1.9-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (325.7 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

ofire-0.1.9-cp38-abi3-macosx_11_0_arm64.whl (287.5 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

ofire-0.1.9-cp38-abi3-macosx_10_12_x86_64.whl (285.7 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ofire-0.1.9.tar.gz
Algorithm Hash digest
SHA256 1564ef527f683124339f900e2a1d60d77b04fc86ce1dc63c86dae60f4b511997
MD5 6ab09e1f72b530aaec4fdb41b6d992c8
BLAKE2b-256 f2d88fb293e7f6bfa6af820f8d172d58cc6c6208162c48427551a3d7e025e6b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.9-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a02757701978d05ac42352a776bba3ceca650b8f913e18623545eaae3b23aa7e
MD5 d8e10d6339b893f4eb6c86af79ef7190
BLAKE2b-256 5750786161ba13220217e24e1c41542212c36b6658e819cf320561438df92f53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.9-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c0e925384733ebc218d73d48bf433bc046b3db287d9a9f15ce15f3e5057eced6
MD5 a2b14ca015816cc14392f8aad05a156e
BLAKE2b-256 9c473735dcbac954e9f353e5b1dee2c8965bd80478f76b57f8dcaff9483667d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.9-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a2a2e1380e3206b0250346b16ff3889f018d5d514cc914f4b9048190561b51c7
MD5 3aad223deacd263e121739fec3dd34f2
BLAKE2b-256 678184126440f9db5eee479007b1c4c3e9abea134ab2875af30613c8b79625ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.9-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a2455e987e5dd9272a7d2e820b64138f210d55719e3d62737ed6c673c697ba07
MD5 37f5ad69839833df0ce20512de09f775
BLAKE2b-256 64f60b7216d762f285a1d54cbaf6588a747e919cf0fea678e7cf435cf46e5eca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ofire-0.1.9-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 176.7 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.9-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0ece2dbb01c323fc44308d14bd1271e2c8a1b68d00f4452aca81ff5c211b6b8a
MD5 0d2aee0c18f0576455c590c178735112
BLAKE2b-256 26384ce5bf422dd277d5ba2a231373d1e26ff301f8d86004f0d6fe6ddfb5cb0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.9-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5e7706f905770b0fac23bbe32428dff4b9ecb2ae42866093054764bb6a534bc4
MD5 9b56128e5fe719c99e7e963a3e9ed530
BLAKE2b-256 367073105b455505d8af0f6f4a01f00ced56da912fe87ca42fdbd2395e2cb2bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.9-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9e382564200d93993c2da96091fb61a4c2274cdb0713827519cd40ada49dbd60
MD5 b2d1dcc823d1b2b090e97859e6d094a2
BLAKE2b-256 85c8c7234a45609971ad0b8c7ad73755ccf83f26617e6dd5f5f103cb87bc504f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.9-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2bffa53cb31a7302ea62c39e6c1e05f78a4b4eb15ba63c177190943d20d9edd
MD5 79ca6ace08875deed3ce7fed49c1a25b
BLAKE2b-256 75459c887f7541d8f64e0f98544ac552ce6dfa1fb75a98cee5fdf5295fac9814

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ofire-0.1.9-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5d7244354d1de7bb07f27c18a3af887089dbddcc39fe6825acfbb42ef0d52412
MD5 5f327757f4e90d676547596fd3737283
BLAKE2b-256 68b6302fdb4d31ef17f9e1d989486118364d3d82ad565eb4447ca46876a39295

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