HUB
Sign inSign up
superconductor-lab logo

credkellar/superconductor-lab

By credkellar

•Updated 17 days ago

Superconductor-Lab: Tc/Bc2/Jc critical surface, Meissner, BCS gap, flux pinning + cryo-cost physics!

Image
Machine learning & AI
Developer tools
Data science
1

225

credkellar/superconductor-lab repository overview

⁠Superconductor-Lab ❄️⚡

Superconductor Physics & Materials Lab — by Darion Kellar

Educational superconductor physics lab in ONE pure-Python file — the foundation under LevitationX and MagLevX: zero resistance, the Tc / Bc2 / Jc critical surface, the Meissner effect and London penetration depth, Type I vs Type II vortex physics, flux pinning, the BCS energy gap, critical-current derating, a Carnot cryogenics cost model, an applications mapper, and a from-scratch kNN operating-point classifier.

Pure Python standard library. Zero dependencies. Zero network. Honest scope: H2S superconducts only at ~155 GPa (labelled everywhere), no room-temperature superconductivity is claimed, and every real-hardware / live-operation action is a permanent HOLD gate (14 total).

⁠🐳 Quick start

docker pull credkellar/superconductor-lab:latest docker run --rm credkellar/superconductor-lab:latest

The default command runs the full demo plus the built-in self-checks (CHECKS 54/54).

Run a specific command instead:

docker run --rm credkellar/superconductor-lab:latest python3 main.py checks # CHECKS 54/54 docker run --rm credkellar/superconductor-lab:latest python3 main.py materials # 8-material table docker run --rm credkellar/superconductor-lab:latest python3 main.py surface # critical-surface states docker run --rm credkellar/superconductor-lab:latest python3 main.py vortices # NbTi state vs field docker run --rm credkellar/superconductor-lab:latest python3 main.py cryo # 4.2 K vs 77 K economics docker run --rm credkellar/superconductor-lab:latest python3 main.py holds # 14 HOLD gates

⁠🔬 What's inside

  • Materials table — Mercury (4.15 K, 1911), Niobium (9.2 K), NbTi (9.8 K), Nb3Sn (18.3 K), MgB2 (39 K), YBCO (92 K), BSCCO (110 K), H2S (203 K at ~155 GPa — pressure caveat in the data).
  • Critical surface — Bc2(T) = Bc2(0)(1 − t²), Jc(T,B) = Jc0(1 − t)^1.5(1 − B/Bc2(T)); the state function names the wall you crossed (Tc, Bc2, or Jc). Resistance is exactly zero inside, normal-state outside.
  • Meissner effect — London screening B = B0·exp(−x/λ) with λ(T) = λ0/√(1 − (T/Tc)⁴), diverging at Tc.
  • Type I vs Type II — complete expulsion vs the vortex (mixed) state between Bc1 and Bc2; pinning force density Fp = Jc × B peaks at Bc2/2 and converts to levitation pressure — the bridge to LevitationX.
  • BCS gap — Δ(0) = 1.764 kB·Tc (Nb ≈ 1.40 meV, YBCO ≈ 13.98 meV), universal ratio 3.528, tanh Δ(T) interpolation.
  • Cryogenics economics — Carnot COP and wall-plug cost: ~70 ideal W/W at 4.2 K vs ~2.9 at 77 K (≈24×), practical row at a labelled 20% of Carnot; coolant picker per operating point.
  • Applications mapper — MRI magnet → NbTi; LN2 maglev bearing → YBCO / BSCCO only; fusion-class field → Nb3Sn, not NbTi; 20 K cryocooler instrument → MgB2.
  • TinyML kNN classifier — labels operating points qualifies / marginal / no from critical-surface ratios.
  • Advisory seats — Gemini Carbon 4 DECIDER (names-only, tighten-only, sha256 trace), Muse advisor (can never override HOLD), Google Flow plan-only (rendered = False, live = 0).

⁠✅ Verified

  • pytest: 71 passed
  • Built-in checks: CHECKS 54/54
  • Deterministic: double-run byte-identical
  • Base image: python:3.12-slim

⁠🏷️ Categories

Science · Developer tools · Machine learning & AI

  • License: MIT © 2026 Darion Kellar
  • Image: credkellar/superconductor-lab:latest
Tag summary
Recent tags
Content type
Image
Digest
sha256:4f8540238…
Size
45.4 MB
Last updated
17 days ago
docker pull credkellar/superconductor-lab:latest