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

xuanlunhuang20
Subscriber

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);