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

  • pageflight@piefed.social
    link
    fedilink
    English
    arrow-up
    3
    ·
    22 days ago

    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
    • RotemT@lemmus.orgOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      22 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)

    • LH0ezVT@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      14 days ago

      Get the ARRL antenna handbook, or, if you happen to speak German, Rothammels Antennenbuch. If you are in another country with an active ham scene, there is probably a local equivalent.

      I heard that you can find illegal copies of those books online, so watch out, you don’t want to accidentally commit a crime, do you? ;)

      But no, seriously, if you find a good antenna book at a thrift store or flea market, get it. I wouldn’t recommend it new, since they tend to be pretty expensive, unless you have more than enough money and want something nice and shiny on your drawer.

      • pageflight@piefed.social
        link
        fedilink
        English
        arrow-up
        1
        ·
        14 days ago

        Yeah, I got Les Moxon’s HF Antennas For All Locations, but despite saying it’s not much math in the intro it’s a lot of dense theory and not very clearly organized. I should get the classic!

        • LH0ezVT@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          14 days ago

          I mean… there are books about the math, which teach you the methods and theoretical basics, and there are books about the practical application that don’t really go into the math, but list empirical information about antennas. Both have value.