FDTD add语句部分详细内容

这部分在官方脚本清单中有详细的记录,奈何有时候网站和网络抽风,自己常用的就摘过来,好在使用的时候复制粘贴。

addcircle 添加圆柱

addcircle;
set("name","new_circle");
set("x",1e-6);
set("y",2e-6);
set("radius",5e-6);
set("z",0);
set("z span",10e-6);

addring 添加圆环柱

addring;
set("name","new_ring");
set("x",1e-6);
set("y",2e-6);
set("inner radius",5e-6);
set("outer radius",7e-6);
set("z",0);
set("z span",10e-6);
set("theta start",0);
set("theta stop",180);

addsphere 添加球体

addsphere;
set("name","new_sphere");
set("x",1e-6);
set("y",2e-6);
set("z",0);
set("radius",5e-6);

addrect 添加长方体

addrect;
set("name","new_rectangle");
set("x",1e-6);
set("x span",2e-6);
set("y",1e-6);
set("y span",5e-6);
set("z",0);
set("z span",10e-6);
set("material","Si (Silicon) - Palik");

addpyramid 添加锥体

addpyramid;
set("name","my_pyramid");
set("x span bottom",5e-6);
set("x span top",3e-6);
set("y span bottom",4e-6);
set("y span top",3e-6);
set("z span",1e-6);
set("material","Si (Silicon) - Palik");

addtriangle 添加三角柱

vtx = [0,0;-d,0;0,(2*d)];  # microns三角形坐标
addtriangle;
set("name","l_triangle");
set("vertices",vtx);
set("x",2.5*d);
set("y",-2e-6-2*d);
set("z span",1e-6);

你可能感兴趣的:(FDTD,fdtd)