{"id":834,"date":"2013-01-30T08:31:54","date_gmt":"2013-01-30T07:31:54","guid":{"rendered":"http:\/\/inprompt.service.tu-berlin.de\/wordMOSAIC\/?page_id=834"},"modified":"2023-09-10T12:57:45","modified_gmt":"2023-09-10T11:57:45","slug":"ports","status":"publish","type":"page","link":"https:\/\/mosaic-modeling.de\/?page_id=834","title":{"rendered":"Examples: Ports and streams"},"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=5819\/#Model-description\" >Model description<\/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=5819\/#Modeling-workflow\" >Modeling workflow<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5819\/#Notation-for-stream-interface\" >Notation for stream interface<\/a><ul class='ez-toc-list-level-5' ><li class='ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5819\/#Base-names\" >Base names<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5819\/#Indices\" >Indices<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5819\/#Interface\" >Interface<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5819\/#Connectors\" >Connectors<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5819\/#Equation-systems\" >Equation systems<\/a><ul class='ez-toc-list-level-5' ><li class='ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5819\/#Condenser-system\" >Condenser system<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5819\/#Tray-system\" >Tray system<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5819\/#Reboiler-system\" >Reboiler system<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5819\/#Flowsheet\" >Flowsheet<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5819\/#Simulation-workflow\" >Simulation workflow<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5819\/#Equation-system-and-Indexing\" >Equation system and Indexing<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5819\/#Initialization-and-results\" >Initialization and results<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<p style=\"text-align: justify;\">Large equation systems may represent a unit in the chemical engineering <span style=\"line-height: 19.5px;\">sense. It makes sense to restrict the accessibility of the variables\u00a0<\/span><span style=\"line-height: 19.5px;\">of such Equation Systems and, in a second step, add standardized output <\/span><span style=\"line-height: 19.5px;\">interfaces to them. This way, all incoming and outgoing material streams <\/span><span style=\"line-height: 19.5px;\">in a model of a process unit can have exactly the same notation. <\/span><span style=\"line-height: 19.5px;\">It <\/span><span style=\"line-height: 19.5px;\">would also be possible to define interfaces that represent control inputs and <\/span><span style=\"line-height: 19.5px;\">outputs, etc. To provide this kinds of standardized access points, MOSAICmodeling <\/span><span style=\"line-height: 19.5px;\">allows the user to specify ports.<\/span><span style=\"line-height: 19.5px;\">\u00a0<\/span><span style=\"line-height: 19.5px;\">Ports belong to an equation system and cannot exist independently. <\/span><span style=\"line-height: 19.5px;\">They have a distinct name, an identification numberand, contains the names of the two ports it connects, and an indication to the interface it uses. Two units with ports can be connected by streams.<\/span><\/p>\n<p>In this section, examples for using connectors in MOSAICmodeling are given. The examples are visible to all users and the examples always note the ID of the respective element. Therefore, you can always consult this solution if you do not know how to proceed.<\/p>\n<ul>\n<li><strong>\u201cUse of Ports and Streams I &#8211; Defining Units by Adding Ports\u201d<\/strong> explains the basics of ports.<\/li>\n<li><strong>\u201cUse of Ports and Streams II &#8211; Using Streams to Connect Ports of Units\u201d<\/strong> shows how units can be connected with streams.<\/li>\n<li><strong>\u201cUse of Ports and Streams III &#8211; Creating a Unit for Flowsheet Simulators\u201d<\/strong> demonstrates how units can be exported to ChemCAD and Aspen Plus<\/li>\n<li><strong>\u201cUse of Ports and Streams IV \u2013 Creating Condenser, Trays, and Reboiler as Units and Connecting them with Streams\u201d<\/strong> continues example V for connectors by creating condenser, trays, and reboiler as units and connecting them with ports and streams<\/li>\n<\/ul>\n<div id=\"ccchildpages-1\" class=\"ccchildpages ccflex threecol ccblue ccclearfix\"><div class=\"ccchildpage  ccfirst ccodd ccpage-count-1 ccpage-id-808 ccpage-ports-and-streams-i-defining-units-by-adding-ports ccpage-has-parent ccpage-pid-834 ccpage-parent-ports\"><h3 class=\"ccpage_title ccpage_linked_title\" title=\"Use of Ports and Streams I &#8211; Defining Units by Adding Ports\"><a class=\"ccpage_title_link\" href=\"https:\/\/mosaic-modeling.de\/?page_id=808\" title=\"Use of Ports and Streams I &#8211; Defining Units by Adding Ports\">Use of Ports and Streams I &#8211; Defining Units by Adding Ports<\/a><\/h3><div class=\"ccpages_excerpt\">In this section, the use of ports in MOSAICmodeling is...<\/div><p class=\"ccpages_more\"><a href=\"https:\/\/mosaic-modeling.de\/?page_id=808\"  title=\"Read more ...\">Read more ...<\/a><\/p><\/div><div class=\"ccchildpage  cceven ccpage-count-2 ccpage-id-856 ccpage-ports-and-streams-ii-using-streams-to-connect-ports-of-units ccpage-has-parent ccpage-pid-834 ccpage-parent-ports\"><h3 class=\"ccpage_title ccpage_linked_title\" title=\"Use of Ports and Streams II &#8211; Using Streams to Connect Units\"><a class=\"ccpage_title_link\" href=\"https:\/\/mosaic-modeling.de\/?page_id=856\" title=\"Use of Ports and Streams II &#8211; Using Streams to Connect Units\">Use of Ports and Streams II &#8211; Using Streams to Connect Units<\/a><\/h3><div class=\"ccpages_excerpt\">In this section the flash created in the third example...<\/div><p class=\"ccpages_more\"><a href=\"https:\/\/mosaic-modeling.de\/?page_id=856\"  title=\"Read more ...\">Read more ...<\/a><\/p><\/div><div class=\"ccchildpage  cclast ccodd ccpage-count-3 ccpage-id-2855 ccpage-ports-and-streams-iii-export-to-flowsheeting-environments ccpage-has-parent ccpage-pid-834 ccpage-parent-ports\"><h3 class=\"ccpage_title ccpage_linked_title\" title=\"Use of Ports and Streams III &#8211; Creating a Unit for Flowsheet Simulators\"><a class=\"ccpage_title_link\" href=\"https:\/\/mosaic-modeling.de\/?page_id=2855\" title=\"Use of Ports and Streams III &#8211; Creating a Unit for Flowsheet Simulators\">Use of Ports and Streams III &#8211; Creating a Unit for Flowsheet Simulators<\/a><\/h3><div class=\"ccpages_excerpt\">ChemCAD The unit export to the User Added Module of...<\/div><p class=\"ccpages_more\"><a href=\"https:\/\/mosaic-modeling.de\/?page_id=2855\"  title=\"Read more ...\">Read more ...<\/a><\/p><\/div><div class=\"ccchildpage  ccfirst cceven ccpage-count-4 ccpage-id-5819 ccpage-use-of-ports-and-streams-iv-creating-condenser-trays-and-reboiler-as-units-and-connecting-them-with-streams ccpage-has-parent ccpage-pid-834 ccpage-parent-ports\"><h3 class=\"ccpage_title ccpage_linked_title\" title=\"Use of Ports and Streams IV \u2013 Creating Condenser, Trays, and Reboiler as Units and Connecting them with Streams\"><a class=\"ccpage_title_link\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5819\" title=\"Use of Ports and Streams IV \u2013 Creating Condenser, Trays, and Reboiler as Units and Connecting them with Streams\">Use of Ports and Streams IV \u2013 Creating Condenser, Trays, and Reboiler as Units and Connecting them with Streams<\/a><\/h3><div class=\"ccpages_excerpt\">This example extends example V for connectors. But instead of...<\/div><p class=\"ccpages_more\"><a href=\"https:\/\/mosaic-modeling.de\/?page_id=5819\"  title=\"Read more ...\">Read more ...<\/a><\/p><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Large equation systems may represent a unit in the chemical engineering sense. It makes sense to restrict the accessibility of the variables\u00a0of such Equation Systems and, in a second step, add standardized output interfaces to them. This way, all incoming and outgoing material streams in a model of a process unit can have exactly the [&hellip;]<\/p>\n","protected":false},"author":188,"featured_media":0,"parent":4731,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-834","page","type-page","status-publish","czr-hentry"],"_links":{"self":[{"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/834","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\/188"}],"replies":[{"embeddable":true,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=834"}],"version-history":[{"count":25,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/834\/revisions"}],"predecessor-version":[{"id":5821,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/834\/revisions\/5821"}],"up":[{"embeddable":true,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/4731"}],"wp:attachment":[{"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}