Repository navigation
feat(data): add Gd and Lu rare-earth metals (#132, #133) - #211
Merged
Merged
Conversation
Pure-element entries for gadolinium (Z=64) and lutetium (Z=71) in metals.toml. Element scalars from Wikipedia / CRC Handbook (CC-BY-SA-4.0); nuclear scalars (X₀, λᵢ, I, Z_eff) from PDG Atomic & Nuclear Properties (PD-USGov, https://pdg.lbl.gov/2024/AtomicNuclearProperties). Gd: ferromagnetic below T_C ≈ 293 K (just below RT — the basis for room-temperature magnetic refrigeration); magnetic sub-table populated with the Curie-Weiss-enhanced paramagnetic μr at 295 K and Bs ≈ 2.6 T below T_C; thermal_expansion uses the lattice α at 100 °C (above T_C), not the magnetostriction-dominated apparent CTE near 20 °C — see _sources note. Highest natural-element thermal-neutron capture (~49 000 barns natural / ~254 000 barns ¹⁵⁷Gd) — schema field for σ_n,γ does not exist yet, tracked in _sources note as TODO. Lu: densest lanthanide; reference for LYSO/LSO scintillator parent material and natural-Lu intrinsic-background calculations (¹⁷⁶Lu ~39 Bq/g). Bulk-purity Lu hard to obtain (residual Hf <500 ppm typical after the lanthanide contraction); bulk mechanical data sparse and price-driven. Vickers hardness omitted for both — published ranges (Gd 510-950 MPa, Lu 755-1160 MPa) are too wide to express as a single curated scalar.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
metals.toml. Element scalars from Wikipedia/CRC (CC-BY-SA-4.0); nuclear scalars (X₀, λᵢ, I, Z_eff) from PDG (PD-USGov). Magnetic sub-table populated — Gd is ferromagnetic below T_C ≈ 293 K (just below RT, basis for room-temperature magnetic refrigeration); μr listed is the Curie-Weiss-enhanced paramagnetic value at 295 K, Bs ≈ 2.6 T below T_C._CATEGORY_BASES["metals"].Per-element table
Citations
lutetium_Lu.html— density, X₀, λ_I, I, Z.Judgment calls
_sources._default.note; consult the certificate of analysis for the specific cast.nuclearsub-table has noneutron_capturefield today. Documented as# TODO: schema neutron_capturein_sources._default.noteand skipped per task brief._sourcesnote.gradeand_sources._default.note.Validation
python scripts/check_licenses.py— 7/7 files pass.uv run pytest— 628 passed, 24 skipped.uv run ruff check . && uv run ruff format --check .— clean.Test plan
python -c "import tomllib; tomllib.loads(open('src/pymat/data/metals.toml').read())"— TOML parses.python scripts/check_licenses.py— license gate passes.uv run pytest tests/test_toml_integrity.py tests/test_sources.py -v— 43/43 pass.uv run pytest— full suite passes (628 passed, 24 skipped).uv run ruff check . && uv run ruff format --check .— clean.from pymat import gadolinium, lutetium; print(gadolinium.density, lutetium.density)returns7.901 9.841.gadolinium.source_of('mechanical.density')returns the PDGSourceobject.Closes #132. Closes #133.