Design the sample thickness that lets the beam through.
Beginner-friendly desktop tool for transmission SXRD / SAXS thickness design. Beer–Lambert law + elemental ((\mu/\rho)) from xraydb → thickness from energy, composition, density, and target transmittance (T) or optical depth (\mu t).
Optional window/air stacks, detector Q/d coverage, and relative exposure scaling.
中文:透射式 SXRD/SAXS 样品厚度快速设计器(基于 Beer–Lambert 与 xraydb 元素衰减系数)。
- Mass or atomic composition; alloy presets
- Density models — prefer measured density when available
- Multi-layer transmission budget (Kapton / Be / quartz / air)
- Detector Q/d coverage helper
- Relative exposure scaling (ratio guide, not absolute flux)
- Session JSON I/O and
.txt/.mdreports
git clone https://github.com/D-sudoasd/MuSlice.git
cd MuSlice
pip install -r requirements.txt
# or: pip install -e .
python -m muslice # Windows: run.batOptional theme: pip install sv-ttk
Example session: examples/session_83keV_Ti2448.json
Physics notes: docs/PHYSICS.md
- Beam — energy or wavelength
- Sample — alloy preset or composition; prefer measured density
- Target — (T) or (\mu t)
- Layers — Kapton / Be / quartz stacks
- Compute — thickness + (T)–(t) curve · Save session JSON
Shortcuts: Ctrl+Enter compute · Ctrl+S export · Ctrl+O load · F1 help
- Density quality dominates accuracy — wrong ρ → wrong thickness
- Exposure tool is a relative ratio guide, not absolute beamtime prediction
- Uses simple Beer–Lambert formulas only (no full Monte-Carlo ray tracing)
- Flat orthogonal detector model for Q/d coverage
- Not a scattering simulator, sample changer planner, or safety interlock
MIT · Cite xraydb (Elam / Chantler tables) when publishing derived thicknesses or attenuation results.