Photonics

Photonics

Topics related to Lumerical and more.

Data Extraction and Graph Drawing in var FDTD

    • H1640846343
      Subscriber

      In var FDTD, I want to extract the transmittance T from the monitor to plot the insertion loss IL, but it prompts me that the parameters in the log are invalid. Is it because the extracted data is not numerical? I can't find the reason

    • Niki Papachristou
      Ansys Employee

      Hi Subscriber, 

      Thank you for reaching out to us!

      I believe the error occurs because T is a "dataset" type data.
      With the following icon:
      ​

      That is, T contains not only the transmission data but also the corresponded wavelength data.
      Because log10 could only load matrix type data, this error occurs.
      The solution is to load the matrix from the dataset. 
      More information about dataset.

      You may try the following commands : 

      Trans = getresult("FDTD::ports::port 2", "T");
      T_=Trans.T;           # get transmission matrix from a dataset
      Loss=-10*log10(T_);
      f=Trans.f;              # get frequency array
      plot(c/f*1e6,Loss, "wavelength","dB");

      Let me know if that helped.

      Kind Regards,

      Niki

Viewing 1 reply thread
  • You must be logged in to reply to this topic.