Script in photonic crystal


#1

Dear Lumerical Team,
I am designing photonic crysta; cavity with half and I adjusted the script and I got the half circular pcf,
kindly check the script and I want to delete 3 air holes marked in yellow square, kindly help me in the script to delete the mentioned air hole.
I have attached figure and file.
and also I took the mesh cell size 300 is it enough for this structure are we have to take more?

PCF cavity.lms (314.9 KB)

with advanced thanks


#2

Hello,

This is very much doable and you can actually reuse our script from the Object Library. Particularly the Hexagonal lattice PC L-Cavity where we use L number to define the number of missing holes in the center row. In addition, this script also allows you to shrink and offset the holes adjacent to the cavity. This can be useful when optimizing the Q factor.

I have attached this structure group here:
PC with L_cavity Example.lms (386.1 KB)

But you can always access it directly from the online library as shown here:

You are particularly interested in this portion of the code that defines the center row(line 35 to 51):

# draw center row
for(j=-(n_x+xs0):(n_x+xs0)) {
     if((abs(j)>=L_number/2+1)) {
      	addcircle;       
       	set("x",(j)*a );   
       	set("y",0);
	set("radius",radius);
     }else{
	if((abs(j)>=L_number/2)) {
      		addcircle;       
       		set("x",(j)*(a+dx_shift*a/abs(j)));   
       		set("y",0);
		set("radius",radius-(dr_shrink*a));
	}

     }
}

If you do not want any shift or size adjustments of the adjacent holes, simply keep dx shift and dr shring equal to zero.


#3

thank you very much.