


{"id":295404,"date":"2023-07-28T18:52:43","date_gmt":"2023-07-28T18:52:43","guid":{"rendered":"\/forum\/forums\/reply\/295404\/"},"modified":"2023-07-28T18:52:43","modified_gmt":"2023-07-28T18:52:43","slug":"295404","status":"publish","type":"reply","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/295404\/","title":{"rendered":"Reply To: Import .stl files from prolith to FDTD, scaling factor and parameter problems."},"content":{"rendered":"<p>&lt;p&gt;Sorry, my reply was gone nowhere.&lt;\/p&gt;&lt;p&gt;A1: no, not wrong. It is display and numerical discrete result.&lt;\/p&gt;&lt;p&gt;A2: the data is the original data. You need to extract where the material\/geometry begins. for example:&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;clear;&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;index=getresult(&#8220;monitor&#8221;,&#8221;index&#8221;);&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;ind=index.index_x;&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;nmax=max(ind);&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;x=index.x;&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;y=index.y;&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;plot(x,ind(:,find(y,0)));&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;linex=ind(:,find(y,0));&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;aa=find(linex&gt;1);&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;?x(aa);&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;This is all the x data for the material.&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;&nbsp;&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;index_x,index_y and index_z are for Ex,Ey and Ez from the Yee mesh, since FDTD makes them displaced in purpose. Inside FDTD, the discrete geometry will look differently from real word.&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;&nbsp;&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;A3: after discritization the geometry will be different. For visualization FDTD has interpolated them into the same location. Please refer the Yee mesh:&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;<img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/07\/28-07-2023-1690570162-gs_intro_yee2.png\" alt=\"\" \/>&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;&nbsp;&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;A4: the grids you are referring to is for visualization only. It has no any effect for simulation and discritization.&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;&nbsp;&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-295404","reply","type-reply","status-publish","hentry"],"aioseo_notices":[],"acf":[],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/295404","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\/295404\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=295404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}