<jupyter_start><jupyter_text>Reflection and Refraction of plane waves  PurposeElectromagnetic waves are reflected and refracted at a plane interface separating media of different electrical properties. Essential items to understand here are:- What are TE and TM modes for reflection, and refraction- How reflection and refraction changes due to incidient angle and electrical parameters- Total reflection- Brewster angle  Set upA 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:- Transverse electric (TE): No vertical electric field - Transverse magnetic (TM): No vertical magnetic field   TE modeElectric field ($\mathbf{E}$) is transverse to the plane of incidence (No vertical electric field).   TM modeMagnetic field ($\mathbf{H}$) is transverse to the plane of incidence (No vertical electric field).   Reflection and Transmision app Parameters- $\sigma_1$: Conductivity of the first layer (S/m)- $\sigma_2$: Conductivity of the first layer (S/m)- $f$ (Hz): Frequency (Hz)- Type:     - Reflection: Transmission power as a function of incident angle        - Transmission: Transmission power as a function of incident angle        - Angle: relationship between $\theta_i$ and $\theta_t$<jupyter_code>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"])
        )<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09008464328899637, 'fraction_numerical': 0.006650544135429262, 'mean_word_length': 4.516666666666667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '167242', 'license': 'MIT', 'n_tokens_mistral': 430, 'n_tokens_neox': 409, 'n_words': 190, 'path': 'notebooks/em/FDEM_Planewave_Reflection.ipynb', 'repo_name': 'jcapriot/geosci-labs', 'size': '1654'}