Skip to main content

Switchgear thermal model

License: MPL2.0

Quality Gate Status Code Smells Coverage Duplicated Lines (%) Maintainability Rating

thermal model which can simulate the temperature of the switchgear, based on the switchgear specifications, ambient temperature and load profiles.

Quick start

One can install the switchgear thermal model from PyPI by running

pip install switchgear-thermal-model

Simple Example

The model uses an InputProfile, which is a combination of a datetime index, load profile, and ambient temperature profile as input for the model. A quick start can be made using the following code snippet:

import numpy as np

from switchgear_thermal_model.schemas.input_profile import InputProfile
from switchgear_thermal_model.switchgear import Switchgear
from switchgear_thermal_model.thermal_model import switchgear_temp

# Set up the InputProfile
start_time = np.datetime64("2024-01-01T00:00")
dt_minutes = 15
datetime_array = start_time + np.arange(96) * np.timedelta64(dt_minutes, "m")
load_array = np.full((1, 96), 2000)[0]
amb_temp_array = np.full((1, 96), 20)[0]

input_profile = InputProfile(
    datetime_index=datetime_array,
    ambient_temperature_profile=amb_temp_array,
    load_profile=load_array,
)

# Set up a switchgear with specifications
switchgear = Switchgear(
    rated_current=3150,
    measured_temperature_rise=75,
    temp_rise_exp=1.8,
    thermal_time_constant=90
)

# run the model
result = switchgear_temp(input_profile, switchgear)

Features

  • Creating switchgear models: Create a switchgear model based on specified thermal parameters.
  • Temperature modeling: Calculate conductor temperature according to IEC 62271‑306.

Documentation

License

This project is licensed under the Mozilla Public License, version 2.0 - see LICENSE for details.

Licenses third-party libraries

This project includes third-party libraries, which are licensed under their own respective Open-Source licenses. SPDX-License-Identifier headers are used to show which license is applicable.

An overview of these third-party libraries and their licenses is outlined in THIRD_PARTY_NOTICES

Contributing

Please read CODE_OF_CONDUCT, CONTRIBUTING and PROJECT GOVERNANCE for details on the process for submitting pull requests to us.

Contact

Please read SUPPORT for how to get in touch with the Switchgear Thermal Model project.

Metadata

Release files for switchgear-thermal-model 0.0.1

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

Source distribution (sdist)

Source distribution for switchgear-thermal-model 0.0.1
File Size Uploaded
switchgear_thermal_model-0.0.1.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for switchgear-thermal-model 0.0.1
File Interpreter ABI Platform
switchgear_thermal_model-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.8 kB

Release files / switchgear_thermal_model-0.0.1.tar.gz

Download URL switchgear_thermal_model-0.0.1.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d2c9bae39b6c84b955160c6a3d20ad5c2992bca06ea95f447db9bcac7398c5e9
BLAKE2b-256 checksum
How to use checksums
7a959d637829b4fc7ebe8d92eb71de915572a5b2f6846140708e8a4ce8d3cfa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 1, 2026.

Transparency log

Release files / switchgear_thermal_model-0.0.1-py3-none-any.whl

Download URL switchgear_thermal_model-0.0.1-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ccf8ee44ed7c903182ab2c0bcda1e9adf61899acde78b62ac89eecc9122eafe4
BLAKE2b-256 checksum
How to use checksums
2c2224bbf2f0e9e6f45641d2dbf6fea439e8030afe14cbefaf17c7ce745fbc52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 1, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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