{"id":68,"date":"2023-06-26T10:30:17","date_gmt":"2023-06-26T08:30:17","guid":{"rendered":"https:\/\/logbooks.ifosim.org\/oscar\/?p=68"},"modified":"2023-06-26T10:30:17","modified_gmt":"2023-06-26T08:30:17","slug":"how-to-add-astigmatic-surfaces","status":"publish","type":"post","link":"https:\/\/logbooks.ifosim.org\/oscar\/2023\/06\/26\/how-to-add-astigmatic-surfaces\/","title":{"rendered":"How to add astigmatic surfaces ?"},"content":{"rendered":"\n<p>The first way in OSCAR would be to use the function <em>Add_Astigmatism()<\/em>, it will add to the surface (object of class <em>Interface<\/em>) a Zernike polynomial of order 2,0 whose amplitude is given as a parameter. That is not always practical, as astigmatism is usually given as difference of radii of curvature.<\/p>\n\n\n\n<p>For large Radii of Curvature (RoC &gt;&gt; size of the grid), it is possible to input directly an astigmatic surface. For example in the following code we define a RoC of 998m in X and 1002 in Y for the <em>Interfac<\/em>e EM_HR:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nEM_HR = Interface(G1,'RoC',inf,'T',5E-6);\n\nAstigma_RoC = 2;\nRoC_X = -1000 - Astigma_RoC;\nRoC_Y = -1000 + Astigma_RoC;\nEM_HR.surface = (1\/(2*RoC_X)*G1.D2_X.^2 + 1\/(2*RoC_Y)*G1.D2_Y.^2); % G1 is the simulation grid, could be found also from EM_HR.Grid<\/code><\/pre>\n\n\n\n<p>If someone has the universal formula for parabolic mirrors, with no approximation I am interested.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The first way in OSCAR would be to use the function Add_Astigmatism(), it will add to the surface (object of class Interface) a Zernike polynomial of order 2,0 whose amplitude is given as a parameter. That is not always practical, as astigmatism is usually given as difference of radii of curvature. For large Radii of [&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-68","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\/68","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=68"}],"version-history":[{"count":1,"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/posts\/68\/revisions"}],"predecessor-version":[{"id":69,"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/posts\/68\/revisions\/69"}],"wp:attachment":[{"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/media?parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/categories?post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/tags?post=68"},{"taxonomy":"ssl-alp-inventory-item","embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/ssl-alp-inventory-item?post=68"},{"taxonomy":"ssl-alp-coauthor","embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/oscar\/wp-json\/wp\/v2\/ssl-alp-coauthor?post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}