stack array of dipoles

MANNANMANNAN Member Posts: 5
edited April 2 in Photonics

x=linspace(-d/2,d/2,N); # x position vector


for (i=1:N) {

adddipole;

set("x",x(i)); 

set("y",0);

set("z",0);

This code will make a line of N dipoles along the x-axis between length -d till d.


Suggestions required in making a script that will make a cone of dipole along xz direction with radius r in x-direction and depth along z-axis 


Looking forward to hearing soon


   

Comments

Sign In or Register to comment.