{"id":244,"date":"2023-06-07T16:09:32","date_gmt":"2023-06-07T14:09:32","guid":{"rendered":"https:\/\/logbooks.ifosim.org\/finesse\/?p=244"},"modified":"2023-06-07T16:09:32","modified_gmt":"2023-06-07T14:09:32","slug":"gouy-phase-revisited","status":"publish","type":"post","link":"https:\/\/logbooks.ifosim.org\/finesse\/2023\/06\/07\/gouy-phase-revisited\/","title":{"rendered":"Gouy phase &#8211; revisited"},"content":{"rendered":"\n<p>Interestingly, the symbolic evaluation mentioned in the <a href=\"https:\/\/logbooks.ifosim.org\/finesse\/2023\/06\/07\/gouy-phase-in-a-recycling-cavity-with-one-focussing-element\/\" data-type=\"post\" data-id=\"233\">previous post<\/a> now &#8220;just works&#8221;. Not sure what I did wrong. Here&#8217;s the updated snippet.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>focal_lengths = np.linspace(length_of_recycling_cavity - 10.0, length_of_recycling_cavity, 11)\ntrace = virgo.propagate_beam(from_node=virgo.mIM.p2.o, to_node=virgo.mPR.p1, symbolic=True)\nphases = trace.total_acc_gouy.eval(subs={virgo.mPR2.f: focal_lengths})\n\nfor fl, phase in zip(focal_lengths, phases):\n    print(f'f={fl}m: {phase:.2f}deg')<\/code><\/pre>\n\n\n\n<p>Also, instead of the additional bp detectors, one can get to all the interesting bits directly from the trace output, e.g.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>w @ PR = {trace.w(virgo.mPR.p1.i)*1000.0:.3f}mm\nw0 = {trace.w0(virgo.mPR.p1.i)*1000.0:.3f}mm\nwavefront radius @ PR = {trace.q(virgo.mPR.p1.i).Rc:.3f}m<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Interestingly, the symbolic evaluation mentioned in the previous post now &#8220;just works&#8221;. Not sure what I did wrong. Here&#8217;s the updated snippet. Also, instead of the additional bp detectors, one can get to all the interesting bits directly from the trace output, e.g.<\/p>\n","protected":false},"author":89,"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":[14],"tags":[62,60,61],"ssl-alp-coauthor":[59],"class_list":["post-244","post","type-post","status-publish","format-standard","hentry","category-finesse3","tag-beam-trace","tag-gouy-phase","tag-recycling"],"_links":{"self":[{"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/posts\/244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/users\/89"}],"replies":[{"embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/comments?post=244"}],"version-history":[{"count":1,"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/posts\/244\/revisions"}],"predecessor-version":[{"id":245,"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/posts\/244\/revisions\/245"}],"wp:attachment":[{"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/media?parent=244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/categories?post=244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/tags?post=244"},{"taxonomy":"ssl-alp-coauthor","embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/ssl-alp-coauthor?post=244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}