Skip to content

Instantly share code, notes, and snippets.

View kronbergaugust-ui's full-sized avatar

kronbergaugust-ui

  • Joined Oct 7, 2025
View GitHub Profile
@kronbergaugust-ui
kronbergaugust-ui / parallellamagneter.py
Created October 7, 2025 09:46
Parallella magneter VPython
GlowScript 3.2 VPython
# 2D magnetic field with two parallel rows, showing ferromagnet response
scene = canvas(title="Magnetic Field (Ferromagnet Response)",
width=900, height=600,
center=vector(0,0,0), background=color.white)
mu0 = 1