Skip to main content

LibraryFEMTherm

C++20 static library for reading, writing, and manipulating THERM (.thmz) files. Provides data structures and serialization for thermal models, materials, boundary conditions, gases, glazing systems, and CMA data. Optional Python bindings via pybind11.

Requirements

  • CMake 3.8+
  • C++20 compiler (MSVC 2022, GCC 11+, Clang 14+)
  • Ninja or Visual Studio generator
  • Python 3.11+ (only when building Python bindings)

Building

CMake presets

CMakePresets.json ships six visible configure presets plus three hidden inheritance bases. Use the default-* presets for normal builds, local-* to consume sibling working copies of LBNL deps, and python-* to also build the Python bindings:

Preset Description Python bindings C++ tests
default-debug / default-release C++ only. Fetches all dependencies from declared remotes. OFF ON
local-debug / local-release C++ only, but consume sibling ../LBNLCPPCommon and ../FileParse working copies when present. OFF ON
python-debug / python-release C++ with Python bindings. Fetches all dependencies from declared remotes. ON ON

Missing siblings under local-* fall back to the declared remote automatically, so local-* is safe to invoke even if you don't have the LBNL siblings checked out.

cmake --preset default-release
cmake --build build/default-release --config Release --parallel
ctest --test-dir build/default-release -C Release --output-on-failure

For Python bindings:

cmake --preset python-release
cmake --build build/python-release --config Release --parallel
ctest --test-dir build/python-release -C Release -V

CLion and VS Code automatically detect these presets.

Per-machine compiler presets (CMakeUserPresets.json)

To use a specific compiler (vs2022-release, gcc-13-debug, clang-18-release, etc.), each developer maintains their own CMakeUserPresets.json next to CMakePresets.json. It is gitignored, read automatically by CMake (and CLion, VS Code, etc.), and stays on the developer's machine.

Personal presets inherit from one of the shipped presets (usually local, which gives you sibling-repo overrides for free, or python if you want bindings) and override whatever they want. A complete realistic example -- building with WSL Clang on a Windows machine, with CLion 2023.2+ routed through the WSL toolchain automatically:

{
    "version": 6,
    "configurePresets": [
        {
            "name": "clang-release",
            "displayName": "clang (Release)",
            "inherits": "local",
            "generator": "Ninja",
            "binaryDir": "${sourceDir}/build/clang-release",
            "cacheVariables": {
                "CMAKE_C_COMPILER":   "clang",
                "CMAKE_CXX_COMPILER": "clang++",
                "CMAKE_BUILD_TYPE":   "Release"
            },
            "vendor": {
                "jetbrains.com/clion": {
                    "toolchain": "WSL"
                }
            }
        }
    ]
}

Manual configuration (without presets)

cmake -G "Visual Studio 17 2022" -A x64 -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release

Add -DBUILD_PYTHON_BINDINGS=ON to include Python bindings.

CMake options

Option Default Description
BUILD_PYTHON_BINDINGS OFF Build Python bindings via pybind11
BUILD_LibraryFEMTHERM_TESTING ON Build C++ test targets

Python bindings

Install from PyPI:

pip install libraryfemtherm

Or build from source with BUILD_PYTHON_BINDINGS=ON (see above).

import pylibraryfemtherm as fem

# Load a THMZ file
model = fem.load_model_from_zip_file("sample-sill.thmz")
print(f"Polygons:   {len(model.polygons)}")
print(f"Boundaries: {len(model.boundary_conditions)}")

# Save to XML string
xml = fem.save_model_to_string(model)

# Save to a new THMZ file
fem.save_model_to_zip_file(model, "output.thmz")

# Work with ZIP contents directly
contents = fem.zip.unzip_files("sample.thmz", [fem.zip.MATERIALS_FILE_NAME])
db = fem.MaterialsDB()
db.load_from_string(contents[fem.zip.MATERIALS_FILE_NAME])

For comprehensive Python API documentation with examples, see doc/python.md.

Project structure

src/
  BCSteadyState/     # Steady-state boundary conditions
  BCTransient/       # Transient boundary conditions
  CMA/               # CMA (Component Modeling Approach) data
  Common/            # Shared utilities
  Gases/             # Gas properties and mixtures
  Materials/         # Material definitions (solid, cavity, radiation)
  THMZ/              # ThermModel, geometry, preferences, properties, zip I/O
  LibraryUtilities/  # Common helpers
  Schemas/           # XML/JSON schemas
