{"id":4149,"date":"2023-03-18T11:32:24","date_gmt":"2023-03-18T10:32:24","guid":{"rendered":"http:\/\/mosaic-modeling.de\/?page_id=4149"},"modified":"2023-08-22T09:45:50","modified_gmt":"2023-08-22T08:45:50","slug":"model-interface","status":"publish","type":"page","link":"https:\/\/mosaic-modeling.de\/?page_id=4149","title":{"rendered":"Model: Interface"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">On this page<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mosaic-modeling.de\/?page_id=4149\/#Purpose\" >Purpose<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mosaic-modeling.de\/?page_id=4149\/#Explanation-of-the-editor\" >Explanation of the editor<\/a><\/li><\/ul><\/nav><\/div>\n\n<p class=\"has-vivid-cyan-blue-color has-text-color\"><strong>Optional element<\/strong><\/p>\n\n\n<p>Modeling physical phenomena with descriptive equations also requires the use of well defined variable sets to make sure that the units within the equations are correct and to avoid errors. An Interface for a chemical engineering unit could contain the variables <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-88df03c55e081c7cd9da4e7d74ba7265_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#70;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/>, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-aef4db79611396af66b71853f08d4b29_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#122;&#95;&#99;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"14\" style=\"vertical-align: -3px;\"\/>, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-fda1e51b12ba3624074fcbebad72b1fc_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#80;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/>, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-7e093fd43ad2c244140c11afe4d4bdff_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#84;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"13\" style=\"vertical-align: 0px;\"\/>, and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-d4b432605ef5750fdc8e364f5bc8beea_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#119;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"13\" style=\"vertical-align: 0px;\"\/>. The notation for such an interface would explain <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-88df03c55e081c7cd9da4e7d74ba7265_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#70;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/> as molar feed stream, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-aef4db79611396af66b71853f08d4b29_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#122;&#95;&#99;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"14\" style=\"vertical-align: -3px;\"\/> as molar fraction of the composition (phase independent), <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-fda1e51b12ba3624074fcbebad72b1fc_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#80;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/> as pressure, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-7e093fd43ad2c244140c11afe4d4bdff_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#84;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"13\" style=\"vertical-align: 0px;\"\/> as temperature, and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-d4b432605ef5750fdc8e364f5bc8beea_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#119;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"13\" style=\"vertical-align: 0px;\"\/> as vapor fraction.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Purpose\"><\/span>Purpose<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Interfaces standardize communication between model elements, e.g., when<\/p>\n<ul>\n<li>connecting different process units via streams<\/li>\n<li>making calls to external functions<\/li>\n<\/ul>\n<p>They define what information can be exchanged, specifically<\/p>\n<ul>\n<li>variable name<\/li>\n<li>description<\/li>\n<li>dimension (scalar or vector)<\/li>\n<li>direction (in or out or in\/out)<\/li>\n<li>engineering unit<\/li>\n<\/ul>\n<p>Note that they<strong>\u00a0do not<\/strong>\u00a0represent the actual external function, but only provide the interface. This is discussed further in\u00a0<a href=\"http:\/\/mosaic-modeling.de\/?page_id=4154\" target=\"_blank\" rel=\"noreferrer noopener\">functions<\/a>.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Explanation-of-the-editor\"><\/span>Explanation of the editor<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Figure 1 shows the interface editor whereas Table 1 explains the entries of the interface editor.<\/p>\n<figure id=\"attachment_4881\" aria-describedby=\"caption-attachment-4881\" style=\"width: 1920px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2023\/08\/Editor_Interface.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4881 size-full\" src=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2023\/08\/Editor_Interface.png\" alt=\"\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2023\/08\/Editor_Interface.png 1920w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2023\/08\/Editor_Interface-300x169.png 300w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2023\/08\/Editor_Interface-1024x576.png 1024w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2023\/08\/Editor_Interface-768x432.png 768w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2023\/08\/Editor_Interface-1536x864.png 1536w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2023\/08\/Editor_Interface-1110x624.png 1110w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2023\/08\/Editor_Interface-528x297.png 528w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/a><figcaption id=\"caption-attachment-4881\" class=\"wp-caption-text\">Figure 1: The interface editor lets you define interfaces that can, for example, be used for external function calls.<\/figcaption><\/figure>\n\n\n<figure class=\"wp-block-table is-style-stripes has-small-font-size\"><table><thead><tr><th class=\"has-text-align-center\" data-align=\"center\">Element<\/th><th class=\"has-text-align-left\" data-align=\"left\">Explanation<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\">File<\/td><td class=\"has-text-align-left\" data-align=\"left\">Filename of your interface once you have saved or loaded it<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Notation<\/td><td class=\"has-text-align-left\" data-align=\"left\">Notation on which your interface is based<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Description<\/td><td class=\"has-text-align-left\" data-align=\"left\">Description of your interface, e.g., its purpose. A description is always necessary<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Keywords<\/td><td class=\"has-text-align-left\" data-align=\"left\">Optional keywords for your interface<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Usages<\/td><td class=\"has-text-align-left\" data-align=\"left\">Model elements, i.e., equations or functions, in which the interface is used<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Interface fields<\/td><td class=\"has-text-align-left\" data-align=\"left\">List of all variables that are known to the interface<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">View Notation<\/td><td class=\"has-text-align-left\" data-align=\"left\">Overview of the symbols in the loaded notation<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Pattern Assistance<\/td><td class=\"has-text-align-left\" data-align=\"left\">Provides additional information on the use of the interface. For example, you can declare that this interface will be used for a function definition<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Table 1: Elements of the interface editor.<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Optional element Modeling physical phenomena with descriptive equations also requires the use of well defined variable sets to make sure that the units within the equations are correct and to avoid errors. An Interface for a chemical engineering unit could contain the variables , , , , and . The notation for such an interface [&hellip;]<\/p>\n","protected":false},"author":252,"featured_media":0,"parent":4140,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-4149","page","type-page","status-publish","czr-hentry"],"_links":{"self":[{"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/4149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/users\/252"}],"replies":[{"embeddable":true,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4149"}],"version-history":[{"count":9,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/4149\/revisions"}],"predecessor-version":[{"id":5681,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/4149\/revisions\/5681"}],"up":[{"embeddable":true,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/4140"}],"wp:attachment":[{"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}