{"id":1590,"date":"2016-08-30T10:13:20","date_gmt":"2016-08-30T17:13:20","guid":{"rendered":"https:\/\/live-optics-wp.pantheonsite.io\/milster\/?page_id=1590"},"modified":"2016-11-03T09:39:36","modified_gmt":"2016-11-03T16:39:36","slug":"string-delta-variables","status":"publish","type":"page","link":"https:\/\/wp.optics.arizona.edu\/milster\/resources\/optiscan-simulation-program\/optiscan-help-desk\/index\/string-delta-variables\/","title":{"rendered":"String Delta Variables"},"content":{"rendered":"<h3>STRING DESCRIPTION:<\/h3>\n<p>The string description describes what the variable is used for:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1142\" src=\"https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/easydelta_panel.string.desc_.gif\" alt=\"easydelta_panel.string.desc\" width=\"460\" height=\"63\" data-id=\"1142\" \/><\/p>\n<hr \/>\n<h3>STRING VALUE:<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1143\" src=\"https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/easydelta_panel.string.options.1.gif\" alt=\"easydelta_panel.string.options.1\" width=\"460\" height=\"240\" data-id=\"1143\" \/><\/p>\n<p>A <em>String Value<\/em> is a series of strings such as:<\/p>\n<ul>\n<li>&#8216;resim_1.m&#8217;,&#8217;resim_2.m&#8217;,&#8217;resim_1.m&#8217;,&#8217;resim_2.m&#8217;,&#8230;<\/li>\n<\/ul>\n<p>The <em>Base String<\/em> for this series would be specified with:<\/p>\n<ul>\n<li>&#8216;resim_%d.m&#8217;.<\/li>\n<\/ul>\n<p>and the <em>Base Substring<\/em> would be specified as<\/p>\n<ul>\n<li>%d<\/li>\n<\/ul>\n<p>The &#8216;%d&#8217; is replaced by the applying the following formula:<\/p>\n<ul>\n<li>%d = Base Value + Value<\/li>\n<\/ul>\n<p>where <em>Value<\/em> is calculated as:<\/p>\n<ul>\n<li>Value = (n-1)*(<em>Step Value<\/em>)<\/li>\n<\/ul>\n<p>where <em>n<\/em> is the number of simulation steps.<\/p>\n<p>When the number of simulation steps equals <em>Modulo Count<\/em>, then the series is reset.<\/p>\n<hr \/>\n<h3>VALUE VECTOR<\/h3>\n<p>A <em>Value Vector<\/em> is a vector of values which specifies the exact value for Value.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1144\" src=\"https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/easydelta_panel.string.options.2.gif\" alt=\"easydelta_panel.string.options.2\" width=\"464\" height=\"239\" data-id=\"1144\" \/><\/p>\n<p>With this configuration, the series:<\/p>\n<ul>\n<li>resim_2.m<\/li>\n<li>resim_3.m<\/li>\n<li>resim_4.m<\/li>\n<\/ul>\n<p>would be generated.<\/p>\n<p>If Base Value is 1000, then the series:<\/p>\n<ul>\n<li>resim_1001.m<\/li>\n<li>resim_1002.m<\/li>\n<li>resim_1003.m<\/li>\n<li>resim_1004.m<\/li>\n<\/ul>\n<p>would be generated.<\/p>\n<hr \/>\n<h3>STRING TABLE:<\/h3>\n<p>A<em> String Table<\/em> specifies the exact values of a string variable by using a text file. Each line specifies a single value for the string variable. If the line starts with a &#8216;%&#8217;, then the line is considered to be a comment.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1145\" src=\"https:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/08\/easydelta_panel.string.options.3.gif\" alt=\"easydelta_panel.string.options.3\" width=\"462\" height=\"239\" data-id=\"1145\" \/><\/p>\n<p>If the file &#8216;myvalues.txt&#8217; contained:<\/p>\n<ul>\n<li>%MLL conservative input files<\/li>\n<li>resim_1001.m<\/li>\n<li>resim_2001.m<\/li>\n<li>resim_3001.m<\/li>\n<li>resim_4001.m<\/li>\n<\/ul>\n<p>Then the string variable would get these values:<\/p>\n<ul>\n<li>simulation step #1 &#8211; resim_1001.m<\/li>\n<li>simulation step #2 &#8211; resim_2001.m<\/li>\n<li>simulation step #3 &#8211; resim_3001.m<\/li>\n<li>simulation step #4 &#8211; resim_4001.m<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>STRING DESCRIPTION: The string description describes what the variable is used for: STRING VALUE: A String Value is a series of strings such as: &#8216;resim_1.m&#8217;,&#8217;resim_2.m&#8217;,&#8217;resim_1.m&#8217;,&#8217;resim_2.m&#8217;,&#8230; The Base String for this series would be specified with: &#8216;resim_%d.m&#8217;. and the Base Substring would be specified as %d The &#8216;%d&#8217; is replaced by the applying the following formula: %d = Base Value +<\/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-1590","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/pages\/1590","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=1590"}],"version-history":[{"count":4,"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/pages\/1590\/revisions"}],"predecessor-version":[{"id":1963,"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/pages\/1590\/revisions\/1963"}],"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=1590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}