


{"id":382791,"date":"2024-09-16T15:52:52","date_gmt":"2024-09-16T15:52:52","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/382791\/"},"modified":"2024-09-16T15:52:52","modified_gmt":"2024-09-16T15:52:52","slug":"382791","status":"publish","type":"reply","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/382791\/","title":{"rendered":"Reply To: Import material .txt file with script"},"content":{"rendered":"<p>&lt;p&gt;Hello,&lt;br&gt;Thank you for your reply.&nbsp;&lt;br&gt;I am using the complex data. However, I have the following problem, when using the&nbsp;<em>setmaterial<\/em> function:&lt;\/p&gt;<\/p>\n<ul>\n<li>My data has three columns: wavelength, real part of the index, and imaginary part of the index<\/li>\n<li><em>setmaterial<\/em> with the property name&nbsp;<em>&#8220;sampled data&#8221;&nbsp;<\/em>only takes 2 or 4 inputs.<\/li>\n<li>If I use only two,I don&#8217;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<\/li>\n<\/ul>\n<p>&lt;p&gt;Thank you for your help and best regrds,&lt;br&gt;Tim&nbsp;&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-382791","reply","type-reply","status-publish","hentry"],"aioseo_notices":[],"acf":[],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/382791","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/reply"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/382791\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=382791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}