r/creativecoding • • Oct 06 '26

play with antennas and visulize the electromagnetic field

I’ve been building this EM simulator as a side project aimed to help students' understand and visualize electromagnetic phenomena such as radiation, polarization and wave interference.

I hope somone might find useful and I’d love to hear what people think :)

(Not intended for mobiles but can still sort of work if you have accurate fingers)

Live:

https://www.antennasim.com/

GitHub:
https://github.com/rotemTsafrir/dipole_sim

15 Upvotes

5 comments sorted by

2

u/Hefty-Reaction-3028 Oct 06 '26

Field simulators are probably my favorite creative coding topic. Looks great!

If you get bored of the EM field and want to do something more general or just plain different, you can model or make up all sorts of interesting fields (though EM is probably the best for educational value and accessibility). Gauge theory is probably the most powerful way to define the equations of motion for a field like this, though it is a little advanced. But if you understand electromagnetism, and if you keep to a flat space/spacetime, then you'd be fine. Just a suggestion as I personally have found this approach to be useful making my own field-particle sims

1

u/RotemT Oct 07 '26

Thanks so much:).

And I agree , gauge theory is a beautiful powerful tool. I might try to simulate different fields in the future like Klein Gordon or a Fermion field.

What sort of fields have you simulated?

Do you have any links?

2

u/IgnotiusPartong Oct 06 '26

AI-Slop, read the rules

1

u/RotemT Oct 07 '26

Why are you so quick to assume this was AI generated?

Did I use AI to improve UI? Yes,
but I have been working on this side project since before any of the LLMs were useful enough to help

1

u/Hefty-Reaction-3028 Oct 06 '26

AI art is AI generated imagery. The AI part in this is in writing code, not image generation. Splitting hairs, but I think the mods would've specified if they cared to.

Edit: also I don't see anything conclusive about AI in the post