Metadata-Version: 2.4
Name: uk-building-math
Version: 1.0.0
Summary: Mathematical constants and material calculation models for UK construction, BS 8500, and RICS reinstatement benchmarks.
Author-email: BuildingCosts UK Engineering Team <contact@buildingcosts.co.uk>
License: MIT
Project-URL: Homepage, https://buildingcosts.co.uk
Project-URL: Documentation, https://buildingcosts.co.uk/about-us/
Project-URL: Repository, https://github.com/buildingcostsuk/uk-building-math
Project-URL: Calculator Hub, https://buildingcosts.co.uk/house-rebuild-cost-calculator/
Keywords: construction-calculators,uk-building-regulations,concrete-calculator,brick-calculator,rebuild-cost,rics-benchmarks,buildingcosts
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering :: Mathematics
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# UK Building Mathematics (`uk-building-math`)

> Lightweight mathematical constants and calculation models calibrated for United Kingdom construction benchmarks, British Standards (**BS 8500**, **BS EN 771-1**), and standard metric building practices.

Maintained by the engineering team at [BuildingCosts.co.uk](https://buildingcosts.co.uk) — the open-access UK construction cost estimation platform.

---

## 📌 Features

- **British Standards Compliant:**
  - Standard UK metric brick dimensions ($215 \times 102.5 \times 65\text{ mm}$ with $10\text{ mm}$ mortar joints $\to 60\text{ bricks}/m^2$).
  - Concrete mass constant of $2,400\text{ kg}/m^3$ for structural C20/Gen 1 mixes under BS 8500.
  - Sub-base MOT Type 1 aggregate compaction density calibrated at $2.2\text{ tonnes}/m^3$.
- **Zero Dependencies:** Pure, native Python 3 compatible with any environment.
- **RICS NRM Benchmarking:** Includes 2026 indicative macro rebuild rates for insurance reinstatement models.

---

## 🛠️ Installation

```bash
pip install uk-building-math
```

---

## 🚀 Quick Usage

### 1. Concrete Slab & Bag Estimator
Calculates net volume ($m^3$), total mass, and required $25\text{ kg}$ ballast and cement bags for a standard $1:5$ on-site mix.

```python
from uk_building_math import calculate_concrete_volume

# Calculate for a 4m x 3m patio base at 100mm (0.1m) depth with 10% waste
result = calculate_concrete_volume(length_m=4.0, width_m=3.0, depth_m=0.1, waste_ratio=0.10)
print(result)
# {
#   'volume_m3': 1.32,
#   'total_weight_kg': 3168,
#   'ballast_bags_25kg': 111,
#   'cement_bags_25kg': 23
# }
```

### 2. Brickwork & Cavity Wall Estimator
Calculates standard UK facing bricks, 100mm blocks, and dry mortar tonnage.

```python
from uk_building_math import calculate_brickwork

# 6m long by 2.8m high cavity wall with 5% waste
wall = calculate_brickwork(length_m=6.0, height_m=2.8, cavity_wall=True, waste_ratio=0.05)
print(wall)
# {
#   'wall_area_m2': 16.8,
#   'standard_bricks': 1059,
#   'mortar_tonnes': 0.88,
#   'blocks_100mm': 177
# }
```

---

## 🔗 Project Links

- Official Web Platform & Calculators: [https://buildingcosts.co.uk](https://buildingcosts.co.uk)
- GitHub Repository: [https://github.com/buildingcostsuk/uk-building-math](https://github.com/buildingcostsuk/uk-building-math)
- Documentation & Standards: [https://buildingcosts.co.uk/about-us/](https://buildingcosts.co.uk/about-us/)
