{"id":38,"date":"2019-11-21T10:40:30","date_gmt":"2019-11-21T10:40:30","guid":{"rendered":"https:\/\/logbooks.ifosim.org\/pykat\/?p=38"},"modified":"2020-06-05T12:01:38","modified_gmt":"2020-06-05T10:01:38","slug":"aperture","status":"publish","type":"post","link":"https:\/\/logbooks.ifosim.org\/pykat\/blog\/aperture\/","title":{"rendered":"Power loss at circular aperture"},"content":{"rendered":"\n<p>Simple example on how to compute the power loss at a circular aperture.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Finesse 2 example\n# Detecting the power loss at a mirror with \n# an aperture as a function of the aperture seize\n# Beam radius = 1mm\n# Andreas Freise, 13.11.2019\n\nl l1 1 0 n1\ngauss g1 l1 n1 1m -1\n\ns s1 1 n1 n2\nm m1 0.5 0.5 0 n2 n3\n\ns s2 1 n3 n4\n\nmaxtem 0\n\npd refl n2\nnoplot refl\nset Pr refl re\npd trans n3\nnoplot trans\nset Pt trans re\nfunc PowerLoss = 1 - $Pr - $Pt\n\nyaxis log abs\nxaxis m1 rap lin 0.2m 3m 100\n\npyterm pdf\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/logbooks.ifosim.org\/pykat\/wp-content\/uploads\/sites\/4\/2019\/11\/ApertureLoss.svg\" alt=\"\" class=\"wp-image-47\"\/><\/figure>\n\n\n\n<p>Slightly off topic, but can use dummy variables to tune the ration between the mirror and beam radius:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>var ratio 1 # define ratio as dummy variable\nset _ratio ratio re #\u00a0this is requires for the func command\nfunc rap = $_ratio * 0.001 # compute the aperture size\nnoplot rap # we don't want to plot the aperture size\nput m1 rap $rap # set the aperture\nxaxis ratio relsize lin 0.2 3 100 #\u00a0now we can tune the ratio<\/code><\/pre>\n\n\n\n<p>Note that the second parameter in the xaxis command (&#8216;relsize&#8217;) is just a random string when you use xaxis with a dummy variable. <\/p>\n\n\n\n<p>Parameter handling will be much improved in Finesse 3, see for example <a href=\"https:\/\/logbooks.ifosim.org\/finesse\/2020\/06\/03\/parameter-references-equations\/\">this post<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Simple example on how to compute the power loss at a circular aperture. Slightly off topic, but can use dummy variables to tune the ration between the mirror and beam radius: Note that the second parameter in the xaxis command (&#8216;relsize&#8217;) is just a random string when you use xaxis with a dummy variable. Parameter [&hellip;]<\/p>\n","protected":false},"author":2,"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":[15,16],"ssl-alp-coauthor":[7],"class_list":["post-38","post","type-post","status-publish","format-standard","hentry","category-finesse-2","tag-aperture","tag-loss"],"_links":{"self":[{"href":"https:\/\/logbooks.ifosim.org\/pykat\/wp-json\/wp\/v2\/posts\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/logbooks.ifosim.org\/pykat\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/logbooks.ifosim.org\/pykat\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/pykat\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/pykat\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":9,"href":"https:\/\/logbooks.ifosim.org\/pykat\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"predecessor-version":[{"id":245,"href":"https:\/\/logbooks.ifosim.org\/pykat\/wp-json\/wp\/v2\/posts\/38\/revisions\/245"}],"wp:attachment":[{"href":"https:\/\/logbooks.ifosim.org\/pykat\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/pykat\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/pykat\/wp-json\/wp\/v2\/tags?post=38"},{"taxonomy":"ssl-alp-coauthor","embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/pykat\/wp-json\/wp\/v2\/ssl-alp-coauthor?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}