{"id":1685,"date":"2016-08-30T10:39:55","date_gmt":"2016-08-30T17:39:55","guid":{"rendered":"https:\/\/live-optics-wp.pantheonsite.io\/milster\/?page_id=1685"},"modified":"2016-09-19T10:52:18","modified_gmt":"2016-09-19T17:52:18","slug":"field-map-generator","status":"publish","type":"page","link":"https:\/\/wp.optics.arizona.edu\/milster\/resources\/optiscan-simulation-program\/optiscan-help-desk\/index\/field-map-generator\/","title":{"rendered":"Field Map Generator"},"content":{"rendered":"<p>Calculates and plots the time average of amplitude and phase of an XFDTD simulation and saves this data<\/p>\n<hr \/>\n<h3>Input:<\/h3>\n<ul>\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>frequency:<\/strong> frequency of voltage source<\/li>\n<li><strong>time_step:<\/strong> calculated by xfdtd (lookup in fdtd.diag)<\/li>\n<li><strong>load_path:<\/strong> full path of the converted data<\/li>\n<li><strong>save directory:<\/strong> where you want to save the amplitude and phase profile of the converted data for x, y, and z components of the voltage source<\/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>Calculate:<\/strong> Runs the calculation program<\/li>\n<\/ul>\n<hr \/>\n<h3>Example:<\/h3>\n<p>This is the directory where the output from the <em>Convert XFDTD to Optiscan<\/em> calculator is stored<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1536\" src=\"http:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/converted_dir.jpg\" alt=\"converted_dir\" width=\"314\" height=\"254\" data-id=\"1536\" srcset=\"https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/converted_dir.jpg 314w, https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/converted_dir-300x243.jpg 300w\" sizes=\"auto, (max-width: 314px) 100vw, 314px\" \/><\/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-1539\" src=\"http:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/field_map_panel.jpg\" alt=\"field_map_panel\" width=\"568\" height=\"466\" data-id=\"1539\" srcset=\"https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/field_map_panel.jpg 568w, https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/field_map_panel-300x246.jpg 300w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/><\/p>\n<ul>\n<li>leader label is &#8220;symmetric152020&#8221;<\/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>frequency and time step I copied from the xfdtd.diag file that is automatically saved into the directory with my xfdtd simulation data (see below)<\/li>\n<li>the output from the <em>Convert XFDTD to Optiscan<\/em> calculator is stored in c:\\converted_symmetric152020\\<\/li>\n<li>I want the output saved in &#8220;c:\\temp\\&#8221; (note the ending slash)<\/li>\n<\/ul>\n<p>This is where my XFDTD simulation output is stored (notice the fdtd.diag file) :<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1537\" src=\"http:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/fdtd_dir.jpg\" alt=\"fdtd_dir\" width=\"230\" height=\"317\" data-id=\"1537\" srcset=\"https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/fdtd_dir.jpg 230w, https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/fdtd_dir-218x300.jpg 218w\" sizes=\"auto, (max-width: 230px) 100vw, 230px\" \/><\/p>\n<p>This is the contents of the fdtd.diag file:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1538\" src=\"http:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/fdtddiag.jpg\" alt=\"fdtddiag\" width=\"640\" height=\"262\" data-id=\"1538\" srcset=\"https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/fdtddiag.jpg 640w, https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/fdtddiag-300x123.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<hr \/>\n<h3>Output:<\/h3>\n<ul>\n<li>file: the time averaged complex amplitude and phase values are saved in a matlab file that has a name that is made up of the name of the simulation and the section label with an extension of &#8220;.mat&#8221;<\/li>\n<li>plot: plot of the period of the wave<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1541\" src=\"http:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/period.jpg\" alt=\"period\" width=\"341\" height=\"341\" data-id=\"1541\" srcset=\"https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/period.jpg 341w, https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/period-150x150.jpg 150w, https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/period-300x300.jpg 300w, https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/period-90x90.jpg 90w, https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/period-75x75.jpg 75w\" sizes=\"auto, (max-width: 341px) 100vw, 341px\" \/><\/li>\n<li>field profile of amplitude and phase<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1542\" src=\"http:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/profile.jpg\" alt=\"profile\" width=\"516\" height=\"370\" data-id=\"1542\" srcset=\"https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/profile.jpg 516w, https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/profile-300x215.jpg 300w\" sizes=\"auto, (max-width: 516px) 100vw, 516px\" \/><\/li>\n<\/ul>\n<hr \/>\n<h3>See Also:<\/h3>\n<ul>\n<li><a href=\"http:\/\/wp.optics.arizona.edu\/milster\/resources\/optiscan-simulation-program\/optiscan-help-desk\/index\/convert-xfdtd-to-optiscan\/\">Convert XFDTD to Optiscan<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Calculates and plots the time average of amplitude and phase of an XFDTD simulation and saves this data Input: leader label: name of XFDTD simulation section label: observation plane of steady state data initial file: beginning time step of steady state data last file: end time step of data skip: time increment of steps number of rows: number of cells<\/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-1685","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/pages\/1685","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=1685"}],"version-history":[{"count":3,"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/pages\/1685\/revisions"}],"predecessor-version":[{"id":1924,"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/pages\/1685\/revisions\/1924"}],"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=1685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}