Photonics

Photonics

Farfarfield 3D integration

Tagged: ,

    • sagar
      Subscriber
      m="monitor1";
      res = 201;
      E2 = farfield3d(m,1,res,res);
      ux = farfieldux(m,1,res,res);
      uy = farfielduy(m,1,res,res);
      halfangle=30;
      theta0=0;
      phi0=0;
      cone_30 = farfield3dintegrate(E2, ux, uy, halfangle, theta0, phi0); # integrate over 30 degree cone
      total = farfield3dintegrate(E2, ux, uy); # integrate over entire hemisphere
      T   = transmission(m); # fraction of source power transmitted into far field 
      ?cone_30/total;  # fraction of far field power within a 30 degree cone
      ?cone_30/total*T; # fraction of source power transmitted into the far field within a 30 degree cone

      Can you explain this code. I want to calculate the collection efficiency from my structures. I am getting error
      in line 9, "farfield3dintegrate(A,ux,uy), A muat be an NxM or NxMxP matrix, with length length(ux)=N,length(uy(=N, N>2and M>=2".
      I thing they are matrix and could not figure out the meaning of this error msg.

       

    • Guilin Sun
      Ansys Employee

      I tested your script and did not find anything wrong:

      Please make sure that your file is 3D and no ay error massage shows before line 9.

       

      The error message showig from above means the matrix has something wrong. Please check the dimension of E2.

      You may also need to reboot your computer, modify the simulation settings if necessay, redo the simulation and run the script.

       

    • sagar
      Subscriber

      Actually I want to calculate the collection efficiency from this 3D far-field profile, how much light is going toward the forward direction. Can you suggest how to do this?

Viewing 2 reply threads
  • You must be logged in to reply to this topic.