python/
  src/               # pybind11 binding source files
  tests/             # pytest test suite
tst/
  units/             # C++ Google Test files
  products/          # Test THMZ data files
cmake/               # CMake macros and compiler config

Dependencies (fetched automatically)

Metadata

Release files for libraryfemtherm 0.23.4

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

Source distribution (sdist)

Source distribution for libraryfemtherm 0.23.4
File Size Uploaded Provenance Actions
libraryfemtherm-0.23.4.tar.gz 351.7 kB With provenance Details for libraryfemtherm-0.23.4.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for libraryfemtherm 0.23.4
File Actions
libraryfemtherm-0.23.4-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for libraryfemtherm-0.23.4-cp313-cp313-win_amd64.whl
libraryfemtherm-0.23.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details for libraryfemtherm-0.23.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
libraryfemtherm-0.23.4-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for libraryfemtherm-0.23.4-cp313-cp313-macosx_11_0_arm64.whl
libraryfemtherm-0.23.4-cp313-cp313-macosx_10_15_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.15+ x86-64 Details for libraryfemtherm-0.23.4-cp313-cp313-macosx_10_15_x86_64.whl
libraryfemtherm-0.23.4-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for libraryfemtherm-0.23.4-cp312-cp312-win_amd64.whl
libraryfemtherm-0.23.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for libraryfemtherm-0.23.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
libraryfemtherm-0.23.4-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for libraryfemtherm-0.23.4-cp312-cp312-macosx_11_0_arm64.whl
libraryfemtherm-0.23.4-cp312-cp312-macosx_10_15_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.15+ x86-64 Details for libraryfemtherm-0.23.4-cp312-cp312-macosx_10_15_x86_64.whl
libraryfemtherm-0.23.4-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for libraryfemtherm-0.23.4-cp311-cp311-win_amd64.whl
libraryfemtherm-0.23.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for libraryfemtherm-0.23.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
libraryfemtherm-0.23.4-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for libraryfemtherm-0.23.4-cp311-cp311-macosx_11_0_arm64.whl
libraryfemtherm-0.23.4-cp311-cp311-macosx_10_15_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.15+ x86-64 Details for libraryfemtherm-0.23.4-cp311-cp311-macosx_10_15_x86_64.whl

Total release size: 22.7 MB

Release files / libraryfemtherm-0.23.4.tar.gz

Download URL libraryfemtherm-0.23.4.tar.gz
Size 351.7 kB
Tags Source
SHA-256 checksum
How to use checksums
519a030d8af60541c4196b7728e888c3778759faf185fc6c3d6a03e114f9e43c
BLAKE2b-256 checksum
How to use checksums
0df462a6253fd4866cb5ebe3eb931bc6c2ce85423fe439502503cab4225a5715
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / libraryfemtherm-0.23.4-cp313-cp313-win_amd64.whl

Download URL libraryfemtherm-0.23.4-cp313-cp313-win_amd64.whl
Size 2.6 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
9d7cc31ed392c7c0d9f619bd040a9b0ab94a4da48e7c8a27fe8a5fe912a2f258
BLAKE2b-256 checksum
How to use checksums
be2741067a1531e85553c82e1a03de85755257d1b31369167a405d3a0d8c83a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / libraryfemtherm-0.23.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL libraryfemtherm-0.23.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.9 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
6a258edf5d9f6d5770bba190db6c4561d516632c627fc11dfe10552278cce8af
BLAKE2b-256 checksum
How to use checksums
72043984035e1e8fb18a4863d2bb1a030d59e2fecfefc3ecaa0ddfb51f9c1f28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / libraryfemtherm-0.23.4-cp313-cp313-macosx_11_0_arm64.whl

Download URL libraryfemtherm-0.23.4-cp313-cp313-macosx_11_0_arm64.whl
Size 1.4 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
370d7aac85400ab10fff6fff26144dab89eb4334a8a27e5b1edc10612836d5bb
BLAKE2b-256 checksum
How to use checksums
13d0016455379c17185696f1980e6058b37e2924df70d34cdd2347e10e43a00d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / libraryfemtherm-0.23.4-cp313-cp313-macosx_10_15_x86_64.whl

