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

Unit correction #46

Closed QizhouW closed 2 years ago

QizhouW commented 2 years ago

I found this issue in the doc. 'A grid_spacing can be given. For stability reasons, it is recommended to choose a grid spacing that is at least 10 times smaller than the smallest wavelength in the grid. This means that for a grid containing a source with wavelength 1550nm and a material with refractive index of 3.1, the recommended minimum grid_spacing turns out to be 50pm'

This 50 pm seems to be wrong, instead, it should be 50 nm.

flaport commented 2 years ago

Thanks for catching that one @QizhouW. It should now be fixed.