{"id":1683,"date":"2016-08-30T10:39:40","date_gmt":"2016-08-30T17:39:40","guid":{"rendered":"https:\/\/live-optics-wp.pantheonsite.io\/milster\/?page_id=1683"},"modified":"2016-08-30T15:36:39","modified_gmt":"2016-08-30T22:36:39","slug":"convert-xfdtd-to-optiscan","status":"publish","type":"page","link":"https:\/\/wp.optics.arizona.edu\/milster\/resources\/optiscan-simulation-program\/optiscan-help-desk\/index\/convert-xfdtd-to-optiscan\/","title":{"rendered":"Convert XFDTD to Optiscan"},"content":{"rendered":"<p>Converts XFDTD output into a format that Matlab and Optiscan can understand. This converter must be run before the <em>Generate Field Map of XFDTD Data<\/em> tool can be used.<\/p>\n<hr \/>\n<h3>Getting Started:<\/h3>\n<p>Click on the <em>Accessories<\/em> menu then the <em>XFDTD Conversion tools<\/em> menu and finally click on <em>Convert XFDTD data to Optiscan<\/em><\/p>\n<hr \/>\n<h3>Input info into panel<\/h3>\n<ul>\n<li><strong>directory label:<\/strong> where the xfdtd simulation data directory is The program assumes that the directory name is the same as simulation name (see example for clarification) (don&#8217;t forget the ending slash)<\/li>\n<li><strong>leader label:<\/strong> name of XFDTD simulation<\/li>\n<li><strong>section label:<\/strong> observation plane of steady state data<\/li>\n<li><strong>initial file:<\/strong> beginning time step of steady state data<\/li>\n<li><strong>last file:<\/strong> end time step of data<\/li>\n<li><strong>skip:<\/strong> time increment of steps<\/li>\n<li><strong>number of rows:<\/strong> number of cells in x direction for xy and xz planes\n<ul>\n<li>number of cells in y direction for yz plane<\/li>\n<\/ul>\n<\/li>\n<li><strong>number of columns:<\/strong> number of cells in y direction for xy plane\n<ul>\n<li>number of cells in z direction for xz and yz<\/li>\n<\/ul>\n<\/li>\n<li><strong>save directory:<\/strong> directory in which you want the converted data to be saved. Make sure to create this directory before running the conversion program<\/li>\n<\/ul>\n<hr \/>\n<h3>Buttons:<\/h3>\n<ul>\n<li><strong>Save as Default:<\/strong> Saves the current input values so you don&#8217;t have to re-input them the next time you use this panel<\/li>\n<li><strong>Convert:<\/strong> Runs the conversion program<\/li>\n<\/ul>\n<hr \/>\n<h3>Example:<\/h3>\n<p>This is the directory where my XFDTD simulation output is stored:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1540\" src=\"http:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/files.jpg\" alt=\"files\" width=\"267\" height=\"382\" data-id=\"1540\" srcset=\"https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/files.jpg 267w, https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/files-210x300.jpg 210w\" sizes=\"auto, (max-width: 267px) 100vw, 267px\" \/><\/p>\n<p>This is what I input into the panel:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1543\" src=\"http:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/xfdtd_conversion_panel.jpg\" alt=\"xfdtd_conversion_panel\" width=\"568\" height=\"466\" data-id=\"1543\" srcset=\"https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/xfdtd_conversion_panel.jpg 568w, https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/xfdtd_conversion_panel-300x246.jpg 300w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/><\/p>\n<ul>\n<li>Directory label is &#8220;c:\\&#8221; (note the ending slash and the fact that I don&#8217;t include &#8220;symmetric152020&#8221;)<\/li>\n<li>leader label is &#8220;symmetric152020&#8221; this is the name of the directory and part of the names of the files<\/li>\n<li>section label: xy plane at z=21<\/li>\n<li>my first time step is 878 and my ending time step is 1000<\/li>\n<li>the skip is 2<\/li>\n<li>I have 41 rows and 41 columns in my simulation<\/li>\n<li>I want the output saved in &#8220;c:\\converted_symmetric152020\\&#8221; (note the ending slash)<\/li>\n<\/ul>\n<hr \/>\n<h3>Output:<\/h3>\n<p>See Also:\u00a0<a href=\"http:\/\/wp.optics.arizona.edu\/milster\/resources\/optiscan-simulation-program\/optiscan-help-desk\/index\/field-map-generator\/\">Field Map Generator<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Converts XFDTD output into a format that Matlab and Optiscan can understand. This converter must be run before the Generate Field Map of XFDTD Data tool can be used. Getting Started: Click on the Accessories menu then the XFDTD Conversion tools menu and finally click on Convert XFDTD data to Optiscan Input info into panel directory label: where the xfdtd<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":894,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1683","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/pages\/1683","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/comments?post=1683"}],"version-history":[{"count":3,"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/pages\/1683\/revisions"}],"predecessor-version":[{"id":1878,"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/pages\/1683\/revisions\/1878"}],"up":[{"embeddable":true,"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/pages\/894"}],"wp:attachment":[{"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/media?parent=1683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}