Skip to main content

Python tools for simulation of Thermoluminescence (TL) glow curves

Project description

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_models.py file, simply place it in your project and import the functions:

from tl_models 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
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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tl_kinetics-0.0.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tl_kinetics-0.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file tl_kinetics-0.0.1.tar.gz.

File metadata

  • Download URL: tl_kinetics-0.0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for tl_kinetics-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a2e85390b059770620821559ed339166531a6600948495a442ecc6a44a15d78c
MD5 f541975fba76e1dbc858d6b098a907a1
BLAKE2b-256 af4f957f125e401a3885771e509f66a7ef71fa7cc63ded508e0b22956fba8023

See more details on using hashes here.

File details

Details for the file tl_kinetics-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: tl_kinetics-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for tl_kinetics-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8b8ab5a092a2696a771523b143f48ad8adf47cdb9e07ea32a8773bfe878db9c8
MD5 f60938f2e0bd5d29a872625ad8c0e4c1
BLAKE2b-256 af79fdee9855e283f573f2b7571aa74c301f9ae1f7ed9232338ded2bbce817da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page