Download URL libraryfemtherm-0.23.4-cp313-cp313-macosx_10_15_x86_64.whl
Size 1.5 MB
Tags CPython 3.13 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
3b673ae6f4bbd4291093af5cfa3f882112c1d9c20bd67f9237eec3799744471e
BLAKE2b-256 checksum
How to use checksums
65a689477d57ebf5d69a5a4b638e08cc7fa65a8adb6186678b932435ebb1df3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / libraryfemtherm-0.23.4-cp312-cp312-win_amd64.whl

Download URL libraryfemtherm-0.23.4-cp312-cp312-win_amd64.whl
Size 2.6 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
98cb14a21b372f4517d7e43b1a8db9dce3043f682a4a695b22020892a8ae80f3
BLAKE2b-256 checksum
How to use checksums
c00038ac110dd8fb1df049cfad5b3ed2fee78b43d542021913a01255884b46a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / libraryfemtherm-0.23.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL libraryfemtherm-0.23.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.9 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
3c6d912b13f88240266161bcd3b51f3682f07b4f15bd9d317302b11c7e63206c
BLAKE2b-256 checksum
How to use checksums
990291625369b9a523411ab6ab7129449934e532dacb46258985d086bff63fcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / libraryfemtherm-0.23.4-cp312-cp312-macosx_11_0_arm64.whl

Download URL libraryfemtherm-0.23.4-cp312-cp312-macosx_11_0_arm64.whl
Size 1.4 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3f6f6a326cba113706d56d92cac2ea4bb60e26989f79066a8dd30e553fa6a6d8
BLAKE2b-256 checksum
How to use checksums
c2988a5755e2f31c71d3a9c8e1a4b22d9983628fe4665bc2b7a93f26c3e5ca1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / libraryfemtherm-0.23.4-cp312-cp312-macosx_10_15_x86_64.whl

Download URL libraryfemtherm-0.23.4-cp312-cp312-macosx_10_15_x86_64.whl
Size 1.5 MB
Tags CPython 3.12 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
c2d517c2cc893877944cb5bfa005b1489ef4e11bd14adb7d73c108d2e1a0dabb
BLAKE2b-256 checksum
How to use checksums
d934a512b7f810783f4eba9269ff6dbb6058a12aa1afa957014abf9e1e55f872
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / libraryfemtherm-0.23.4-cp311-cp311-win_amd64.whl

Download URL libraryfemtherm-0.23.4-cp311-cp311-win_amd64.whl
Size 2.6 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
1192d2ebdb55d1a19d739e3df4e8d5e98064ce4f957a7816a6909987099ce3db
BLAKE2b-256 checksum
How to use checksums
705170f1ee4664a7fc8fac98c04c7779e26a6836faa2275125817b4631985572
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / libraryfemtherm-0.23.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL libraryfemtherm-0.23.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.9 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
992d5002d293ce7874698fce7b48793a625a896019b4cb1098346b083a2cb238
BLAKE2b-256 checksum
How to use checksums
6ca44b567d1bdd804e415ffa262359c0193322177d9091eef5552c8c1bbc5499
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / libraryfemtherm-0.23.4-cp311-cp311-macosx_11_0_arm64.whl

Download URL libraryfemtherm-0.23.4-cp311-cp311-macosx_11_0_arm64.whl
Size 1.4 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
88e3d95f07c1e414a00aadc07249273f48eef435fea03fb2043d2ce71a259d41
BLAKE2b-256 checksum
How to use checksums
c6e6bc5e3139b1e9cd7f3d7615e9b90facf826c4cd2ca5e889c5e91d76fc6598
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / libraryfemtherm-0.23.4-cp311-cp311-macosx_10_15_x86_64.whl

Download URL libraryfemtherm-0.23.4-cp311-cp311-macosx_10_15_x86_64.whl
Size 1.5 MB
Tags CPython 3.11 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
a8990007631435a11c06ef979c44dd854beb7ecae409f58593bc6bdc9c8c15bb
BLAKE2b-256 checksum
How to use checksums
1fb5a5600cd55f533e01703954207787368c52ecb1bed598ff1f53b075fdf72f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Security for libraryfemtherm 0.23.4

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.

Full provenance

All 13 files in this release have been uploaded with provenance metadata.

Select from 13 files

Attestation for libraryfemtherm-0.23.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

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.

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