Prabha prasad Nair
Subscriber

 

Thank you for the reply.

I have a question related to the data generated from XY_half space. Is it possible to use a script to generate a data in the from grid of theta and phi angles using the following script so that I can plot the data in a more better form. And what should I give for the monitor name here as we have box of 5 monitors in this case?

 

m="Monitor1";  # Monitor name
res = 201;    # projection resolution
E2 = farfield3d(m,1,res,res);
ux = farfieldux(m,1,res,res);
uy = farfielduy(m,1,res,res);
theta = linspace(-90,90,100); 
phi = 0;
plot(theta, farfieldspherical(E2,ux,uy,theta,phi) ,"theta", "E^2", "E^2 at phi=0");

 

Interpolate field data to a grid of theta and phi angles.

 

theta = linspace(-90,90,10);
phi = linspace(0,45,11);
Theta = meshgridx(theta,phi);
Phi = meshgridy(theta,phi);
E2_angle = farfieldspherical(E2,ux,uy,Theta,Phi);