FDTD Tutorial
FDTD Tutorial
FDTD Tutorial
简介
The goal of the Getting Started Guide is to introduce the Finite Difference Time Domain
(FDTD) technique and explain how modeling is done with the software.
The FDTD algorithm is useful for design and investigation in a wide variety of applications
involving the propagation of electromagnetic radiation through complicated media. It is
especially useful for describing radiation incident upon or propagating through structures
with strong scattering or diffractive properties. The available alternative computational
methods - often relying on approximate models - frequently provide inaccurate results.
FDTD Solutions is useful for numerous engineering problems of commercial interest
including:
• display technologies
• optical storage devices
• LED design
• biophotonic sensors
• plasmon polariton resonance devices
• optical waveguide devices
• photonic crystal devices
• integrated optical filters
• optical micro cavity design
FDTD Solutions is an accurate and easy to use, versatile design tool capable of treating
this wide variety of applications. This introductory chapter of the Getting Started Guide
introduces the general FDTD method and provides a basic overview of the product usage.
The final sections contain examples that are accompanied by step-by-step instructions so
that you can set up and run the simulations yourself.
1
scattering and extinction scattering
cross-sections of a
sub-wavelength particle.
Waveguide Devices Determination of the insertion loss Ring resonator design for
or return loss, and frequency channel drop filter
response of waveguide-based
components. Manufacturing
tolerances are also calculated.
Cavities and Analysis of resonant modes and Photonic crystal micro cavity
Resonators the corresponding decay constants design
for cavities and resonators.
什么是时域有限差分?
The Finite Difference Time Domain (FDTD) method has become the state-of-the-art
method for solving Maxwell’s equations in complex geometries. It is a fully vectorial
method that naturally gives both time domain, and frequency domain information to the
user, offering unique insight into all types of problems and applications in
electromagnetics and photonics.
The technique is discrete in both space and time. The electromagnetic fields and
structural materials of interest are described on a discrete mesh made up of so-called
Yee cells. Maxwell’s equations are solved discretely in time, where the time step used is
related to the mesh size through the speed of light. This technique is an exact
representation of Maxwell’s equations in the limit that the mesh cell size goes to zero.
2
Time domain information can be recorded at any spatial point (or group of points). This
data can be recorded for the duration of the simulation, or it can be recorded as a series of
"snapshots" at times specified by the user.
Frequency domain information at any spatial point (or group of points) may be obtained
through the Fourier transform of the time domain information at that point. Thus, the
frequency dependence of power flow and modal profiles may be obtained over a wide
range of frequencies from a single simulation.
In addition, results obtained in the near field using the FDTD technique may be
transformed to the far field, in applications where scattering patterns are important.
More information about the FDTD method, including references, can be found in the
Physics of the FDTD Algorithm section of the reference guide.
FDTD 的用户界面
This section discusses useful features of the FDTD Solutions Graphical User Interface
(GUI).
In this topic
Graphical User Interface: Windows and
Toolbars
Add Objects to the simulation
Edit Objects
Start a new 2D/3D simulation
3
For more information about the toolbars and windows see the Layout editor section of the
reference guide.
4
Also notice that the picture for the COMPONENTS button will change depending on what
the last component that was added to the simulation was. Finally, the ZOOM EXTENT
button in the toolbar will resize the viewports to fit all the objects currently included in
the simulation.
Edit objects
To edit an object, select the object and press E on the keyboard or press the EDIT button
on the toolbar. The easiest way to select an object is to click on the name of the
object in the objects tree. However, objects can also be selected by clicking on the
graphical depiction of them when the SELECT button is pressed. For more information
see the Layout editor section of the reference guide.
When we edit objects in FDTD, we get an edit window. The edit windows have units for
the settings; in the GEOMETRY tab, the x, y and z location will be in μm by default. The
5
模拟运行与优化
This section discusses important checks which should be made before running a
simulation (memory requirements, material fits) and gives links to more information about
running simulations and parameter sweeps or optimizations.
In this topic
Check memory requirements
Check material fits
Setup parallel options
Run simulation
Run parameter sweeps and optimizations
To check the memory requirements, press the CHECK button If this is not the
current icon, you can find it by pressing the arrow. Note that the memory report indicates
the amount of memory used by each object in the simulation project as well as the total
memory requirements. This allows for judicious choice of monitor properties in large and
extensive simulations.
Check material fits
The CHECK button also contains a material explorer option . Many of the
materials used in FDTD Simulations come from experimental data (see the materials
section of the Reference Guide for references for the material data and descriptions of the
FDTD material models). Before running a simulation, FDTD Solutions automatically
generates a multi-coefficient model fit to the material data in the wavelength range for the
source. It is a good idea to check and optimize the material fit before running a simulation.
Setup the resource configuration
Before running any simulations, the resource options must be set up. These options can
You can run simulations by pressing the RUN button on the mail toolbar. For more
details, such as how to run multiple simulations in distributed mode, please see the Run
6
Simulations section in the online User Guide, or the Running simulations and analysis
section of the Reference Guide.
Run parameter sweeps and Optimizations
FDTD Solutions also has a built in parameter sweep and optimization window. This
window can be seen at the top of the page, and can be opened using the instructions in
the Graphical User Interface discussion just prior to this topic.Optimization Window
includes buttons to add a parameter sweep and add an optimization. Parameter sweeps
and optimizations can include multiple parameters, or be nested. Each optimization or
sweep can be run by pressing the right-most button.
仿真数据分析
This section discusses the tools used to analyze simulation data: the Analysis Window,
the script environment and data export to third party software such as MATLAB. For
more details please see the Analysis tools and the Scripting language chapters in the
Reference Guide.
In this topic
Analysis window
Scripting
Data export
Analysis window
The screen shot below shows the open analysis window. The analysis window can be
used to plot monitor data.
7
A variety of monitor data can be plotted via the Analysis window, depending on the
monitor type. Spatial refractive index data, field vs time, field vs frequency, fields vs spatial
dimensions, and power transmission vs frequency are a few examples. The terminology
'Intensity' indicates a squared quantity. For example, 'E intensity' means |E|^2. 'Ex
intensity' means |Ex|^2. Field data from frequency monitors is always plotted as an
Intensity. If you want to see the real or imaginary parts of the field, or if you want to obtain
phase information, the scripting language will be required.
Scripting
FDTD Solutions contains a built in scripting language which can be used to obtain
simulation data, and do plotting or post-processing of data. The script prompt can be used
to execute a few commands, or the built in script file editor can be used to create more
complex scripts.
A thorough introduction to the Lumerical scripting language can be found in the Scripting
section of the FDTD Solutions online user guide. Definitions for all of the script commands
are given in the Scripting language chapter in the Reference Guide.
Data Export
FDTD simulation data can be exported into text file format using the analysis window, into
a Lumerical data file format (*.ldf) which can be loaded into another simulation, or into a
Matlab data (*.mat) file. Instructions for exporting to these file formats can be found in the
links under the Scripting section.
银质纳米线谐振腔散射教程
问题综述
当光波入射到金属纳米粒子上时,光与金属表面附近的电荷密度相互作用产生的表面等离子
体极化 surface plasmon polaritons 扮演着重要角色。 本例研究的是一个直径为 50 nm
的银纳米线,我们来确定表面等离子体极化谐振并计算在这个谐振附近作为波长函数的吸
收、散射和消光截面积。
8
相关文件
建议读者先下载相关文件。这些文件可以从
Lumerical 的在线帮助网页上得到,也可以
在 FDTD Solutions 的安装目录里找到。这
些 fsp 文件含有设计参数和模拟运算的所有
信息,因此你可以快速地浏览,而不需要重
新输入每一个参数。 lsf 文件就是用于高级
分析的文本程序。
nanowire.fsp
plotcs.lsf,
nanowire_theory.csv
In this topic
Simulation set up
Results
Modeling instructions
See also
Online Help -> Surface Plasmons
问题综述:更多细节
散射截面积被定义为
,
这里 Pscat 是总散射功率[W],I 是入射强度[W/m2]。在二维情况下,功率通常以 [W/m] 描
inc
述,因此,散射截面积 σ 具有长度单位。把散射区的四个功率监视器的功率相加即得到总
scat
散射功率。
类似地,吸收截面积定义为
,
这里 Pabs 是由纳米线吸收的总功率。其吸收可以通过计算流入四个位于全场区的监视器的
功率来计算。
消光截面积是吸收和散射截面积的总和:
结果及讨论
9
关于建模
建模完成后就可以看到如下的图形(纳米线是模拟中心的圆形)。围绕纳米线的两个黄色框
是监示器,在两个监视器之间的灰线形成的第三个框显示 TFSF 光源的范围。
TFSF 光源是平面波,光源的传播方向 (k vector)显示为紫红色箭头而电场的偏振方向 (E
field vector)由蓝色的双箭头表示。此光源把模拟区分为两个:内部区是全场,包含入射的
平面波和粒子的散射场;外部区只计算散射场 (从光源之外的全场中减去入射的平面波)。
您可以在用户指南中光源的部分找到更多关于 TFSF 光源的介绍。
由于我们使用的光源是 TFSF 光源,纳米线的散射功率可以从流出光源外 (散射场部区)
的监视器的透射率算出。纳米线吸收功率可以通过流入四个位于全场区的监视器的功率来计
算。
10
我们可以从以上图中看出该材料的数据和背景折射率(1)是同一量级。同时,我们也能够
使用比 1nm 还小的网格尺寸。因此,我们可以从 mesh refinement option 里选择
“conformal variant 1“ 来充分利用共形计算的功能。请注意 “conformal variant 1“ 通常只适
合在低折射率对比的情况下使用,并不一定适合所有的金属材料(缺省的共形算法 default
conformal mesh 在当界面有金属材料和 PEC 时会还原成 staircase 算法)。请参考
Mesh refinement and Conformal mesh 的详细内容。
请注意此页第一图中的黄十字形时域监视器。时域监视器在 FDTD 模拟中通常是用来检查
场衰减现像。若电磁场没有衰减到适当程度,模拟结果可能会受影响。 FDTD Solutions 缺
省设置的模拟时间是 1000fs,而模拟会在场衰减到小于用户定义的电场强度时自动结束。
以下图中 Ex 在 32fs 自动结束之前已几乎下降到零。
仿真结果
纳米线的散射,吸收和消光截面积可以从理论上求出,我们已将解析计算的结果存在数据文
件 “nanowire_theory.csv“ 里,可以在第一页找到。
左下图显示的 FDTD Solutions 和解析计算的吸收,散射和消光截面积。很明显,它们非
常一致。右下图显示同样的 FDTD 的计算结果,但解析结果是半径为 24 和 26 纳米。因
11
为模拟计算的网格用的是 1 纳米,有理由期望的 FDTD 的结果在此范围内。正如图中所
示,事实的确如此。
建模说明
此页面包含二个独立的章节。模拟可以从新的二维模拟从新建设(从模型建立章节开始),
或下载相关文件,从第二章节开始。
In this topic
Set up model
Run simulation, plot cross sections
Plot near field data
模型建立
12
name nanowire
Geometry x (nm) 0
y (nm) 0
radius (nm) 25
Geometry x (nm) 0
y (nm) 0
General dx (nm) 1
dy (nm) 1
Geometry x (nm) 0
y (nm) 0
13
的参数来设置光源:
Geometry x (nm) 0
y (nm) 0
name scat
y (nm) 0
name total
y (nm) 0
width (nm) 90
14
tab property value
name time
Geometry x (nm) 28
y (nm) 26
仿真运行, 截面积绘图
• 点击 RUN 按钮 运行模拟。
切换到分析 (ANALYSIS) 窗口 (请参考以下说明 Introduction section of the Getting
• Started examples)。
• 绘制时域监视器数据。按照下面的参数来设置分析窗口, 并点击 PLOT。
property value
Component Ex
15
按下 MONITORS 按钮上的箭头并从下拉菜单中选择 FREQUENCY DOMAIN FIELD
• PROFILE。 按照下面的参数来设置监视器:
name profile
frequency points 1
x (nm) 0
y (nm) 0
x span (nm) 90
y span (nm) 90
• 点击 RUN 按钮运行模拟。
• 一旦模拟已运行完毕,绘制场分布: 切换到分析窗口,输入以下设置,按 PLOT。
property value
Component Ey
环形谐振腔教程
问题综述
本例中的环行谐振腔滤波器设计由两个高折射率波导(一个“贯通”通道和一个“下拉”通道)
和一个环形谐振腔组成。当入射波导光源经过环时,一部分的光会耦合入环中。该模式将在
环里循环, 产生电磁波干涉。由于这种干涉非常容易受波长影响,因此这是个很好的滤波器。
光在某些波长上会毫无影响的通过贯通通道,在某些波长上会被转到下拉通道。 在这个例
子中,波导和谐振腔均为 200 纳米宽,折射率为 2.915,包层折射率为 1.0。
16
我们从一个特殊的系统结构开始。首先要检查稳态的场分布以获得环形谐振腔工作原理的直
观印象,然后再进行一系列仿真计算以确定环形谐振腔的折射率是多少时谐振频率才能调谐
到 193.1THz (光通信中 C--波段的中心波长),且此波长信息被下拉 (drop)而不是全
部通过 (through) 。
相关文件
建议读者先下载相关文件。这些文件可以从
Lumerical 的在线帮助网页上得到,也可以
在 FDTD Solutions 的安装目录里找到。这
些 fsp 文件含有设计参数和模拟运算的所有
信息,因此你可以快速地浏览,而不需要重
新输入每一个参数。 lsf 文件就是用于高级
分析的文本程序。
ring.fsp
In this topic
Simulation set up
Results
2D Approximation to 3D Geometries
Modeling Instructions
See also
FDTD Solutions Online User Guide ->
Monitors and Analysis Groups -> Making a
cw movie
结果及讨论
仿真建模
FDTD Solutions 含有“模式“光源(集成模式求解器)可以使我们在感兴趣的波长上计算结
构的导模,并选择所需要的模式作光源。
在左下图中,导模的入射平面显示为垂直灰线,而传播方向显示为紫红色箭头。右下图是导
模的电场强度分布(彩色的背景显示结构的折射率)。注意模式光源的轮廓应该足够宽,不
能随意截断。由右下图所示,在注入区的边缘,模式的强度几乎为零。同样的,模拟区域周
围的 PML 吸收边界不能太接近结构,不然会截断导模。
17
当合适波长的光被耦合到环中时,它会因相加干涉而强度增加,然后耦合出下拉通道。因此,
模拟时间必须足够,以便让光通过波导 (5.45 µm) 并在环内循环大约十几次(如 14 次,
18
注意传输功率和场分布是用不同的监视器得到的,传输功率是由 "frequency domain field
and power" 监视器得到; 而场分部是由 "frequency domain field profile monitor" 得到。这
两种监视器虽然非常接近(而且通常都会得到几乎相同的结果),但 power monitor 能收集较
高精度的功率流信息,而 profile monitor 能给出准确的场分布数据。
近似三维几何的二维模拟
本节讨论为什么我们使用的是 2.915 的折射率。
三维模拟比二维模拟需要更多的时间和内存。在很多情况下我们可以用简单的模型来捕捉三
维特性,因此达到更高效的计算。集成光学设计人员常用的一种方式是 effective index
approximation (有效折射率)
我们在这个例子上使用的有效折射率是 2.915,这是三维的 SOI (硅厚度为 245 纳米)
结构的有效折射率近似值。在下图中,我们使用一个简单的 FDTD 模式源取得限制在 245
纳米厚的硅板中的模式(硅板在左下图中显示为红色)。由右下图所示,这模式的有效折射
率是 neff = 2.915。因此,我们将这二维环行谐振腔滤波器的折射率设置为 2.915 来模拟
厚度为 245 纳米的三维 SOI 环行谐振腔滤波器。
19
建模说明
此页面包含四个独立的章节。模拟可以从新的二维模拟从新建设(从模型建立部分开始),
或下载相关文件,从第二章节开始。最后三章节描述如何运行仿真,模拟结果绘图 (如场分
布和透射光谱),并运行参数扫描。
In this topic
Object setup
Run simulation, plot time monitor and transmission data
Plot field profile
Sweep inner ring radius
模型建立
结构
Geometry x (μm) 0
y (μm) 0
按下结构按钮上的箭头,并从下拉菜单中选择 RECTANGLE。按照下面的参数来设置此
• 方形的特性:
20
tab property value
Geometry x (μm) 0
y (μm) 2.6
x span (μm) 10
Geometry x (μm) 0
y (μm) 0
光源
y (μm) 2.725
y span (μm) 3
21
SELECT MODE 按钮,等待模式计算结束。注意列表中的第一个模式是有被强调,点击
选择模式按钮选取这模式。
监视器
name power
x (μm) 0
y (μm) 0
y span (μm) 2
name drop
y (μm) -2.6
22
OBJECT TREE 中的分析组下,并用 MOVE RIGHT 按钮将其添加到分析组。
name time_drop
y (μm) -2.6
• 点击 RUN 按钮 运行模拟。
切换到分析 (ANALYSIS) 窗口 (请参考以下说明 Introduction section of the Getting
• Started examples)。
• 绘制时域监视器的 Ez。按照下面的参数来设置分析窗口, 并点击 PLOT。
property value
Component Ez
property value
Convert frequency to
wavelength
场分布绘图
23
PROFILE。 按照下面的参数来设置监视器:
name spatial
frequency points 2
Geometry x (μm) 0
y (μm) 0
x span (μm) 7
y span (μm) 7
• 点击 RUN 按钮再次运行模拟。
• 一旦模拟运行完毕,绘制场分布: 切换到分析窗口,输入以下设置,按 PLOT。
property value
Component E intensity
按照下面屏幕截图的设置参数扫描,按确定(APPLY 和 OK 的功能是一样的,但不会
• 关闭此窗口申请)。
24
• 点击在优化和参数扫描窗口里的 RUN 按钮运行参数扫描。
一旦参数扫描运行完毕,切换到 SCRIPT PROMPT (请参考以下说明 Introduction
• section of the Getting Started examples)。
• 图标下填入以下的脚本指令,按 ENTER 键运行指令。
fmax = getsweepdata("sweep","fmax");
r = getsweepdata("sweep","r");
plot(r*1e6,transpose(pinch(fmax)*1e-12),"inner radius (um)","f
(THz)","Frequencies at which max power drop occurs","plot points");
光子晶体微腔教程
问题综述
本范例目的是示范如何使用 FDTD Solutions 来分析光子晶体共振腔,并得到共振频率
(resonant frequency)、品质因数(Quality factor)、共振腔的模态分布。我们学习如何找寻感
兴趣的模态以及量测品质因数 (Q 值) 后,我们将会使用 PSO (particle swarm optimization)
优化算法去找寻最大品质因素的孔洞半径。
注意:本范例图片为 FDTD Solutions Mac 版,与 Windows 和 Linux 使用接口有些微的
不同。
相关文件
建议读者先下载相关文件。这些文件可以从
Lumerical 的在线帮助网页上得到,也可以
在 FDTD Solutions 的安装目录里找到。这
些 fsp 文件含有设计参数和模拟运算的所有
信息,因此你可以快速地浏览,而不需要重
新输入每一个参数。 lsf 文件就是用于高级
分析的文本程序。
25
ppc_cavity.fsp
In this topic
Simulation set up
Simulation results
Further analysis: Symmetry
Further analysis: Optimization of inner hole
radius
See also
FDTD Solutions Online help -> Cavities and
Resonators
FDTD Solutions Online help -> Photonic
Crystals
仿真建模
共振腔结构为一 Ta2O5 平板 (折射率为 2.0995),包含排列成六角晶格之空气柱,晶格常
数 (lattice constant) 为 575 nm,空气柱半径为 194 nm,并藉由移除正中心空气柱而形成
一共振腔,最内圈空气柱半径为 100 nm,结果如下图。
26
在 FDTD Solutions 模拟中,频域监视器 (frequency domain monitors) 采用了时域讯号
(time domain data) 的离散傅立叶转换来计算模态。显然,我们并不想要包含初始模拟的那
部分时间讯号,因为它包含无激发模态的辐射,我们只对后部分的时间讯号有兴趣,因为这
些讯号的能量保留为共振腔的模态。您可在下页 (构建说明) 看到,我们可使用监视器中的
切趾 (apodization) 功能去选择我们想要的时间讯号。更深入的讨论有关监视器
apodization 的说明可在 Online User Guide->Monitors and Analysis
Groups->Apodization 中找到。
本节将继续讨论重要的模拟设置,即边界条件设置、网格设置与模拟时间。
边界条件
上面的截图中,橙色的边界为 Perfectly Matched Layer (PML) 边界。 PML 边界吸收入射
辐射,其目的是吸收所有离开共振腔的辐射。因此,相当重要的是共振腔与 PML 边界须
维持一段距离,假使边界过于靠近共振腔,就可能吸收存在于共振腔内的非传播速失场
(non-propagating local evanescent fields)。一个简单的规则,在结构以上和以下保留至少
半个波长的距离。
接下来,请注意模拟范围下半部的蓝色阴影 (Z<0),这是因为我们在 z min 的边界上使用
了对称性边界条件,目的是减少计算时间。使用对称性边界条件的缺点在于将使某些模态无
法在结果中显现 (因为用对称性边界只能激发对称的模态)。在这个光子晶体共振腔中,有
一个通过薄板中心的对称平面(z=0),使用在这个平面上的对称性边界条件。结果将只显现
近似 TE 的模态而消除近似 TM 的模态。
注意,dipole 位于 z=0 的原因是因为这是光源理想的位置。磁偶极子在 z=0 平面有一个指
向电场,蓝色对称性边界条件是特意的,它表示,电场应该位于沿着 (平行) 此边界。在
FDTD Solutions 中,大部分的光源包含蓝色箭头(表电场方向),它应该总是要位于蓝色边
界上。
网格
为使共振腔模拟得到最好的结果,很重要的一点是在两个方向上晶格常数为网格尺寸
(mesh cell) 的整数倍。材料中的波长为 λ = c / f / n = 3e8 / 160e12 / 2.0995 = 890 nm,我
们预期 λ/10 的网格会有较可靠的精确度,而 x 方向每个周期有八个网格我们可以得到网
格大小 575nm/ 8 = 71.875nm(<λ/10)。因为 y 方向的晶格常数是 575*sin(60) nm,故 y
方向网格会小于 x 方向。如此设定,可得到较为可靠的精确度。
确认晶格常数为网格尺寸的整数倍,模拟范围 (FDTD) 也必须是晶格常数的整数倍。因此,
我们设定 FDTD 范围的 x span 为 575*12nm,y span 为 575*sin(60)*12nm。
在下图中 (亦或是你在 FDTD Solutions 中观察网格),能够看到在每一个圆柱上的网格,都
切在相同的位置上。这点相当重要,因为 FDTD 需要在每一个圆柱上切出相同的网格。假
使网格线落在不同的位置上,每一个圆柱将有细微的形状及大小不同。
27
周期结构在模拟前,比较好的方式是使用折射率监视器 (index monitor) 来确认被切成网格
的结构实际上是否呈现周期,下图折射率监视器的结果显现出每一个像是十字架的圆柱,这
是因为使用较为粗糙的网格。请注意,每一个十字架(除了六个最内圈圆柱)形状都是相同的,
假使我们想要得到一个好的结果,确认每个被切割成网格的圆柱形状是十分重要的。在下页
的模型说明中,包含了如何创建折射率监视器图的每一步详细设定步骤。
模拟时间
为了达到准确的频域资料,一般模拟需等到时域场衰减至零。不过,幸运的是,高品质因素
(High quality factor) 共振腔模拟为一例外 (High Q mode 衰减非常慢,High Q 共振腔模拟
运算需要较长的时间)。
时域分析与频域切趾 (apodization) 的结合,使我们能够不需要等到时域场完全衰减,即可
准确的计算品质因素 (quality factor) 与共振腔模态 (cavity modes),然而,使用此方法仍
需要小心,当模拟提早结束时。其他量测结果像是 power transmission 和 field amplitudes
不一定是正确的。
模拟结果
28
模拟包含 Q analysis 群组,其中包含计算共振腔模态中的共振峰值与品质因素的程序。 Q
analysis 群组中包含 time 监视器且并未放置于模拟中心,其原因是由于 dipoles 并未置
于中心。
我们可以使用分析程序在光源的频带中得到最大的两个共振峰值与品质因素。也能够轻易得
到更多共振峰值:只需修改 Q analysis→ Analysis-> Variables 中的 number_resonances
参数即可。
一次的模拟即可得到共振频率及对应的电场模态分布图。
29
下图为模态在 201 THz 下的 real(Ey)。
进阶分析:对称性边界条件
为了在 201 THz 拥有最大的品质因素,我们需要藉由几次的模拟来找到适合的孔洞内径。
由于模态在 x 及 y 方向具有对称性,可以使用 anti-symmetric/symmetric 边界条件设定
来减少模拟时间。
从上图中及 User Guide - Simulation 章节中的 Choosing between symmetric and
anti-symmetric BCs 讨论,我们可看见有兴趣模态的电场在 x=0 平面上具反对称性,y=0
上具对称性。
无论何时,模拟区域中心具有电磁场的对称平面通过,使用对称性边界条件将能够得到相同
的结果。下图为分别设置 x min 与 y min 为 anti-symmetric / symmetric 边界条件所得到
的结果。除了强度外与上图结果几乎相同,而造成强度改变的原因,是由于光源被镜像。因
全范围模拟仅含两个光源,而使用对称性边界条件模拟将包含有八个光源。
30
.
进阶分析:孔洞内径优化
FDTD Solutions 内建优化功能,我们选择使用 PSO (Particle Swarm Optimization) 算法,
用户也能够自定义其他算法。更多有关算法的细节,详见 Online help 中 User Guide 的
Running Simulations and Analysis -> Optimization。
在这个例子中,我们试着使用六种光子晶体共振腔内径来优化品质因素,下图可见优化后的
半径结果为 91.9 nm
建模说明
31
本页包含四个独立章节。第一个章节描述设置共振腔结构与 FDTD 模拟区域,第二个章节
描述光源与监视器设置以及初始分析设置,第三个章节提供使用对称性边界条件进一步的资
讯,第四个章节描述如何使用 FDTD Solutions 优化功能。
In this topic
Create PC and check material index
Add sources and monitors. Run simulation and get data.
Symmetry
Optimize inner hole radius
创建光子晶体与验证材料折射率
Geometry x (μm) 0
y (μm) 0
z (μm) 0
x span (μm) 10
y span (μm) 10
z span (μm) 1
y (μm) 0
z (μm) 0
material etch
32
H_number 2
h (μm) 1
a (μm) .575
r (μm) .194
• 点击 DUPLICATE 来复制一组六角晶格的光子晶体共振腔,并根据下表编辑特性。
name inner
y (μm) 0
z (μm) 0
H_number 1
r (μm) .100
点击 SIMULATION 来新增仿真区域。注意假使你的按钮与左图不同,你将
• 需要点选箭头自下拉选单中点击真正的按钮。并根据下表设置特性。
Geometry x (μm) 0
y (μm) 0
z (μm) 0
z span (μm) 3
33
force symmetric y mesh check
Geometry x (μm) 0
y (μm) 0
z (μm) 0
x span (μm) 10
y span (μm) 10
z span (μm) 1
name index
Geometry x (μm) 0
y (μm) 0
x span (μm) 10
y span (μm) 10
34
点击 RUN 钮 ,即跳出进程视窗并开始进行初始化及网格划分,不久后初始化及
• 网格划分完成,你将能够在进程视窗(如下图)中点选 EXIT 钮来停止运行模拟。
进程视窗将显示 “The simulation will be saved at its current state, which is not
completed. Do you really want to exit?” 请点选 YES,即使模拟尚未完成,但此时 INDEX
• 监视器资料已在初始化及网格划分的过程中取得。
切换到分析 (ANALYSIS) 窗口 (请参考以下说明 Introduction section of the Getting
• Started examples)。
在本范例的结果与讨论章节中 (上页),绘出 INDEX 监视器资料:在分析视窗中 (analysis
• window) 输入下表设定与点选 PLOT。
property value
Component n_x
name dipole1
35
dipole
Geometry x (μm) .1
y (μm) .2
name profile
frequency points 2
36
maximum frequency (THz) 209.5
Geometry x (μm) 0
y (μm) 0
x span (μm) 10
y span (μm) 10
property value
Component E intensity
• 点击 SWITCH TO LAYOUT 钮 。
37
编辑 FDTD 模拟范围,在 BOUNDARY CONDITIONS 标签,设置 x min bc 为
• Anti-Symmetric、y min bc 为 Symmetric。
• 点击 RUN FDTD 钮再次运行模拟。
• 使用 script prompt 绘出 real(Ey):有关如何执行请参照先前灰色方框中的指令。
更多有关对称性边界的设置,请见 Online help - User guide - Simulation - Symmetry
boundaries page。
优化孔洞内径
• 在 Q analysis 群组中设置下面变数:
number_resonances 1
38