a website to help students visualize the electromagnetic field

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

You can:

  • place multiple, diffrent radiation sources and set their parameters (geometery, amplitude, phase and more)
  • place perefect wire conductors, PEC plane and poke slots in the plane to create diffraction patterns
  • observe the electric field, magnetic field, energy flow field, energy density or radiation pattern
  • zoom in and out and translate the canvas
  • change the simulation resolution, frequency and propogation speed and some other parameters

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

What do you think I should add?

Live:
https://www.antennasim.com/

GitHub:

https://github.com/rotemTsafrir/antenna_sim

all 2 comments

sorted by: hot top controversial new old
[–] 3 points 3 days ago (1 child)

Oo, cool!

I don't know enough to edit and make more antennas. But suggestions for more defaults / things I have questions about:

  • Moxon antenna
  • Slim Jim antenna
  • Dipole with ends draped down, folded; inverted V, etc — if there were an easy way to bend the antennas that'd be fun
  • Different materials nearby: chunk of metal, your head, ground plane at different heights
  • Vertical with and without ground radials
  • source
  • hideshow 1 child comment
  • [–] [S] 2 points 3 days ago

    Thanks!

    I really should add folded dipole, moxon and slim Jim antennas. That shouldn’t be too complicated (under thin pec wire approx)

    Adding ground plane at different heights is also a great idea that would not be difficult to add.

    About adding different materials, I am not sure what’s the best way to let the user set their geometry without turning this into a full 3D engine. (I might in the future)

  • source
  • parent
  • 4 comments in c/science@lemmy.world view that post
    [–] 1 point 3 days ago (3 children)

    very cool. it was immediately educational.

    a couple notes:

    • it barely runs on my new phone so perhaps some compromises for mobile would be best.
    • still working on absorptive materials besides PEC plane? where are the things that would cast a radiation shadow?
  • source
  • hideshow 3 child comments
  • [–] [S] 2 points 3 days ago (2 children)

    Thanks!

    Well that’s disappointing, i really tried optimizing it and it worked well on the few devices I tested (I have an iPhone 13 Pro that handles it well). I will see what I can do to make it more smooth.

    And yes I am working on adding different kind of pec obstacles, dialectic materials and ohmic conductive materials.

    The challenge is to keep the solver cheap while preserving reasonable accuracy.

    May I ask what phone do you have ?

    Thanks for the feedback:)

  • source
  • parent
  • hideshow 2 child comments
  • 2 comments in c/coolwebsites@lemmy.ca view that post
    [–] 2 points 3 days ago (1 child)
  • 1 comment in c/engineering@sh.itjust.works view that post
    [–] 4 points 3 days ago

    electromagnetits

  • source
  • 1 comment in c/pareidolia@sh.itjust.works view that post
    [–] 6 points 3 days ago

    Looks a lot like an owl.

    Image

  • source