maxwell-simulation
maxwell-simulation copied to clipboard
Interactive web-based simulator of electromagnetic waves
Hi hi, I think this is a very very veryyy interesting project, I was thinking would be great include the Lorentz Law in the list of equations, with it the...
Right now for every source we call the draw kernel once. They should be batched into a single call instead to improve performance.
Since we are using half-float textures we convert them to uint8 first which is a lossy process. Instead we could store the 2 half-float bytes in 2 uint8.
- Bloom intensity - Different visualizers for the field (eg. toggle magnetic energy, electric energy, show vector fields, ...)
Some from the reddit thread: - Resonator - Bragg reflector - Superconductors (using µ=0, eps=inf? might not work at all) - Grating mirror
For example it is possible to select a timestep that will cause the simulation to diverge and lots of other parameters that can cause this. Perhaps add some visual indication...
Doing so will require using complex-matrix-valued permittivity and permeability so introduce loss in the border depending on the direction of the wave.