Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChargedParticles-Jackson #451

Merged
merged 1 commit into from May 2, 2024
Merged

ChargedParticles-Jackson #451

merged 1 commit into from May 2, 2024

Conversation

jackson-smith-a
Copy link
Contributor

@jackson-smith-a jackson-smith-a commented Apr 29, 2024

image2
image1

Hello!

I saw your project on Hacker News a while back and decided to give it a go. I don't know anything about algorithmic art OR programming in javascript, so it was an interesting challenge! I struggled to think of something interesting to draw, so I decided to think about what I do know a little bit about: physics!

I recently had the opportunity to take a physics class going over the basics of Maxwell's equations at a local community college. I was really struck by the beauty of Gauss's law, in particular, describing how the flux of electric field through any surface is directly proportional to total enclosed charge, regardless of how it's positioned. From this law follows Coulomb's law, describing the force between two charged particles.

My program takes a configuration of static charged particles and a single unbound charged particle, and draws its motion through the electric field the static particles generate.

The hardest challenge for me as figuring out a good way to draw the motion of the particle itself -- I briefly considered having a dot at intervals spaced evenly in simulated time, but I decided a single line would be prettier. I initially tried to record every 10th data point and interpolate a curve through them, which was in hindsight not a great idea. It was surprisingly slow at higher resolutions, and was really just throwing away data. I eventually came to my senses and recorded every data point into a polyline and displayed them all together, which worked quite well!

Even if I don't get accepted, I'm quite proud of my little program, and was really impressed at the pretty patterns it can make :)

Thanks for this awesome project! I doubt I would have ever explored this without it.

Copy link

vercel bot commented Apr 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
blot-3dgallery ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 29, 2024 2:43am

@leomcelroy
Copy link
Contributor

Great visualization! Thanks for the context in your PR.

You've earned your Blot. You can order it here.

@leomcelroy leomcelroy merged commit 4d79c6e into hackclub:main May 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants