FEATool Multiphysics
v1.16.5
Finite Element Analysis Toolbox

Simulation of a wave guide interface with two different materials. The changing diffraction pattern of planar time harmonic waves is investigated using the Helmholtz equation
\[ ( \frac{\partial^2 A}{\partial x^2} + \frac{\partial^2 A}{\partial y^2} )  k^2 A = 0 \]
This model is available as an automated tutorial by selecting Model Examples and Tutorials... > Electromagnetics > Two Material Wave Guide Interface from the File menu. Or alternatively, follow the stepbystep instructions below.
Enter A
into the Dependent Variable Names edit field.
The geometry consists of two rectangles for the different materials.
0.12
into the x_{min} edit field.0
into the x_{max} edit field.0.01
into the y_{min} edit field.0.01
into the y_{max} edit field.0.12 0
into the Space separated string of displacement lengths edit field.Enter the Helmholtz equation in the Edit Equations dialog box.
(Ax_x + Ay_y)  k^2*A_t = 0
into the Equation for A edit field.Name  Expression 

c  3e9 
f  1e11 
sfac  2 1 
k  sfac*2*pi*f/c 
Set homogenous Dirichlet conditions A = 0 for the absorbing walls.
An incoming planar wave is featured at the inlet with the complex boundary condition n·∇(A) + k·i·A = 2·k·i which can be implemented as a Neumann boundary condition.
k*i*A + 2*k*i
into the Dirichlet/Neumann coefficient edit field.The outlet is assumed nonreflective and n·∇(A) + k·i·A = 0.
k*i*A
into the Dirichlet/Neumann coefficient edit field.After the problem has been solved FEATool will automatically switch to Postprocessing mode and show real part of the computed amplitude of the electric field. One can clearly see how the wave and frequency changes in the second material.
The two material wave guide interface electromagnetics model has now been completed and can be saved as a binary (.fea) model file, or exported as a programmable MATLAB mscript text file, or GUI script (.fes) file.