.. _theories_em:

Electromagnetic Simulation
===================================

This contains background theory that is needed to understand how Meent works.

.. toctree::
   :maxdepth: 3
   :caption: Rigorous Coupled Wave Analysis

   geometry
   fourier_analysis
   eigenmodes
   connecting_layers
   enhanced_tmm

RCWA is the sequence of the following processes: solving the Maxwell's equations, finding the eigenmodes of a layer
and connecting these layers including the superstrate and substrate to calculate
the diffraction efficiencies.

Precisely, the electromagnetic field and permittivity geometry are transformed
from the real space to the Fourier space (also called the reciprocal space or k-space)
by Fourier analysis. Maxwell's equations are then solved per layer through convolution
operation, and a general solution of the field in each direction can be obtained.

This general solution can be represented in terms of eigenmodes (eigenvectors)
and eigenvalues with eigendecomposition, and used to calculate diffraction efficiencies
by applying boundary conditions and connecting to adjacent layers.
