All MicroEvals
Electrodynamics animations with p5.js
Create MicroEval
Header image for Electrodynamics animations with p5.js

Electrodynamics animations with p5.js

Prompt

Create a p5.js animation visualizing electromagnetic wave propagation inside a rectangular waveguide. Show the transverse electric and magnetic field vectors (TE or TM mode) evolving in space and time, with accurate phase relationships between E and H fields. Include mode indicators (e.g., TE₁₀) and allow the user to toggle between field components or modes. The visualization should prioritize physical correctness over decoration.

A system prompt was added to support web rendering