From 70e4ff967388cb27185f1dca9ef002009b06500a Mon Sep 17 00:00:00 2001 From: torbjornstoro Date: Thu, 24 Feb 2022 10:48:14 +0100 Subject: [PATCH] Final minor fixes --- nidn/fdtd_integration/init_fdtd.py | 1 - nidn/utils/global_constants.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/nidn/fdtd_integration/init_fdtd.py b/nidn/fdtd_integration/init_fdtd.py index 873a437..506c8d9 100644 --- a/nidn/fdtd_integration/init_fdtd.py +++ b/nidn/fdtd_integration/init_fdtd.py @@ -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 diff --git a/nidn/utils/global_constants.py b/nidn/utils/global_constants.py index 5885ea8..45b9e1a 100644 --- a/nidn/utils/global_constants.py +++ b/nidn/utils/global_constants.py @@ -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) @@ -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