Home▸Electromagnetism▸NdFeB Magnet: Field, Force & Thermal Demagnetization (2D)

NdFeB Magnet: Field, Force & Thermal Demagnetization (2D)

2D NdFeB permanent-magnet lab: dipole field-line rendering, an on-axis force calculation from real magnetic-dipole electrodynamics, and a temperature model with reversible Br loss plus irreversible knee-point demagnetization for N35/N42/N52 grades.

Electromagnetism2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-ndfeb-magnet ↗ Open standalone

This 2D companion swaps the original's abstract sintering-plant animation for the physics of the finished magnet itself: two NdFeB discs face each other across an adjustable air gap, and every number on screen — axial force, on-axis field strength at the gap, magnetic moment, and the split between reversible and irreversible flux loss with temperature — comes from a real magnetic-dipole force law and a grade-specific thermal model, not a scripted readout. Switch grades (N35/N42/N52), flip the facing to compare attraction against repulsion, and push the temperature past a grade's rated maximum to watch permanent demagnetization accumulate — only the "Re-magnetize" button can undo it, matching how real sintered NdFeB behaves once it crosses its knee point.

⚙ Under the hood

Force is computed from the on-axis magnetic-dipole force law F = 3μ0m1m2/(2πr⁴); field strength from B(z) = μ0m/(2πz³); remanence from a −0.12 %/°C reversible coefficient plus a grade-specific irreversible knee-point loss above the rated maximum operating temperature.

ndfeb magnetmagnetic dipoleremanencedemagnetizationmagnetic forcefield lines

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)