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

Value of eps0, mu0 in constants.py #41

Closed AaronParsons closed 2 years ago

AaronParsons commented 2 years ago

Line 17 of constants.py assigns eps0 = 4e-7 * pi, but isn't this the value of mu0? See https://en.wikipedia.org/wiki/Vacuum_permittivity

flaport commented 2 years ago

Hi @AaronParsons ,

You are correct! I added constants.py two commits ago and I must have swapped them around when defining the file. Pretty emberassing... Luckily I had not made a new release yet.

Anyway. Closing now as the issue has been resolved. Thanks a lot for finding this!