Download ZR-03-38

Transcript
= 1; sets the damping factor σ = 1 in (6.6). More details on how to set the
algorithmic parameters are provided in Section 5.2. For a brief introduction to
PML see Chapter 6.
In the following lines different features are chosen to be plotted during the
program execution. Contour lines can only be plotted if the Matlab PDE toolbox
is available. Some more lines follow in the problem description file which should
not edited by the user and which are not described here.
Real part
Absolute value
1.5
6
1
4
6
1.4
4
1.2
1
2
0.5
2
0
0
0
−2
−0.5
0.8
0.6
−2
0.4
−4
−1
−6
−4
0.2
−6
−1.5
−6
−4
−2
0
2
4
6
−6
−4
−2
0
2
4
6
Figure 3.4: Real part and absolute value of the exact solution to problem Waveguide.m.
3.3
Running the program
Now we are ready to start the program by typing
main(’Waveguide’)
at the matlab prompt.
During the run, a number of windows opens to show some information to
the user: The first opening window is shown in Fig. 3.1 The left part of this
figure shows the geometrical description of the problem. The interior domain is
triangulated, and the PML layer is divided into stripes, bordered by outgoing
arrows. Obviously the exterior domain is not well resolved at the corners by the
normal rays. A refinement of the interior domain would not improve that. The
right part of the picture shows the distribution of the material refractive index
in the interior domain.
The other opening windows show properties of the solution of the waveguide
problem: Figure 3.2 shows the distribution of the incoming light field along the
left boundary. Figure 3.3 shows the real part and the absolute value of the
11