Skip to main content

Transformer thermal model

PyPI version License: MPL2.0 Downloads Downloads DOI

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

transformer-thermal-model is a library for modelling the transformer top-oil and hot-spot temperature based on the transformer specifications, a load profile and an ambient temperature profile. The model is an implementation according to the standard IEC 60076-7, also known as de Loading Guide.

Quick Start

Install from PyPI:

pip install transformer-thermal-model

Simple example:

import pandas as pd
from transformer_thermal_model.model import Model
from transformer_thermal_model.cooler import CoolerType
from transformer_thermal_model.schemas import UserTransformerSpecifications, InputProfile
from transformer_thermal_model.transformer import PowerTransformer

# Create transformer specs
tr_specs = UserTransformerSpecifications(
    load_loss=1000, nom_load_sec_side=1500, no_load_loss=200, amb_temp_surcharge=20
)
transformer = PowerTransformer(user_specs=tr_specs, cooling_type=CoolerType.ONAF)

# Create load and ambient temperature profiles
datetime_index = pd.date_range("2020-01-01", periods=168, freq="15min")
profile_input = InputProfile.create(
    datetime_index=datetime_index,
    load_profile=pd.Series([1250] * 168, index=datetime_index),
    ambient_temperature_profile=pd.Series([21] * 168, index=datetime_index),
)

# Run the model
model = Model(temperature_profile=profile_input, transformer=transformer)
results = model.run()

For more examples, see the documentation.

Features

  • Temperature modeling: Calculate top-oil and hot-spot temperatures according to IEC 60076-7
  • Multiple transformer types: Power, distribution, and three-winding transformers are supported
  • ONAN/ONAF modelling: Model with different cooling types
  • Hot-spot calibration: Automatic calibration of hot-spot factors
  • Aging calculations: Analyze transformer aging

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.

The concerning license files can be found in the LICENSES directory.

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 Transformer Thermal Model project.

Metadata

Release files for transformer-thermal-model 0.6.0

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

Source distribution (sdist)

Source distribution for transformer-thermal-model 0.6.0
File Size Uploaded
transformer_thermal_model-0.6.0.tar.gz 38.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for transformer-thermal-model 0.6.0
File Interpreter ABI Platform
transformer_thermal_model-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 90.7 kB

Release files / transformer_thermal_model-0.6.0.tar.gz

Download URL transformer_thermal_model-0.6.0.tar.gz
Size 38.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cee4905021a0b4a94c4ef7e7c21adf38ac05b687a6ed787f312e509403c1786d
BLAKE2b-256 checksum
How to use checksums
d47f1dcead8623c3b8586e7b695288b7840324331f01f2561e6ac6fbea4115b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Apr 21, 2026.

Transparency log

Release files / transformer_thermal_model-0.6.0-py3-none-any.whl

Download URL transformer_thermal_model-0.6.0-py3-none-any.whl
Size 52.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28e9669c36f200c8565e6f1027a92a947eba2512856e624c7af32cafdad64b7b
BLAKE2b-256 checksum
How to use checksums
c06d422c83ba4e2ea8f7d6d6e5b0845529c6c87aaa8f44469aa16f5408eb107d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Apr 21, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

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