Skip to main content

BATEM

BATEM is a dynamic building energy simulator and teaching toolkit. It models wall inertia, air renewal, body metabolism, solar gains through glazing and opaque façades, HVAC, comfort, and PV.

The interactive entry point is baterm (the BATEM terminal). You do not need VS Code, MyBinder, or a special IDE setup to follow the course or run simulations.

Install and start

pip install batem
baterm
# or: python -m batem.baterm

Requires Python ≥ 3.12. Inside the shell, use help, help baterm, and manual for the full user guide.

Project files (.context, .building, .pv, …) resolve under ./data by default. Tab completion lists that folder.

Lectures

Lecture PDFs ship with the package (batem/lectures/slidesXX_*.pdf). From baterm:

lectures              # list available slides
lectures 1            # open slides01_*.pdf in your system PDF viewer
lectures 15           # open slides15_*.pdf

Workshops (Jupyter notebooks)

Workshops are workshopXX_*.ipynb notebooks. baterm starts JupyterLab for you:

workshops list        # list notebooks
workshops 1           # open workshop01_sun.ipynb
workshops 15          # open workshop15_design.ipynb
workshops stop        # stop the JupyterLab server started by baterm

JupyterLab runs in the background; baterm stays usable. The login URL and token are printed in the terminal. Notebooks can import batem without extra path setup.

Suggested order for each topic:

  1. Open the lecture: lectures N
  2. Open the workshop: workshops N
  3. Answer questions in a separate document (Word, PDF, text, …) with clear references to section/question numbers
  4. Upload that document to the course platform when required

Running a building simulation

Everything runs inside baterm (GUIs and plots open in separate windows; closing them does not exit the shell).

context load mysite          # or: context new
building load myhouse        # or: building new
building 3d                  # optional geometry check
building simulate            # annual hourly run (--quick = first 7 days)
building results             # HVAC + comfort
building plot                # pick time series
building vars                # list building variables
export annual_run            # Excel hand-off → annual_run.xlsx

Useful next steps:

building edit                # Tk form (Lock/Tune for optimize)
building optimize            # comfort-first tune of Tune fields
building variation --quick   # parametric sweeps
pv load roof                 # photovoltaic plant
pv simulate
building plot                # also offers PV:power_W after pv simulate
enercost                     # electricity bill (needs building + pv simulate)

Help in the shell: help building, help pv, help naming, manual.

Longer reference: batem/doc/Baterm_User_Manual.md · quick sheet: batem/doc/QUICK_REFERENCE.md.

Working with workshop notebooks

Notebooks opened by workshops use JupyterLab in the browser.

  • Text cells — edit, then Shift+Enter to render
  • Code cells — Run / Shift+Enter to execute
  • Restart & run all — re-run the whole notebook when needed

Interactive Plotly figures:

  • Double-click a legend item to isolate a series
  • Drag to zoom; use Autoscale to reset
  • Hover for point values

Evaluation

You are evaluated on answers to the questions and exercises in the workshops.

Put answers in a separate document and reference question numbers clearly, for example:

Section I., Question 1: (your answer)

Then upload that document to the course platform.

Metadata

Release files for batem 0.7.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for batem 0.7.10
File Size Uploaded Provenance
batem-0.7.10.tar.gz 90.9 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for batem 0.7.10
File Interpreter ABI Platform
batem-0.7.10-py3-none-any.whl Python 3 none any Details

Total release size: 182.1 MB

Release files / batem-0.7.10.tar.gz

Download URL batem-0.7.10.tar.gz
Size 90.9 MB
Tags Source
SHA-256 checksum
How to use checksums
60051ed014e8f0586a8de4521b54a101b589073945ea04d54169f7a120a58998
BLAKE2b-256 checksum
How to use checksums
9f8a524a46cf02de343b7ff0bdc80630af4b8bbfd7c4620cccb227817b53e558
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Release files / batem-0.7.10-py3-none-any.whl

Download URL batem-0.7.10-py3-none-any.whl
Size 91.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
79eda1e94da298d07c96a1c5564d0953fab74c7b2d79aee3a9cbdca2a4cd27b2
BLAKE2b-256 checksum
How to use checksums
ef6dba9c5c4c879648542815eab76a8f1f48a0d7bdd96cde2d8de5d310a1f91c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Security for batem 0.7.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.7.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page