Simulating the wigglyness of a compass pin

  • Context: Undergrad 
  • Thread starter Thread starter WilliamB96
  • Start date Start date
  • Tags Tags
    Compass Pin
Click For Summary
SUMMARY

The discussion focuses on simulating the natural wiggling motion of a compass pin using a bar magnet and compass simulation. The user is considering two primary approaches: modeling the motion as a damped spring or as a pendulum, with the equilibrium position aligned to magnetic north. The simulation is hosted at a provided Dropbox link, showcasing the user's progress. The community is invited to share insights on the most effective method for achieving realistic compass behavior.

PREREQUISITES
  • Understanding of basic physics concepts such as damping and equilibrium.
  • Familiarity with simulation techniques in programming.
  • Knowledge of HTML5 and JavaScript for web-based simulations.
  • Experience with vector mathematics for simulating compass behavior.
NEXT STEPS
  • Research "damped harmonic motion" to understand the physics behind damping effects.
  • Explore "pendulum motion simulation" techniques for implementing realistic oscillations.
  • Learn about "HTML5 canvas animations" for rendering dynamic simulations in web applications.
  • Investigate "magnetic field visualization" to enhance the realism of the compass simulation.
USEFUL FOR

This discussion is beneficial for physics enthusiasts, web developers creating simulations, and educators looking to demonstrate magnetic principles through interactive models.

WilliamB96
Messages
2
Reaction score
0
Hey guys :)
I'm working on a little bar magnet and compass simulation.
You can see my progress here: https://dl.dropboxusercontent.com/u/47501509/fysik/kompasser-och-magnet/index.html

As the title states I want to make the compasses wiggle a bit like a compass would do naturally.

What approach do you think I should take?
 
Last edited by a moderator:
Physics news on Phys.org
Simulate it like a damped spring or pendulum with the equilibrium position being magnetic north.
 
Looking into that, thanks!
 

Similar threads

  • · Replies 42 ·
2
Replies
42
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 56 ·
2
Replies
56
Views
11K
  • · Replies 43 ·
2
Replies
43
Views
7K
  • · Replies 40 ·
2
Replies
40
Views
5K
  • · Replies 9 ·
Replies
9
Views
5K
Replies
3
Views
4K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K