%pylab inline
from ipywidgets import *
from IPython.display import display
from em_examples.Reflection import PowerReflection
Populating the interactive namespace from numpy and matplotlib
Electromagnetic waves are reflected and refracted at a plane interface separating media of different electrical properties. Essential items to understand here are:
A plane wave is reflected and refracted at a plane wave interface. Here $\mathbf{k}$ is wave propagation consant, which is a vector. We consider two different modes:
Electric field ($\mathbf{E}$) is transverse to the plane of incidence (No vertical electric field).
Magnetic field ($\mathbf{H}$) is transverse to the plane of incidence (No vertical electric field).
$\sigma_1$: Conductivity of the first layer (S/m)
$\sigma_2$: Conductivity of the first layer (S/m)
$f$ (Hz): Frequency (Hz)
Type:
Q = interact(PowerReflection
, sig1 = FloatText(value=0., description="$\sigma_1$")
, sig2 = FloatText(value=1e-2, description="$\sigma_2$")
, f = FloatText(value=6e5, description="$f$ (Hz)")
, Type = ToggleButtons(options=["Reflection", "Transmission", "Angle"])
)