Skip to main content

Tools for simulate TL Glow Curves

This library provides functions to simulate thermoluminescence (TL) glow curves using three kinetic models:

  • First-order kinetics
  • Second-order kinetics
  • General-order kinetics (with the kinetic order b)

It is intended for research and modeling of thermoluminescence phenomena.


Installation

Once the package is available on PyPI:

pip install mi_libreria_TL

Or if you are using the raw TL_kinetics.py file, simply place it in your project and import the functions:

from TL_kinetics import TL_first_order, TL_second_order, TL_general_order

Function Descriptions

TL_first_order(E, s, k, beta, n0, Npoints, T0, Tfinal) Simulates a first-order TL glow peak.

TL_second_order(E, s, k, beta, N, n0, Npoints, T0, Tfinal) Simulates a second-order TL glow peak.

TL_general_order(E, s, k, beta, n0, Npoints, T0, Tfinal, b=1.5) Simulates a general-order TL glow peak.


Parameter Meaning

Parameter Units Description
E eV Activation energy of the trap (depth below conduction band).
s s⁻¹ Frequency factor (attempt-to-escape frequency).
k eV/K Boltzmann constant (≈ 8.617 × 10⁻⁵ eV/K).
beta K/s Heating rate (temperature increase per second).
n0 carriers Initial number of trapped carriers at T0.
N carriers Total trap concentration (used in second-order kinetics).
Npoints — Number of temperature steps in the simulation.
T0 K Initial temperature (Kelvin).
Tfinal K Final temperature (Kelvin).
b — Kinetic order parameter (b=1 → first order, b=2 → second order, etc.).

Example Usage

import matplotlib.pyplot as plt
from tl_models import TL_first_order, TL_second_order, TL_general_order

# Example parameters
E = 1.0          # eV, trap depth
s = 1e12         # s^-1, frequency factor
k = 8.617e-5     # eV/K, Boltzmann constant
beta = 1         # K/s, heating rate
N = 1e10         # total traps
n0 = N           # assume all traps are filled initially
Npoints = 500
T0 = 273.15 + 25     # Initial temperature (298 K = 25 °C)
Tfinal = 273.15 + 250  # Final temperature (523 K = 250 °C)

# First-order TL
T1, I1 = TL_first_order(E, s, k, beta, n0, Npoints, T0, Tfinal)

# Second-order TL
T2, I2 = TL_second_order(E, s, k, beta, N, n0, Npoints, T0, Tfinal)

# General-order TL
Tg, Ig = TL_general_order(E, s, k, beta, n0, Npoints, T0, Tfinal, b=1.5)

# Plotting
import matplotlib.pyplot as plt
plt.plot(T1 - 273.15, I1, label="First-order")
plt.plot(T2 - 273.15, I2, label="Second-order")
plt.plot(Tg - 273.15, Ig, label="General-order (b=1.5)")
plt.xlabel("Temperature (°C)")
plt.ylabel("TL Intensity (a.u.)")
plt.legend()
plt.show()

Output

Each function returns:

  • T_eval: array of temperature values (K).
  • I: array of simulated TL intensity values (arbitrary units).

You can directly plot T_eval vs I to visualize the TL glow peak.

Metadata

Release files for TL-kinetics 0.0.2

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

Source distribution (sdist)

Source distribution for TL-kinetics 0.0.2
File Size Uploaded Provenance Actions
tl_kinetics-0.0.2.tar.gz 3.6 kB Without provenance Details for tl_kinetics-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for TL-kinetics 0.0.2
File Interpreter ABI Platform Actions
tl_kinetics-0.0.2-py3-none-any.whl Python 3 none any Details for tl_kinetics-0.0.2-py3-none-any.whl

Total release size: 7.4 kB

Release files / tl_kinetics-0.0.2.tar.gz

Download URL tl_kinetics-0.0.2.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9bb0033716c697ade6451c62c535f02b8820c97736805d2aecf38e21df405713
BLAKE2b-256 checksum
How to use checksums
e885d0d8a667cfb4d45fc947109da44c43feb3c4d8262bcbef195194fe482314
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / tl_kinetics-0.0.2-py3-none-any.whl

Download URL tl_kinetics-0.0.2-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
687fd351639f00841e859a2a8c28c6667c28045913c8109d7f66191e2f607251
BLAKE2b-256 checksum
How to use checksums
d5a506887552f62c4522a9d13d498495e77b69f1c1455169284a9ebe87fbd575
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for TL-kinetics 0.0.2

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