Skip to content

Commit

Permalink
Final minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
torbjornstoro committed Feb 24, 2022
1 parent 1fd924b commit 70e4ff9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion nidn/fdtd_integration/init_fdtd.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from dotmap import DotMap
import fdtd
from scipy.fft import set_backend

from ..utils.global_constants import EPS_0, SPEED_OF_LIGHT, UNIT_MAGNITUDE
from .constants import FDTD_GRID_SCALE
Expand Down
4 changes: 2 additions & 2 deletions nidn/utils/global_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
E_CHARGE = 1.602176634 * 10 ** (-19)
# Mass of electron
M_E = 9.1093837015 * 10 ** (-31)
# Free space permittivity
# Vacuum permittivity
EPS_0 = torch.tensor(8.8541878128 * 10 ** (-12))
# There is no torch.pi so we define it here
PI = torch.tensor(3.14159265358979323846264338327950288)
Expand All @@ -14,5 +14,5 @@
UNIT_MAGNITUDE = 10 ** (-6)
# Vacuum permeability
MU_0: float = 4e-7 * PI
# Free space impedance
# Vacuum impedance
ETA_0: float = MU_0 * SPEED_OF_LIGHT

0 comments on commit 70e4ff9

Please sign in to comment.