{"id":1495,"date":"2021-06-01T09:34:24","date_gmt":"2021-06-01T07:34:24","guid":{"rendered":"https:\/\/blog.rwth-aachen.de\/akustik\/?p=1495"},"modified":"2021-06-01T09:34:24","modified_gmt":"2021-06-01T07:34:24","slug":"the-ita-toolbox-comsol-interface","status":"publish","type":"post","link":"https:\/\/blog.rwth-aachen.de\/akustik\/the-ita-toolbox-comsol-interface\/","title":{"rendered":"The ITA-Toolbox COMSOL interface"},"content":{"rendered":"<p>Acoustic simulations become a more and more important toolset for industry and research. For a few years now, our institute uses COMSOL Multiphysics for numerical simulations, e.g. FEM and BEM, in various fields of acoustics. For proper processing of simulation results, we usually rely on MATLAB and the <a href=\"https:\/\/www.ita-toolbox.org\/\">ITA-Toolbox<\/a>. Although COMSOL provides a MATLAB interface (LiveLink), using this for advanced processing is not straightforward. With this in mind, a user-friendly interface between the ITA-Toolbox and COMSOL was designed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1496\" src=\"https:\/\/blog.rwth-aachen.de\/akustik\/files\/2021\/06\/ITA-Toolbox_COMSOL_interface-1024x224.png\" alt=\"\" width=\"665\" height=\"145\" srcset=\"https:\/\/blog.rwth-aachen.de\/akustik\/files\/2021\/06\/ITA-Toolbox_COMSOL_interface-1024x224.png 1024w, https:\/\/blog.rwth-aachen.de\/akustik\/files\/2021\/06\/ITA-Toolbox_COMSOL_interface-300x66.png 300w, https:\/\/blog.rwth-aachen.de\/akustik\/files\/2021\/06\/ITA-Toolbox_COMSOL_interface-768x168.png 768w, https:\/\/blog.rwth-aachen.de\/akustik\/files\/2021\/06\/ITA-Toolbox_COMSOL_interface-1536x336.png 1536w, https:\/\/blog.rwth-aachen.de\/akustik\/files\/2021\/06\/ITA-Toolbox_COMSOL_interface.png 1600w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><strong>Key features<\/strong><\/p>\n<ul>\n<li>Starting the COMSOL server and connecting Matlab<\/li>\n<li>A rich class structure representing a COMSOL model and its model nodes (geometry, physics, \u2026)<\/li>\n<li>Evaluation of FEM \/ BEM results at arbitrary points using the <em>itaResult<\/em> format without writing the results to hard disk<\/li>\n<li>Quickly applying complex-valued, frequency-dependent data to COMSOL model (<em>itaResult<\/em> -&gt; COMSOL interpolation)<\/li>\n<\/ul>\n<div id=\"attachment_1497\" style=\"width: 310px\" class=\"wp-caption alignright\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1497\" class=\"size-medium wp-image-1497\" src=\"https:\/\/blog.rwth-aachen.de\/akustik\/files\/2021\/06\/ITA-Toolbox_COMSOL_class_structure-300x286.png\" alt=\"\" width=\"300\" height=\"286\" srcset=\"https:\/\/blog.rwth-aachen.de\/akustik\/files\/2021\/06\/ITA-Toolbox_COMSOL_class_structure-300x286.png 300w, https:\/\/blog.rwth-aachen.de\/akustik\/files\/2021\/06\/ITA-Toolbox_COMSOL_class_structure-1024x976.png 1024w, https:\/\/blog.rwth-aachen.de\/akustik\/files\/2021\/06\/ITA-Toolbox_COMSOL_class_structure-768x732.png 768w, https:\/\/blog.rwth-aachen.de\/akustik\/files\/2021\/06\/ITA-Toolbox_COMSOL_class_structure.png 1065w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><p id=\"caption-attachment-1497\" class=\"wp-caption-text\">Class structure of the ITA-Toolbox COMSOL interface<\/p><\/div>\n<p>The class structure makes the usage of this interface intuitive and easily extendable. Similar to the actual COMSOL model, the <em>itaComsolModel<\/em> class contains nodes representing the geometry, physics, study and so on. Each node comes with functions to interact with the respective node. However, the current toolset also allows applying significant changes your model using a single line of Matlab code. For example, the user can apply a user-defined impedance to a pre-defined boundary selection or create a monopole source with a user-defined frequency response. In this case, multiple of those nodes are modified (e.g. geometry and physics).<\/p>\n<p>If you are interested, the interface is part of the ITA-Toolbox, that can be downloaded or cloned from our <a href=\"https:\/\/git.rwth-aachen.de\/ita\/toolbox\">Git repository<\/a>. The related files can be found in the folder \u201c<em>ITA-Toolbox\\applications\\SoundFieldSimulation\\Comsol\\<\/em>\u201d. This also contains a set of small demos for getting started.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Acoustic simulations become a more and more important toolset for industry and research. For a few years now, our institute uses COMSOL Multiphysics for numerical simulations, e.g. FEM and BEM, [&hellip;]<\/p>\n","protected":false},"author":3368,"featured_media":1496,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"c2c_always_allow_admin_comments":false,"footnotes":""},"categories":[83,1,10],"tags":[],"class_list":["post-1495","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-acoustic-simulation","category-ihta","category-toolbox"],"_links":{"self":[{"href":"https:\/\/blog.rwth-aachen.de\/akustik\/wp-json\/wp\/v2\/posts\/1495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.rwth-aachen.de\/akustik\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rwth-aachen.de\/akustik\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rwth-aachen.de\/akustik\/wp-json\/wp\/v2\/users\/3368"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rwth-aachen.de\/akustik\/wp-json\/wp\/v2\/comments?post=1495"}],"version-history":[{"count":33,"href":"https:\/\/blog.rwth-aachen.de\/akustik\/wp-json\/wp\/v2\/posts\/1495\/revisions"}],"predecessor-version":[{"id":1530,"href":"https:\/\/blog.rwth-aachen.de\/akustik\/wp-json\/wp\/v2\/posts\/1495\/revisions\/1530"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.rwth-aachen.de\/akustik\/wp-json\/wp\/v2\/media\/1496"}],"wp:attachment":[{"href":"https:\/\/blog.rwth-aachen.de\/akustik\/wp-json\/wp\/v2\/media?parent=1495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rwth-aachen.de\/akustik\/wp-json\/wp\/v2\/categories?post=1495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rwth-aachen.de\/akustik\/wp-json\/wp\/v2\/tags?post=1495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}