Ansys Learning Forum › Forums › Discuss Simulation › Photonics › Problem on recording the E field in 2d polarizer simulation › Reply To: Problem on recording the E field in 2d polarizer simulation
I copy all my simulation details here. Could you copy and reproduce the simulation?
The screenshot of the simulation:
FDTD settings are:Â simulation time 10000fs, mesh 4, conformal 0, Bloch boundary in x and y, PML in z, PML use stretched PML steep angle, layer is auto (12).
Materials I use are: index=3.7 for "bar", "SiO2 (Glass) -Palik" for "substrate"
The variables of the model:
The script to change the dimensions of all the structure:
Lmax = 7e-6;
sourceoffset = 0.075e-6;
Â
n1 = 1;
n2 = 1;
Â
## set simulation region
select("FDTD");
set("x",0);set("y",0);
set("x span",period);
set("y span",period);
set("z max",0.5*Lmax/n2+height+sourceoffset*2);
set("z min",-0.5*Lmax/n1);
Â
## set source
select("PlaneWaveSource");
set("x",0);set("y",0);
set("x span",period*3);
set("y span",period*3);
set("z",0.5*Lmax/n2+height+sourceoffset);
Â
## set bar
select("bar");
set("x",0);set("y",0);
set("x span",wx);
set("y span",wy);
set("z max",height);
set("z min",0);
Â
## set substrate
select("substrate");
set("x",0);set("y",0);
set("x span",period*3);
set("y span",period*3);
set("z max",0);
set("z min",-3*Lmax/n1);
Â
# set myR
select("myR");
set("x",0);set("y",0);
set("x span",3*period);
set("y span",3*period);
set("z",0.5*Lmax/n2+height+sourceoffset*2);
Â
# set myT
select("myT");
set("x",0);set("y",0);
set("x span",3*period);
set("y span",3*period);
set("z",-0.5*Lmax/n1);
Â
# set xz-field
select("xz_field");
set("x",0);set("y",0);
set("x span",period);
set("z max",0.5*Lmax/n2+height+sourceoffset*2);
set("z min",-0.5*Lmax/n1);
Â
# set xz-time
select("xz_time");
set("x",0);set("y",0);
set("x span",period);
set("z max",0.5*Lmax/n2+height+sourceoffset*2);
set("z min",-0.5*Lmax/n1);