{"id":82,"date":"2023-07-25T17:28:33","date_gmt":"2023-07-25T15:28:33","guid":{"rendered":"https:\/\/logbooks.ifosim.org\/oscar\/?p=82"},"modified":"2023-07-27T11:04:02","modified_gmt":"2023-07-27T09:04:02","slug":"how-to-record-the-transmitted-and-reflected-power-while-scanning-the-cavity","status":"publish","type":"post","link":"https:\/\/logbooks.ifosim.org\/oscar\/2023\/07\/25\/how-to-record-the-transmitted-and-reflected-power-while-scanning-the-cavity\/","title":{"rendered":"How to record the transmitted and reflected power while scanning the cavity ?"},"content":{"rendered":"\n<p>To scan the cavity and display quickly the circulating power, there are 2 dedicated functions optimised for speed and convenience:<br><code>C1 = Cavity_Scan(C1);<br>Display_Scan(C1);<\/code><\/p>\n\n\n\n<p>However one may want to also record the reflected power. One way to do that would be to scan the cavity manually setting a different round trip phase for each iteration. Concretely, once the cavity C1 is defined it looks like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>C1 = Cavity1(IM,EM,1000,E_input); % the cavity is misaligned and not well matched to the input beam\nC1 = Cavity_Resonance_Phase(C1); % will be overwritten later\n\nNb_point = 400;                                     % Number of points for the scan\n\nPhase_scan = zeros(Nb_point,1);                            \nPower_transmitted = zeros(Nb_point,1);              \nPower_reflected = zeros(Nb_point,1);             \n\nfor ii=1:Nb_point\n\n    Phase_scan(ii) = ii*(2*pi)\/Nb_point;          % Scan the round trip phase shift from 0 to 2 pi\n    C1.Resonance_phase = exp(1i*Phase_scan(ii));  % Set the round trip phase shift for the cavity\n    \n    C1 = Calculate_Fields_AC(C1,'accuracy',1E-5);\n    Power_transmitted(ii) = Calculate_Power(C1.Field_trans);           % store the transmitted power\n    Power_reflected(ii) = Calculate_Power(C1.Field_ref);               % and also the reflected one\nend<\/code><\/pre>\n\n\n\n<p>And we can then plot the transmitted power (top plot) and the reflected power (bottom one):<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"554\" src=\"https:\/\/logbooks.ifosim.org\/oscar\/wp-content\/uploads\/sites\/6\/2023\/07\/Results-1024x554.png\" alt=\"\" class=\"wp-image-83\" srcset=\"https:\/\/logbooks.ifosim.org\/oscar\/wp-content\/uploads\/sites\/6\/2023\/07\/Results-1024x554.png 1024w, https:\/\/logbooks.ifosim.org\/oscar\/wp-content\/uploads\/sites\/6\/2023\/07\/Results-300x162.png 300w, https:\/\/logbooks.ifosim.org\/oscar\/wp-content\/uploads\/sites\/6\/2023\/07\/Results-768x416.png 768w, https:\/\/logbooks.ifosim.org\/oscar\/wp-content\/uploads\/sites\/6\/2023\/07\/Results.png 1245w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The technique presented here could also be used to only display a certain sideband during a scan (or an arbitrary sum of sidebands).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To scan the cavity and display quickly the circulating power, there are 2 dedicated functions optimised for speed and convenience:C1 = Cavity_Scan(C1);Display_Scan(C1); However one may want to also record the reflected power. One way to do that would be to scan the cavity manually setting a different round trip phase for each iteration. Concretely, once [&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":[19],"ssl-alp-inventory-item":[],"ssl-alp-coauthor":[12],"class_list":["post-82","post","type-post","status-publish","format-standard","hentry","category-simulations","tag-howto","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-stopic","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\/82","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=82"}],"version-history":[{"count":4,"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/posts\/82\/revisions"}],"predecessor-version":[{"id":87,"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/posts\/82\/revisions\/87"}],"wp:attachment":[{"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/media?parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/categories?post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/tags?post=82"},{"taxonomy":"ssl-alp-inventory-item","embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/ssl-alp-inventory-item?post=82"},{"taxonomy":"ssl-alp-coauthor","embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/ssl-alp-coauthor?post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}