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.5

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.5
File Size Uploaded Provenance Actions
libraryfemtherm-0.23.5.tar.gz 351.9 kB With provenance Details for libraryfemtherm-0.23.5.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for libraryfemtherm 0.23.5
File Actions
libraryfemtherm-0.23.5-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for libraryfemtherm-0.23.5-cp313-cp313-win_amd64.whl
libraryfemtherm-0.23.5-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.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
libraryfemtherm-0.23.5-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for libraryfemtherm-0.23.5-cp313-cp313-macosx_11_0_arm64.whl
libraryfemtherm-0.23.5-cp313-cp313-macosx_10_15_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.15+ x86-64 Details for libraryfemtherm-0.23.5-cp313-cp313-macosx_10_15_x86_64.whl
libraryfemtherm-0.23.5-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for libraryfemtherm-0.23.5-cp312-cp312-win_amd64.whl
libraryfemtherm-0.23.5-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.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
libraryfemtherm-0.23.5-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for libraryfemtherm-0.23.5-cp312-cp312-macosx_11_0_arm64.whl
libraryfemtherm-0.23.5-cp312-cp312-macosx_10_15_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.15+ x86-64 Details for libraryfemtherm-0.23.5-cp312-cp312-macosx_10_15_x86_64.whl
libraryfemtherm-0.23.5-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for libraryfemtherm-0.23.5-cp311-cp311-win_amd64.whl
libraryfemtherm-0.23.5-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.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
libraryfemtherm-0.23.5-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for libraryfemtherm-0.23.5-cp311-cp311-macosx_11_0_arm64.whl
libraryfemtherm-0.23.5-cp311-cp311-macosx_10_15_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.15+ x86-64 Details for libraryfemtherm-0.23.5-cp311-cp311-macosx_10_15_x86_64.whl

Total release size: 22.7 MB

Release files / libraryfemtherm-0.23.5.tar.gz

Download URL libraryfemtherm-0.23.5.tar.gz
Size 351.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bca277ad84b956921d733b7a78326056c3775fdeed23e38b51bf49fd7f7c82be
BLAKE2b-256 checksum
How to use checksums
6064c5b11292ec8668186710a7b147a3318c100fc7a91c26109d4dfff507f7ca
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.5-cp313-cp313-win_amd64.whl

Download URL libraryfemtherm-0.23.5-cp313-cp313-win_amd64.whl
Size 2.6 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
dd536af39981fed7d4d992d62472dd642c7a6dbcdbdcd23bf10d65c3fdcd3c08
BLAKE2b-256 checksum
How to use checksums
f828c74e4e178c5868bab3f3c1427100869566de1f4aa32e7aa71b73463a6f64
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.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL libraryfemtherm-0.23.5-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
8bbafe754161cad285df1de49a85319a333fddb68cab924cc505ae621683b73e
BLAKE2b-256 checksum
How to use checksums
f4103d1d2965cf5bfa0d6c5ee2f5d384ab7998c4c36379569de862f053401b10
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.5-cp313-cp313-macosx_11_0_arm64.whl

Download URL libraryfemtherm-0.23.5-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
de7601ee8d40b333ede10385af7e9cbf072a4d01943b6e82a36d8d2d0f280cae
BLAKE2b-256 checksum
How to use checksums
10da41cf82a72829a3ca0562dd16acd2dedd87a7073974cf50f2a2167608ecaa
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.5-cp313-cp313-macosx_10_15_x86_64.whl

Download URL libraryfemtherm-0.23.5-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
d937f4fb6cb4c16073fdfebdc85df1689bf43fb7eb23322e8713d82530029075
BLAKE2b-256 checksum
How to use checksums
a390373898ce797cabbfccf322978090e9bffeaa869fab807c4967606e44c846
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.5-cp312-cp312-win_amd64.whl

Download URL libraryfemtherm-0.23.5-cp312-cp312-win_amd64.whl
Size 2.6 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
0ac34f055d199d3c8b9669a39fbfeac2ed4f93f5e284819f3b62a15489334cc4
BLAKE2b-256 checksum
How to use checksums
1a5ac530bc2947366adae37338175bac75f3d2a90367e44018b9531361fe633b
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.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL libraryfemtherm-0.23.5-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
28f8d2aacafec033c317df88082cb6d2b1a72eaeb388e0c813fc500b0c22b9c9
BLAKE2b-256 checksum
How to use checksums
baf0d1cbee4eb2277b9fd4ca82c707f90b8abfbd4b756db2a335a48224f1ab81
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.5-cp312-cp312-macosx_11_0_arm64.whl

Download URL libraryfemtherm-0.23.5-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
ab051110a0d10e846927bd0f73afefdde158cca0ac11b1cfa7f62963533b310b
BLAKE2b-256 checksum
How to use checksums
7dac086501e7b0d60c6ddba5b64381583107e1a4474758fca393a5a77edbaa9e
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.5-cp312-cp312-macosx_10_15_x86_64.whl

Download URL libraryfemtherm-0.23.5-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
8a58a53c0c1508296d8a593cacd391f0219fe0b450df00100a9371dcd06f3da3
BLAKE2b-256 checksum
How to use checksums
95e03226b132ea8a21f1a3b7689ac1e201a4cd309c39ba8c7feb4d067cbdd92f
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.5-cp311-cp311-win_amd64.whl

Download URL libraryfemtherm-0.23.5-cp311-cp311-win_amd64.whl
Size 2.6 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
379a58bfdcbdfd14072932ae1add761a3e2ae10b018d0449b5f973cc36e576ea
BLAKE2b-256 checksum
How to use checksums
2d1c1900a1b59968ddb792ff14b441fe4c3214923647c9ed126987bdf5e0b6b6
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.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL libraryfemtherm-0.23.5-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
6c5fdaf4f0c5acdd904cc4c94ec507178b461db89b58ec9a66ce4d4463ad6167
BLAKE2b-256 checksum
How to use checksums
00305020d391928d59db565b62ca10a4eb5ee4ed388ec1f48bd3e53e0bc65be9
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.5-cp311-cp311-macosx_11_0_arm64.whl

Download URL libraryfemtherm-0.23.5-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
5780b59399aaf56744cd2e74e66f521d963933841e5df806f636afd8c014438f
BLAKE2b-256 checksum
How to use checksums
68f8e0b7924a47c92180df2ccd679c6c5e720a59cf41e77a70470bbceeb8910f
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.5-cp311-cp311-macosx_10_15_x86_64.whl

Download URL libraryfemtherm-0.23.5-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
e883b08f062adf41640533be0c9c6a7fd88e45f03ea1765b8ac9ca3e871b5303
BLAKE2b-256 checksum
How to use checksums
0b640d445fd2a7eb879917719cad5db6b5951409c530674362dfc02a156730b6
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.5

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.5.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