We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.

Ansys Learning Forum Forums Discuss Simulation Photonics Import material .txt file with script Reply To: Import material .txt file with script

tim.fuhrmann
Subscriber

Hello,
Thank you for your reply. 
I am using the complex data. However, I have the following problem, when using the setmaterial function:

  • My data has three columns: wavelength, real part of the index, and imaginary part of the index
  • setmaterial with the property name "sampled data" only takes 2 or 4 inputs.
  • If I use only two,I don't get the imaginary part, if I take 4, even though I have only 3 in my data set (I set the last column to zero), I get wrong material parameters

Thank you for your help and best regrds,
Tim