{"id":58,"date":"2023-06-08T16:30:07","date_gmt":"2023-06-08T14:30:07","guid":{"rendered":"https:\/\/logbooks.ifosim.org\/oscar\/?p=58"},"modified":"2023-06-12T12:09:21","modified_gmt":"2023-06-12T10:09:21","slug":"display-the-waist-and-position-in-the-waist-while-fitting-a-tem00","status":"publish","type":"post","link":"https:\/\/logbooks.ifosim.org\/oscar\/2023\/06\/08\/display-the-waist-and-position-in-the-waist-while-fitting-a-tem00\/","title":{"rendered":"Display the waist and position of the waist while fitting a TEM00"},"content":{"rendered":"\n<p>It is now possible to display directly the waist and position of the waist once a fundamental Gaussian beam is fitted. Starting with a Gaussian beam:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>G1 = Grid(512,0.4);\nE_input = E_Field(G1,'w',0.02,'R',-300);\n<\/code><\/pre>\n\n\n\n<p>We can now choose to display the waist of the beam:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Fit_TEM00(E_input,'Output','W_P') % the output in the command window will be:\nBeam waist &#091;m]: 0.00492386  \t \t Position of the waist &#091;m]: -281.817  <\/code><\/pre>\n\n\n\n<p>A negative waist position indicates the beam is focusing and so as we propagate the beam will be reduced in size. It is all possible to display all the parameters:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Fit_TEM00(E_input,'Output','all') % the output is now:\nBeam radius &#091;m]: 0.02  \t \t Wavefront curvature &#091;m]: -300  \nBeam waist &#091;m]: 0.00492386  \t \t Position of the waist &#091;m]: -281.817  <\/code><\/pre>\n\n\n\n<p>Let&#8217;s check that the size and position is correct:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Fit_TEM00(Propagate_E(E_input,281.82)) % and the answer is:\nBeam radius &#091;m]: 0.00492386  \t \t Wavefront curvature &#091;m]: 1.55193e+06  <\/code><\/pre>\n\n\n\n<p>All good! it is also possible to save values in variables (and suppress the output):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;w,R,w0,Pos] = Fit_TEM00(E_input);<\/code><\/pre>\n\n\n\n<p>The updated function is available in the git folder, master branch: <a href=\"https:\/\/github.com\/Jerome-LMA\/oscar\/tree\/master\/Classes\/%40E_Field\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is now possible to display directly the waist and position of the waist once a fundamental Gaussian beam is fitted. Starting with a Gaussian beam: We can now choose to display the waist of the beam: A negative waist position indicates the beam is focusing and so as we propagate the beam will be [&hellip;]<\/p>\n","protected":false},"author":67,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ssl_alp_hide_revisions":false,"footnotes":"","ssl_alp_hide_crossreferences_to":false},"categories":[25],"tags":[21],"ssl-alp-inventory-item":[],"ssl-alp-coauthor":[12],"class_list":["post-58","post","type-post","status-publish","format-standard","hentry","category-simulations","tag-new_feature","ssl-alp-unread-flag-ssl-alp-unread-flag-agreennikhef-nl","ssl-alp-unread-flag-ssl-alp-unread-flag-andreas-freiseligo-org","ssl-alp-unread-flag-ssl-alp-unread-flag-anna-greenligo-org","ssl-alp-unread-flag-ssl-alp-unread-flag-antoine-amyligo-org","ssl-alp-unread-flag-ssl-alp-unread-flag-bas-swinkelsligo-org","ssl-alp-unread-flag-ssl-alp-unread-flag-camilla-derossiligo-org","ssl-alp-unread-flag-ssl-alp-unread-flag-catalina-ana-miritesculigo-org","ssl-alp-unread-flag-ssl-alp-unread-flag-daniela-pascucciligo-org","ssl-alp-unread-flag-ssl-alp-unread-flag-davidgnikhef-nl","ssl-alp-unread-flag-ssl-alp-unread-flag-eleonora-capocasaligo-org","ssl-alp-unread-flag-ssl-alp-unread-flag-enzo-tapialigo-org","ssl-alp-unread-flag-ssl-alp-unread-flag-hiro-yamamotoligo-org","ssl-alp-unread-flag-ssl-alp-unread-flag-jacques-dingligo-org","ssl-alp-unread-flag-ssl-alp-unread-flag-jonathan-perryligo-org","ssl-alp-unread-flag-ssl-alp-unread-flag-jperrynikhef-nl","ssl-alp-unread-flag-ssl-alp-unread-flag-kevin-kunsligo-org","ssl-alp-unread-flag-ssl-alp-unread-flag-maddalena-mantovaniligo-org","ssl-alp-unread-flag-ssl-alp-unread-flag-michele-valentiniligo-org","ssl-alp-unread-flag-ssl-alp-unread-flag-mischa-salleligo-org","ssl-alp-unread-flag-ssl-alp-unread-flag-monica-seglar-arroyoligo-org","ssl-alp-unread-flag-ssl-alp-unread-flag-msalle","ssl-alp-unread-flag-ssl-alp-unread-flag-mvalentinikhef-nl","ssl-alp-unread-flag-ssl-alp-unread-flag-p70081609unimaas-nl","ssl-alp-unread-flag-ssl-alp-unread-flag-paul-stevensligo-org","ssl-alp-unread-flag-ssl-alp-unread-flag-paulvalentin-hapkeligo-org","ssl-alp-unread-flag-ssl-alp-unread-flag-riccardo-maggioreligo-org","ssl-alp-unread-flag-ssl-alp-unread-flag-sebastslnikhef-nl","ssl-alp-unread-flag-ssl-alp-unread-flag-tschoonnikhef-nl","ssl-alp-unread-flag-ssl-alp-unread-flag-yuefangnikhef-nl","ssl-alp-unread-flag-ssl-alp-unread-flag-yuhang-zhao1ligo-org"],"_links":{"self":[{"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/posts\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/users\/67"}],"replies":[{"embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/comments?post=58"}],"version-history":[{"count":3,"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/posts\/58\/revisions"}],"predecessor-version":[{"id":62,"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/posts\/58\/revisions\/62"}],"wp:attachment":[{"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/media?parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/categories?post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/tags?post=58"},{"taxonomy":"ssl-alp-inventory-item","embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/ssl-alp-inventory-item?post=58"},{"taxonomy":"ssl-alp-coauthor","embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/ssl-alp-coauthor?post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}