flaport / fdtd

A 3D electromagnetic FDTD simulator written in Python with optional GPU support
https://fdtd.readthedocs.io
MIT License
454 stars 116 forks source link

Polarization support for PlaneSource #40

Closed AaronParsons closed 2 years ago

AaronParsons commented 2 years ago

Changed PlaneSource to support polarization, to excite both E and H components, and to have a uniform (not Gaussian) amplitude.

AaronParsons commented 2 years ago

This should resolve #26. It also addresses the fact that the previous version, which did not excite H, had a null in the center of the wave.

flaport commented 2 years ago

Thanks @AaronParsons, looks good to me. Also much appreciated you added tests for this!