tanmatra
tanmatra (Sanskrit: तन्मात्र — subtle element) — Atomic and subatomic physics for AGNOS.
Modules
| Module | Description |
|---|---|
constants |
CODATA 2022 fundamental physical constants |
particle |
Standard Model: quarks, leptons, bosons, forces (PDG 2024) |
nucleus |
Bethe-Weizsacker binding energy, shell model, magic numbers |
decay |
Radioactive decay, 114 isotopes, Bateman equations, decay chains |
atomic |
Electron configs, spectral series, ionization/affinity, Zeeman/Stark, QED |
reaction |
Q-values, cross-sections, fission yields, neutron moderation, nucleosynthesis |
relativity |
Four-momentum, Lorentz factor, velocity addition, de Broglie |
scattering |
Rutherford/Mott cross-sections, Sommerfeld parameter |
optics |
prakash integration for spectral line visualization (feature-gated) |
error |
TanmatraError with 6 variants |
Quick Start
use *;
// Iron-56 binding energy per nucleon (~8.8 MeV)
let fe56 = iron_56;
println!;
// H-alpha spectral line (~656.3 nm)
let h_alpha = spectral_line_nm.unwrap;
println!;
// Electron configuration of iron: [Ar] 4s2 3d6
let config = electron_configuration.unwrap;
println!;
// Relativistic proton at 500 MeV/c
let p = from_mass_and_momentum;
println!;
Building
MSRV: Rust 1.89
Data Sources
| Source | Used For |
|---|---|
| CODATA 2022 | Fundamental constants |
| PDG 2024 | Particle masses, decay widths |
| NNDC/NUBASE 2020 | Nuclear half-lives (114 isotopes) |
| NIST ASD | Ionization energies, electron affinities |
| ENDF/B-VIII.0 | Cross-sections, fission yields |
Feature Flags
| Feature | Default | Description |
|---|---|---|
std |
Yes | Standard library support |
logging |
No | Structured tracing via tracing crate |
optics |
No | Integration with prakash for spectral visualization |
full |
No | Enables all optional features |
License
GPL-3.0-only. See LICENSE.