Photonics

Photonics

Topics related to Lumerical and more.

Mode expansion Monitor uses in VardFDTD solver

    • Prateeksha
      Subscriber

      Hi,
      I want to export VarFDTD results to Interconnect for that I used mode expansion monitor as shown in the example https://optics.ansys.com/hc/en-us/articles/360034902433-Using-and-understanding-Mode-Expansion-Monitors
      But I am getting weird results of s-parameters (S11 and S21). I just edited the "analysis program" given in the ring resonator example but it doesn't work. I used following code:

      •in = getresult("mode_expansion","expansion for in");
      •drop1 = getresult("mode_expansion","expansion for output1");
      •S11 = S22 = S33 = in.b/in.a;
      •S21 = S12 = drop1.a/in.a;
      •S = matrixdataset;
      •S.addparameter("f",in.f,"lambda",in.lambda);
      •S.addattribute("S11",S11);
      •S.addattribute("S21",S21);
      •# export to file for INTERCONNECT
      •Sdata = [S.f, abs(S11), unwrap(angle(S11)), abs(S21), unwrap(angle(S21))];

       

      •if(fileexists(filename)) { rm(filename); }
      •format long;
      •write(filename,num2str(Sdata));
       
      I am attaching the stucture, monitor results, mode expansion monitor settings, s-parameters and link to Lumerical file in the attachment. Please look into the files and suggest me the required changes.
       

      attachment.

      https://drive.google.com/file/d/1_I8dGlpuyr8Kn56II0ZX4Et77FEWZEJd/view?usp=drive_link

      Looking forward to your reply!!

      Thanks in advance!!

      Prateeksha

    • Guilin Sun
      Ansys Employee

      How weird is the result? too small/large or bumpy? If the graph showing above is what you mean, it looks good.

       we are not allowed to download the simulation files on the forum per Ansys policy.

       

Viewing 1 reply thread
  • The topic ‘Mode expansion Monitor uses in VardFDTD solver’ is closed to new replies.