{"id":92117,"date":"2024-08-27T17:33:50","date_gmt":"2024-08-27T15:33:50","guid":{"rendered":"https:\/\/fusion.bsc.es\/?p=92117"},"modified":"2024-08-27T17:38:31","modified_gmt":"2024-08-27T15:38:31","slug":"new-feature-to-control-the-memory-consumption-implemented-in-the-jorek-code","status":"publish","type":"post","link":"https:\/\/fusion.bsc.es\/index.php\/2024\/08\/27\/new-feature-to-control-the-memory-consumption-implemented-in-the-jorek-code\/","title":{"rendered":"New feature to control the memory consumption implemented in the JOREK code"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-92127\" src=\"http:\/\/fusion.bsc.es\/wp-content\/uploads\/TitleMatrixCompression_PPCF.png\" alt=\"\" width=\"650\" height=\"311\" srcset=\"https:\/\/fusion.bsc.es\/wp-content\/uploads\/TitleMatrixCompression_PPCF.png 738w, https:\/\/fusion.bsc.es\/wp-content\/uploads\/TitleMatrixCompression_PPCF-400x191.png 400w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/p>\n<p style=\"text-align: justify;\">A method to control and optimize memory consumption has been implemented in the <a href=\"https:\/\/www.jorek.eu\/\">JOREK<\/a> MHD code. It has been documented in <strong>the manuscript titled &#8220;<em>Implementation of matrix compression in the coupling of JOREK to realistic 3D conducting wall structures<\/em>&#8221; by Federico Cipolletta and collaborators, which was accepted for publication in the <a href=\"https:\/\/iopscience.iop.org\/journal\/0741-3335\">Plasma Physics and Controlled Fusion (PPCF)<\/a> journal on 22\/08\/2024<\/strong>\u00a0and is available at this <a href=\"https:\/\/iopscience.iop.org\/article\/10.1088\/1361-6587\/ad728a\">link<\/a>.<!--more--><\/p>\n<p style=\"text-align: justify;\">The study considers the extension of JOREK including free-boundary and resistive walls, allowed via the couplings to either the <a href=\"https:\/\/iopscience.iop.org\/article\/10.1088\/1742-6596\/401\/1\/012010\/meta\">STARWALL<\/a> or <a href=\"https:\/\/pubs.aip.org\/aip\/pop\/article\/30\/11\/113901\/2919514\">CARIDDI<\/a> codes. Those tools provide information on the interactions between the plasma and the conducting structures enveloping the walls of a nuclear fusion reactor within response matrices, which can become overwhelmingly big for models in high resolution. Therefore, compressing such matrices is needed to obtain accurate results with modern-day CPUs. <strong>The matrix compression of this novel implementation within the JOREK&#8217;s framework is pursued via the truncated Singular Value Decomposition (SVD) method.<\/strong>\u00a0It is used in the first exploration of the compressibility of response matrices with the simulation of Tearing Mode (TM) instabilities and Vertical Displacement Events (VDE), focusing on its advantages and limitations.<\/p>\n<table width=\"650px\" align=\"aligncenter\">\n<tbody>\n<tr>\n<td align=\"aligncenter\">\n<p><figure id=\"attachment_92132\" aria-describedby=\"caption-attachment-92132\" style=\"width: 290px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-92132\" src=\"http:\/\/fusion.bsc.es\/wp-content\/uploads\/STARWALLgeometryAUG-400x322.png\" alt=\"\" width=\"300\" height=\"242\" srcset=\"https:\/\/fusion.bsc.es\/wp-content\/uploads\/STARWALLgeometryAUG-400x322.png 400w, https:\/\/fusion.bsc.es\/wp-content\/uploads\/STARWALLgeometryAUG.png 535w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><figcaption id=\"caption-attachment-92132\" class=\"wp-caption-text\">The geometry of the AUG Tokamak used with the STARWALL&#8217;s thin-wall modeling, in the study of the publication<\/figcaption><\/figure><\/td>\n<td align=\"aligncenter\">\n<p><figure id=\"attachment_92133\" aria-describedby=\"caption-attachment-92133\" style=\"width: 290px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-92133\" src=\"http:\/\/fusion.bsc.es\/wp-content\/uploads\/CARIDDIgeometryAUG-400x312.png\" alt=\"\" width=\"300\" height=\"234\" srcset=\"https:\/\/fusion.bsc.es\/wp-content\/uploads\/CARIDDIgeometryAUG-400x312.png 400w, https:\/\/fusion.bsc.es\/wp-content\/uploads\/CARIDDIgeometryAUG.png 615w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><figcaption id=\"caption-attachment-92133\" class=\"wp-caption-text\">The geometry of the AUG Tokamak used with the CARIDDI&#8217;s full-3d modeling, in the study of the publication<\/figcaption><\/figure><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify;\">The publication in the journal&#8217;s full formatting will appear on an open-access basis in the &#8220;<a href=\"https:\/\/iopscience.iop.org\/collections\/ppcf-231220-444\">Special Issue on High Performance Supercomputing (HPC) in Fusion Research 2023<\/a>&#8220;, where some of the works presented at the <a href=\"https:\/\/fusion.bsc.es\/index.php\/2023\/12\/04\/4th-fusion-hpc-workshop\/\">4th Fusion HPC Workshop<\/a> are gathered. It is worth noting that, although <strong>the final objective of the study is the application to the geometry of big Tokamaks, like ITER or DEMO<\/strong>, this first part is focused on a proof-of-concept, based on the geometry of ASDEX Upgrade (AUG), to understand the feasibility of compression of the matrices mentioned above. Interestingly, despite the simplicity of the method implemented, one satisfying rate of compression can be effectively reached in the TM scenario. Nevertheless, <strong>the related work is still ongoing in studying alternative compression methods to improve the results for VDE cases<\/strong>, where the compression via truncated SVD appears inefficient.<\/p>\n<p style=\"text-align: justify;\"><strong>This work comes from one of the activities at the <a href=\"http:\/\/www.euro-fusion.org\">EUROfusion<\/a> <a href=\"https:\/\/fusion.bsc.es\/index.php\/2024\/06\/18\/achs-key-players-to-boost-the-enhancement-of-fusion-codes\/\">Advanced Computing Hub (ACH)<\/a> at the Barcelona Supercomputing Center (BSC)<\/strong>. It represents an additional example of success in the search for synergies between Technology and Theoretical Research in Nuclear Fusion, where the HPC is gaining more and more importance, as time goes by.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A method to control and optimize memory consumption has been implemented in the JOREK MHD code. It has been documented in the manuscript titled &#8220;Implementation of matrix compression in the coupling of JOREK to realistic 3D conducting wall structures&#8221; by Federico Cipolletta and collaborators, which was accepted for publication in the Plasma Physics and Controlled &#8230; <a title=\"New feature to control the memory consumption implemented in the JOREK code\" class=\"read-more\" href=\"https:\/\/fusion.bsc.es\/index.php\/2024\/08\/27\/new-feature-to-control-the-memory-consumption-implemented-in-the-jorek-code\/\" aria-label=\"Read more about New feature to control the memory consumption implemented in the JOREK code\">Read more<\/a><\/p>\n","protected":false},"author":44,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,29],"tags":[],"class_list":["post-92117","post","type-post","status-publish","format-standard","hentry","category-group","category-publicaton"],"_links":{"self":[{"href":"https:\/\/fusion.bsc.es\/index.php\/wp-json\/wp\/v2\/posts\/92117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fusion.bsc.es\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fusion.bsc.es\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fusion.bsc.es\/index.php\/wp-json\/wp\/v2\/users\/44"}],"replies":[{"embeddable":true,"href":"https:\/\/fusion.bsc.es\/index.php\/wp-json\/wp\/v2\/comments?post=92117"}],"version-history":[{"count":31,"href":"https:\/\/fusion.bsc.es\/index.php\/wp-json\/wp\/v2\/posts\/92117\/revisions"}],"predecessor-version":[{"id":92152,"href":"https:\/\/fusion.bsc.es\/index.php\/wp-json\/wp\/v2\/posts\/92117\/revisions\/92152"}],"wp:attachment":[{"href":"https:\/\/fusion.bsc.es\/index.php\/wp-json\/wp\/v2\/media?parent=92117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fusion.bsc.es\/index.php\/wp-json\/wp\/v2\/categories?post=92117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fusion.bsc.es\/index.php\/wp-json\/wp\/v2\/tags?post=92117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}