Skip to main content

A package for summarizing BRICK models

Project description

BRICK Model Summarizer

BRICK Model Summarizer is a Python tool designed to validate and benchmark AI-generated BRICK models against reference models. It transforms complex BRICK schema TTL files into concise, human-readable summaries of HVAC systems, zones, meters, and central plants. By leveraging reference BRICK models, this tool enables users to validate AI-created models for consistency, accuracy, and adherence to expected standards.

Purpose

The primary purpose of this repository is to provide a framework for summarizing BRICK models into HVAC-centric insights. This is especially useful for:

  • Benchmarking AI-generated BRICK models against reference models.
  • Validating BRICK schemas for completeness and alignment with building system expectations.
  • Empowering building engineers, analysts, and AI developers with clear summaries of mechanical systems and operational data.

Key Features

  • HVAC-Focused Summarization: Extracts key details about AHUs, VAVs, meters, and central plant equipment.
  • Model Validation: Provides a framework for benchmarking AI-created BRICK models.
  • Scalable Processing: Processes individual or multiple BRICK schema TTL files.
  • Ready-to-Use Outputs: Generates text summaries suitable for validation, reporting, or further analysis.

Installation

Local Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/brick-model-summarizer.git
    cd brick-model-summarizer
    
  2. Set up a virtual environment (optional but recommended):

    python -m venv env
    source env/bin/activate  # On Windows: .\env\Scripts\activate
    
  3. Install the package locally:

    pip install .
    

Usage

The package includes functions for summarizing BRICK models and generating detailed outputs. Below is a simple example of how to use the tool in Python:

Example: Processing a BRICK Model

from brick_model_summarizer.main import process_brick_file

# Path to the BRICK schema TTL file
brick_model_file = "sample_brick_models/bldg6.ttl"

# Generate a summary
building_data = process_brick_file(brick_model_file)

# Optionally, save the output as a text file
output_file = "bldg6_summary.txt"
with open(output_file, 'w') as file:
    for key, value in building_data.items():
        file.write(f"{key}:\n")
        if isinstance(value, dict):
            for sub_key, sub_value in value.items():
                file.write(f"  - {sub_key}: {sub_value}\n")
        else:
            file.write(f"  {value}\n")

Example Output

AHU Information:
  - Total AHUs: 16
  - Constant Volume AHUs: 11
  - Variable Air Volume AHUs: 0
  - AHUs with Cooling Coil: 10
  - AHUs with Heating Coil: 7
  ...

Zone Information:
  - Total VAV Boxes: 132
  - Cooling Only VAV Boxes: 132
  ...

Validating AI-Generated Models

Use the outputs to compare AI-created models against reference BRICK models, checking for consistency in:

  • Equipment classification (e.g., AHUs, VAVs).
  • Sensor and control points.
  • Central plant configurations.

Sample Data

Reference BRICK models from BRICK resources are included in the sample_brick_models directory. These files can be used for testing and validation.

Contributing

We welcome contributions to improve the repository. Please submit issues or pull requests to discuss new features, bug fixes, or enhancements.

Roadmap

Planned Enhancements

  • ECM and KPI Suggestions: Develop functionality to recommend energy conservation measures (ECMs) based on model summaries.
  • Advanced Validation: Add checks for missing or inconsistent relationships in AI-generated models.
  • PyPI Distribution: Prepare the package for publication on PyPI.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

brick_model_summarizer-0.1.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brick_model_summarizer-0.1.0-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file brick_model_summarizer-0.1.0.tar.gz.

File metadata

  • Download URL: brick_model_summarizer-0.1.0.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for brick_model_summarizer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e4d90335ae067e84a7d7088a4861ae88fcd88567e04aad3ed60f28ce22ff3d87
MD5 9500d231bd1b079fc66ae7f834428fe1
BLAKE2b-256 467bd2e95b6057d2e22be1d45d3b96e9403e581cc1da40dae8b76fd4efb6ebea

See more details on using hashes here.

File details

Details for the file brick_model_summarizer-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for brick_model_summarizer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7f038f43f2b36d5c16652acde165aa1272412cb7574c6a086f3468c3ffa0c54
MD5 05bd374d3831cdd9b13d2c06c62babd7
BLAKE2b-256 93c10eb239321f3f480049274e13b398f2180defa3b3f12ccccf92897e37a091

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