{"id":808,"date":"2013-01-27T22:01:02","date_gmt":"2013-01-27T21:01:02","guid":{"rendered":"http:\/\/inprompt.service.tu-berlin.de\/wordMOSAIC\/?page_id=808"},"modified":"2024-07-14T15:06:57","modified_gmt":"2024-07-14T14:06:57","slug":"ports-and-streams-i-defining-units-by-adding-ports","status":"publish","type":"page","link":"https:\/\/mosaic-modeling.de\/?page_id=808","title":{"rendered":"Use of Ports and Streams I &#8211; Defining Units by Adding Ports"},"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=808\/#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=808\/#Workflow\" >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=808\/#Notation-of-the-model\" >Notation of the model<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mosaic-modeling.de\/?page_id=808\/#Notation-of-the-interface\" >Notation of the interface<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mosaic-modeling.de\/?page_id=808\/#Equations\" >Equations<\/a><\/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=808\/#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=808\/#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=808\/#Equation-system\" >Equation system<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/mosaic-modeling.de\/?page_id=808\/#Evaluation-Simulation\" >Evaluation \/ Simulation<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<p>In this section, the use of ports in MOSAICmodeling is introduced. Ports are useful to define standardized input and output variables and make equation systems usable in flowsheet simulators.\u00a0In MOSAICmodeling, there is no fixed\u00a0specification of the variables in a port or stream. In fact, ports and streams can be defined by the modeler and the variable definitions employed therein are reusable.\u00a0<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Model-description\"><\/span>Model description<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\"><p class=\"ql-left-displayed-equation\" style=\"line-height: 81px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-eb3bdb0133a530fab989583f9165daa2_l3.png\" height=\"81\" width=\"256\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;&#108;&#98;&#32;&#43;&#32;&#121;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#100;&#98;&#32;&#43;&#32;&#112;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#108;&#103;&#114;&#101;&#101;&#110;&#94;&#123;&#50;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#108;&#103;&#114;&#97;&#121;&#125;&#123;&#100;&#103;&#114;&#101;&#101;&#110;&#125;&#32;&#92;&#92;&#091;&#50;&#101;&#120;&#093;&#100;&#103;&#114;&#97;&#121;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#108;&#98;&#32;&#43;&#32;&#98;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#100;&#98;&#94;&#51;&#32;&#61;&#32;&#100;&#103;&#114;&#101;&#101;&#110;&#46;&#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Workflow\"><\/span>Workflow<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>In the following, we demonstrate the workflow for adding ports to an equation system.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Notation-of-the-model\"><\/span>Notation of the model<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Set up a notation with the following base names:<\/p>\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-ad69adf868bc701e561aa555db995f1f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"8\" style=\"vertical-align: 0px;\"\/>, black value<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-361b90986d29aceef8d8c139ecb93975_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#100;&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"17\" style=\"vertical-align: 0px;\"\/>, dark blue value<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-896454b28a10fd28790ba2d8f5c613de_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#100;&#103;&#114;&#97;&#121;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"45\" style=\"vertical-align: -4px;\"\/>, dark gray value<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-7bbb377fe471a9b2b254d4ce87c35f4f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#100;&#103;&#114;&#101;&#101;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"54\" style=\"vertical-align: -4px;\"\/>, dark green value<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-8c331d6e40827576bb1eb91cb7908b59_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#108;&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/>, light blue value<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-1b71d487c24322df42ad601c492befbd_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#108;&#103;&#114;&#97;&#121;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"41\" style=\"vertical-align: -4px;\"\/>, light gray value<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-5d2c3ad069c0f6c51cd020941539e192_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#108;&#103;&#114;&#101;&#101;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"50\" style=\"vertical-align: -4px;\"\/>, light green value<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-5faad0904f612a3fa5b27faafb8dc903_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -4px;\"\/>, pink value<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-38461fc041e953482219abf5d4cce1cb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#121;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: -4px;\"\/>, yellow value<\/li>\n<\/ul>\n<p>The notation has the ID 182761.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Notation-of-the-interface\"><\/span>Notation of the interface<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Set up a second notation with the following base names:<\/p>\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-8c37d2f1acb1d49f3e5e655797880475_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#108;&#97;&#109;&#98;&#100;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: 0px;\"\/>, light color value<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-2d0f4e922bf6aa03f0b4a3128b5a72d5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#97;&#117;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"10\" style=\"vertical-align: 0px;\"\/>, dark color value<\/li>\n<\/ul>\n<p>This notation has the ID 182765.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Equations\"><\/span>Equations<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Create and save the equations from the model with the specified notation. The equations have IDs 182762 and 182763.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Interface\"><\/span>Interface<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>As mentioned above, the specification of the variables contained in a port or stream must be defined by the user. This is done with the help of a model element called Interface. An Interface contains a list of variables and a notation defining their meaning. Such an interface is used in ports for standardization. Here, we want to define an interface for the light and the dark color values of green and blue.\u00a0<\/p>\n<p>Start by going to the Interface tab an perform the following steps:<\/p>\n<ol>\n<li>Load the notation of the interface; note that the interface does not require a different notation, but we use this option here to show a broader range of applications<\/li>\n<li>Click on &#8220;+ Field Name&#8221; and add <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-8c37d2f1acb1d49f3e5e655797880475_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#108;&#97;&#109;&#98;&#100;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: 0px;\"\/>, render and confirm<\/li>\n<li>Repeat this step with <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-2d0f4e922bf6aa03f0b4a3128b5a72d5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#97;&#117;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"10\" style=\"vertical-align: 0px;\"\/><\/li>\n<li>Make sure that both variables are of dimension Dim Scalar and set In\/Out to In<\/li>\n<li>Save the interface<\/li>\n<\/ol>\n<p>The interface is available with ID 182766.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Connectors\"><\/span>Connectors<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Now we need to connectors for the two ports we want to add. Go to the Connector tab and do the following:<\/p>\n<ol>\n<li>Load the model notation as Sub Notation and the interface notation as Super Notation. This ensures that the external variables (which are specified for the port) are translated to the respective names in the model equations<\/li>\n<li>Add <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-5d2c3ad069c0f6c51cd020941539e192_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#108;&#103;&#114;&#101;&#101;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"50\" style=\"vertical-align: -4px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-7bbb377fe471a9b2b254d4ce87c35f4f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#100;&#103;&#114;&#101;&#101;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"54\" style=\"vertical-align: -4px;\"\/> as Sub variables, and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-8c37d2f1acb1d49f3e5e655797880475_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#108;&#97;&#109;&#98;&#100;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-2d0f4e922bf6aa03f0b4a3128b5a72d5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#97;&#117;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"10\" style=\"vertical-align: 0px;\"\/> as Super variables<\/li>\n<li>Match <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-5d2c3ad069c0f6c51cd020941539e192_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#108;&#103;&#114;&#101;&#101;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"50\" style=\"vertical-align: -4px;\"\/> with <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-8c37d2f1acb1d49f3e5e655797880475_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#108;&#97;&#109;&#98;&#100;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-7bbb377fe471a9b2b254d4ce87c35f4f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#100;&#103;&#114;&#101;&#101;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"54\" style=\"vertical-align: -4px;\"\/> with <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-2d0f4e922bf6aa03f0b4a3128b5a72d5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#97;&#117;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"10\" style=\"vertical-align: 0px;\"\/><\/li>\n<li>Save the connector<\/li>\n<li>Repeat these steps for a new connector to match <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-8c331d6e40827576bb1eb91cb7908b59_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#108;&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/> with <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-8c37d2f1acb1d49f3e5e655797880475_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#108;&#97;&#109;&#98;&#100;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-361b90986d29aceef8d8c139ecb93975_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#100;&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"17\" style=\"vertical-align: 0px;\"\/> with <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-2d0f4e922bf6aa03f0b4a3128b5a72d5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#97;&#117;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"10\" style=\"vertical-align: 0px;\"\/>; save this second connector<\/li>\n<\/ol>\n<p>The connectors are available with IDs 182768 and 182769.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Equation-system\"><\/span>Equation system<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Go to the tab equation system, enter a helpful description, and add the two equations with naming policy &#8216;integrate&#8221;.<\/p>\n<p>Now, we will use the created nterface and the connectors to add ports to the equation system. Interface and connector together define the mapping of the variables of the equation system to the interface variables. For this purpose, proceed to the tab Flowsheeting within the equation system and take the following steps:<\/p>\n<ol>\n<li>Go to the tab External Ports and click on &#8220;+ Port&#8221; at the bottom<\/li>\n<li>Enter the name of the port, i.e., &#8220;Port green&#8221;<\/li>\n<li>Load the interface and the connector for the color green<\/li>\n<li>Click on Check Port Configuration and confirm in case no errors appear<\/li>\n<li>Repeat these steps for the port name &#8220;Port blue&#8221; with the connector for the color blue<\/li>\n<li>Save the equation system<\/li>\n<\/ol>\n<p>We have now created a unit, i.e., an equation system with ports as visualized in Figure 1.The equation system is available with ID 182767.<\/p>\n<p>\u00a0<\/p>\n\n<div class=\"wp-block-image\">\n<\/p>\n<figure class=\"aligncenter\">\n<figure id=\"attachment_850\" aria-describedby=\"caption-attachment-850\" style=\"width: 407px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2013\/01\/figure-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-850 size-full\" src=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2013\/01\/figure-1.jpg\" alt=\"figure 1\" width=\"407\" height=\"496\" srcset=\"https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2013\/01\/figure-1.jpg 407w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2013\/01\/figure-1-246x300.jpg 246w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2013\/01\/figure-1-82x100.jpg 82w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2013\/01\/figure-1-123x150.jpg 123w\" sizes=\"auto, (max-width: 407px) 100vw, 407px\" \/><\/a><figcaption id=\"caption-attachment-850\" class=\"wp-caption-text\">Figure 1: Visualization of the equation system with ports.<\/figcaption><\/figure>\n<\/figure>\n<p>\n<\/div>\n\n<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Evaluation-Simulation\"><\/span>Evaluation \/ Simulation<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Load the equation system and go to Specifications. You now have three namespaces in your model<\/p>\n<ul>\n<li>e0 = namespace of your model<\/li>\n<li>e0p1 = namespace of port 1<\/li>\n<li>e0p2 = namespace of port 2<\/li>\n<\/ul>\n<p>If the ports would have the same namespace, we could not differ between both <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-8c37d2f1acb1d49f3e5e655797880475_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#108;&#97;&#109;&#98;&#100;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-2d0f4e922bf6aa03f0b4a3128b5a72d5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#97;&#117;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"10\" style=\"vertical-align: 0px;\"\/>.<\/p>\n<p>Assign the <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-8c37d2f1acb1d49f3e5e655797880475_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#108;&#97;&#109;&#98;&#100;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-2d0f4e922bf6aa03f0b4a3128b5a72d5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#97;&#117;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"10\" style=\"vertical-align: 0px;\"\/> from both ports as design values as well as <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-ad69adf868bc701e561aa555db995f1f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"8\" style=\"vertical-align: 0px;\"\/>, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-1b71d487c24322df42ad601c492befbd_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#108;&#103;&#114;&#97;&#121;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"41\" style=\"vertical-align: -4px;\"\/>, and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-896454b28a10fd28790ba2d8f5c613de_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#100;&#103;&#114;&#97;&#121;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"45\" style=\"vertical-align: -4px;\"\/>. Also, assign <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-5faad0904f612a3fa5b27faafb8dc903_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -4px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-38461fc041e953482219abf5d4cce1cb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#121;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: -4px;\"\/> as iteration values. Then, save the variable specification and the simulation. The simulation has the ID 182770 while the variable specification has the ID 182771.<\/p>\n<p>We will not solve this example as this is again relatively straight-forward with any feasible specification of the system.<\/p>","protected":false},"excerpt":{"rendered":"<p>In this section, the use of ports in MOSAICmodeling is introduced. Ports are useful to define standardized input and output variables and make equation systems usable in flowsheet simulators.\u00a0In MOSAICmodeling, there is no fixed\u00a0specification of the variables in a port or stream. In fact, ports and streams can be defined by the modeler and the [&hellip;]<\/p>\n","protected":false},"author":188,"featured_media":0,"parent":834,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-808","page","type-page","status-publish","czr-hentry"],"_links":{"self":[{"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/808","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=808"}],"version-history":[{"count":67,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/808\/revisions"}],"predecessor-version":[{"id":6156,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/808\/revisions\/6156"}],"up":[{"embeddable":true,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/834"}],"wp:attachment":[{"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}