Computational electromagnetics

From Medusa: Coordinate Free Mehless Method implementation
Revision as of 02:59, 10 August 2020 by BlazS (talk | contribs)

Jump to: navigation, search

Case studies

The following pages describe the basics of computational electromagnetics, starting with relevant derivations and the basics of classical electromagnetism. The subpages include case studies with analytical solutions if they exist and numerical solutions.

Classical electromagnetism

Maxwell's equations in matter

Classical electrodynamics is historically one of the most eminent fields of physics as an extension of classical mechanics, it is very successful in explaining a plethora of phenomena. The dynamics of electric and magnetic fields are described with Maxwell's equations. As we will be studying the interaction of electromagnetic waves with different objects, we need Maxwell's equations in matter \( \newcommand{\dpar}[2]{\frac{\partial #1}{\partial #2}} \begin{align} &\nabla \times \b{E}(\b{r}, t) = - \dpar{\b{B}(\b{r}, t)}{t}, \label{eq:TFaraday} \\ &\nabla \times \b{H}(\b{r}, t) = \b{j}(\b{r}, t) + \dpar{\b{D}(\b{r}, t)}{t}, \label{eq:TMaxwell-Ampere} \\ &\nabla \cdot \b{D}(\b{r}, t) = \rho(\b{r}, t), \label{eq:TGaussE} \\ &\nabla \cdot \b{B}(\b{r}, t) = 0. \label{eq:TGaussM} \end{align} \)

The system of equations contains four fields. The electric field strength $\b E$ and density $\b D$ and the magnetic field strength $\b H$ and density $\b B$. The four fields are accompanied by the current density $\b j$ and the charge density $\rho$. For a full description of electromagnetic phenomena, we need to provide another two constitutive equations, that relate the strength and density of the fields \( \newcommand{\eps}{\varepsilon} \begin{align} \b{B} &= \mu_0 \mu \b{H}, \label{eq:constM} \\ \b{D} &= \eps_0 \eps \b{E} \label{eq:constE} \end{align} \) where $\varepsilon_0$ and $\mu_0$ are vacuum permittivity and permeability respectively. The dielectric function $\varepsilon$ and magnetic permeability $\mu$ are in general dependant on both $\b E$ and $\b B$ as well as the frequency $\omega$ and can be second order tensors in anisotropic materials. Equations \eqref{eq:constM} and \eqref{eq:constE} already assume linear material properties, generally the polarisation $\b P$ and magnetisation are defined as power series expansions of the electric field density and magnetic field density, as \( \begin{align} \label{eq:PMexpans} \b{P} &= \chi_E \b{D} + \mathcal{O}(D^2), \\ \b{M} &= \chi_M \b{H} + \mathcal{O}(H^2). \end{align} \) The material linearity assumption holds well for small external fields, meaning small $\b D$ and $\b H$. The treatment of nonlinear terms falls within the field of nonlinear optics and is not relevant for our discussion here.

Electromagnetic waves

\( \def\doubleunderline#1{\underline{\underline{#1}}} \newcommand{\dpar}[2]{\frac{\partial #1}{\partial #2}} \newcommand{\ddpar}[2]{\frac{\partial^2 #1}{\partial #2^2}} \newcommand{\eps}{\varepsilon} \) When studying light and related phenomena, we are usually interested in the behavior of electromagnetic waves, where the electric and magnetic fields oscillate with constant frequency and propagate in a single direction. The wave formulation helps with understanding optical phenomena such as diffraction and reflection and offers easily graspable quantities such as wave amplitude and wavelength. Wave equations for $\b E$ and $\b H$ can be derived from Maxwell's equations for linear and homogeneous materials. Let's start by treating a more general case, where $\doubleunderline \varepsilon$ is a constant second-order tensor and $\mu$ is a scalar quantity. From Maxwell's equations and constitutive relations we obtain \begin{equation} \nabla \times \left[ \doubleunderline{\varepsilon}^{-1} \nabla \times \b{H} \right] = \nabla \times \left[ \doubleunderline{\varepsilon}^{-1} \b j \right] - \mu \mu_0 \varepsilon_0 \ddpar{\b H}{t}. \end{equation} and \begin{equation} \nabla \times \nabla \times \b{E} = \nabla (\nabla \cdot \b E) - \nabla^2 \b E = -\mu\mu_0\dpar{\b j}{t} - \eps_0 \doubleunderline{\varepsilon} \mu \mu_0 \ddpar{\b E}{t} \end{equation} which simplify to wave equations for homogenous (linear) materials and no external currents and charges \begin{equation} \nabla^2 \b E = \eps\eps_0\mu\mu_0\ddpar{\b E}{t}, \qquad \text{ or } \qquad \nabla^2 \b H = \eps\eps_0\mu\mu_0\ddpar{\b H}{t}. \end{equation} One possible way of solving electromagnetic problems is simply to solve the above wave equations numerically. Another approach is to solve Maxwell's equations in the frequency domain. We start by Fourier expansion of the fields $\b E$, $\b D$, $\b B$ and $\b H$ analogous to \begin{equation} \label{eq:Fdecomp} \b{E}(\b{r}, t) = \int\frac{d\omega}{2\pi} \b{E}(\b{r}, \omega) e^{-i\omega t}, \end{equation} in the frequency domainall the fields become complex. The ratio between the real and complex component of the fields is the phase difference of the material response to external fields. The Fourier expansion leads to the harmonic form of Maxwell's equations \begin{equation} \label{eq:FFaraday} \nabla \times \b{E}(\b{r}, \omega) = - i\omega \b{B} (\b{r}, \omega), \end{equation} \begin{equation} \label{eq:FMaxwell-Ampere} \nabla \times \b{H}(\b{r}, \omega) = i\omega \b{D}(\b{r}, \omega). \end{equation} The constitutive relations are unchanged. If we assume that there are currents we obtain a wave equation for either $\b D$ or $\b H$, \begin{equation} \label{eq:frekaniwave} \nabla \times \left[ \doubleunderline{\eps}^{-1} \nabla \times \b{H} \right] = \omega^2 \mu_0 \eps_0 \mu \b{H}. \end{equation} The above form allows for a calculation of a steady state response to an incident harmonic plane wave, meaning that we can study scattering of any incident wave that can be represented by a plane wave expansion. The time dependent solution is obtained by an inverse Fourier transform. In empty space \eqref{eq:frekaniwave} simplifies to the Helmholtz equation \begin{equation} \label{eq:frekemptywave} \nabla^2 \b{H} = - \omega^2 \mu_0 \eps_0 \b{H} = - k^2 \b{H}. \end{equation} Wavenumber $k$ in a vacuum is defined as $k = \omega \sqrt{\mu_0 \epsilon_0} = \frac{2 \pi}{\lambda}$.

Boundary conditions for Maxwell's equations

Frequency dependence of the dielectric function

Modelling of electromagnetic phenomena