Initial commit

Base modular structure (phase space, Fermi function)
Initial .gitignore
This commit is contained in:
2026-04-02 15:38:37 +03:00
commit a5e1962fe2
16 changed files with 491 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
# units.py
import numpy as np
ME_KEV = 510.99895000 # keV electron mass
def W_to_T(W: float | np.ndarray) -> np.ndarray:
return (W - 1.0) * ME_KEV
def T_to_W(T_keV: float | np.ndarray) -> np.ndarray:
return T_keV / ME_KEV + 1.0