Lumerical scripting language Pickup for FDTD Quick Start (5) Light Source (Source)


Preface

In this article, we follow the previous article and talk about the setting of the light source.


1. Plane wave

The following is a section of plane wave setting code:

addplane;
set("injection axis","z");#基准轴
set("direction","backward");#入射方向
set("x",0);
set("x span",0.4*um);
set("y",0);
set("y span",0.4*um);
set("z",1*um);
set("wavelength start",1.5*um);#起始波长
set("wavelength stop",1.5*um);#截止波长
set("amplitude",1);#振幅,默认为1,无特殊需要可不设置
set("phase",0);#初始相位,角度制,默认为0,无特殊需要可不设置
set("angle theta",30);#入射角theta
set("angle phi",0);#入射角phi
set("polarization angle",90);#偏振角

The effect is shown in the figure.
Insert picture description here
Explanation of several parameters:
"injection axis" : reference axis, three types of "x", "y" and "z" can be selected as the reference axis for other parameter settings.
"direction" : Incident direction, two options are "forward" and "backward", which control the forward or reverse propagation of the wave along the z axis.
"wavelength start" and "wavelength stop" : wavelength range, these two parameters control the shortest wavelength and longest wavelength of the plane wave respectively.
"polarization angle" : Polarization angle, angle system. When incident from the z axis, the default is the polarization in the x direction. Setting this angle value is to set the angle between the polarization direction on the xy plane and the x axis.
"angle theta" and "angle phi" : space azimuth angle, angle system. These two angles can control the incident angle of the light wave. For example, in this example, the incident reference axis is the z axis and the theta angle is 30°, so the incident direction is rotated 30° clockwise relative to the z axis.

2. Gaussian light source (Gaussian)

The setting methods of Gaussian light source and plane wave are very similar, the code is as follows:

addgaussian;
set("injection axis","z");
set("direction","backward");
set("x",0);
set("x span",0.4*um);
set("y",0);
set("y span",0.4*um);
set("z",1*um);
set("wavelength start",1.5*um);
set("wavelength stop",1.5*um);
set("angle theta",0);
set("angle phi",0);
set("polarization angle",30);

The effect is as follows:
Insert picture description here

3. Full-field scattering field light source (TFSF)

The full-field scattering field (TFSF) is a type of plane wave. The difference and detailed description of TFSF and plane wave can be found on the kx forum. Only a reference code is listed here:

addtfsf;
set("injection axis","z");
set("direction","backward");
set("x",0);
set("x span",0.4*um);
set("y",0);
set("y span",0.4*um);
set("z",1*um);
set("wavelength start",1.5*um);
set("wavelength stop",1.5*um);
set("amplitude",1);
set("angle theta",0);
set("angle phi",0);
set("polarization angle",30);

4. Dipole

The oscillating dipole is often used as the source of electromagnetic waves. It is very suitable for the simulation of point light sources. The typical dipole setting codes are listed here:

adddipole;
set("dipole type","Electric dipole");#偶极子类型,可选"Electric dipole","Magnetic dipole"两种
set("x",0);#设置中心坐标
set("y",0);
set("z",1*um);
set("wavelength start",1.5*um);
set("wavelength stop",1.5*um);
set("amplitude",1);
set("theta",0);#方位角
set("phi",0);#方位角
set("phase",90);#相位

Guess you like

Origin blog.csdn.net/weixin_44224652/article/details/112758774