{"id":2855,"date":"2016-02-25T09:40:57","date_gmt":"2016-02-25T08:40:57","guid":{"rendered":"http:\/\/mosaic-modeling.de\/?page_id=2855"},"modified":"2024-07-14T15:08:31","modified_gmt":"2024-07-14T14:08:31","slug":"ports-and-streams-iii-export-to-flowsheeting-environments","status":"publish","type":"page","link":"https:\/\/mosaic-modeling.de\/?page_id=2855","title":{"rendered":"Use of Ports and Streams III &#8211; Creating a Unit for Flowsheet Simulators"},"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-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mosaic-modeling.de\/?page_id=2855\/#ChemCAD\" >ChemCAD<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mosaic-modeling.de\/?page_id=2855\/#Aspen-Plus\" >Aspen Plus<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mosaic-modeling.de\/?page_id=2855\/#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-4\" href=\"https:\/\/mosaic-modeling.de\/?page_id=2855\/#Workflow-within-MOSAICmodeling\" >Workflow within MOSAICmodeling<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mosaic-modeling.de\/?page_id=2855\/#Engineering-Units\" >Engineering Units<\/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=2855\/#Notation\" >Notation<\/a><ul class='ez-toc-list-level-5' ><li class='ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mosaic-modeling.de\/?page_id=2855\/#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-8\" href=\"https:\/\/mosaic-modeling.de\/?page_id=2855\/#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-9\" href=\"https:\/\/mosaic-modeling.de\/?page_id=2855\/#Interfaces\" >Interfaces<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/mosaic-modeling.de\/?page_id=2855\/#Function\" >Function<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/mosaic-modeling.de\/?page_id=2855\/#Connectors\" >Connectors<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/mosaic-modeling.de\/?page_id=2855\/#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-13\" href=\"https:\/\/mosaic-modeling.de\/?page_id=2855\/#Code-Generation\" >Code Generation<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/mosaic-modeling.de\/?page_id=2855\/#Workflow-within-Aspen-Custom-Modeler\" >Workflow within Aspen Custom Modeler<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/mosaic-modeling.de\/?page_id=2855\/#Configuration-of-the-component-list\" >Configuration of the component list<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/mosaic-modeling.de\/?page_id=2855\/#Creation-of-new-model\" >Creation of new model<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/mosaic-modeling.de\/?page_id=2855\/#Export-of-ACM-model-to-Aspen-Plus\" >Export of ACM model to Aspen Plus<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"ChemCAD\"><\/span>ChemCAD<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The unit export to the User Added Module of Chemstations&#8217; ChemCAD exists only as PDF thus far and can be obtained <a href=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2016\/02\/Exporting-Models-from-MOSAIC-to-Chemcad.pdf\">here<\/a>. Currently, developing this feature further is not prioritized.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Aspen-Plus\"><\/span>Aspen Plus<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>This example shows how to export self-implemented models from MOSAICmodeling via Aspen Custom Modeler (ACM) to Aspen Plus in order to take advantage of Aspen&#8217;s property functions and integrate customized unit operation models into a flowsheet. The following description can also be obtained as a PDF <a href=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/Exporting-Models-from-MOSAIC-to-Aspen.pdf\">here<\/a>.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Model-description\"><\/span>Model description<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>We want to export the model of a mixer as unit from MOSAICmodeling. The model equations, which are based on the MESHI approach, are shown below:<\/p>\n<p style=\"text-align: justify;\"><p class=\"ql-left-displayed-equation\" style=\"line-height: 177px;\"><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-bdb7072a163041111027b769ee250aff_l3.png\" height=\"177\" width=\"357\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;&#38;&#48;&#32;&#61;&#32;&#70;&#95;&#123;&#115;&#61;&#49;&#125;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#120;&#95;&#123;&#115;&#61;&#49;&#44;&#99;&#125;&#32;&#43;&#32;&#70;&#95;&#123;&#115;&#61;&#50;&#125;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#120;&#95;&#123;&#115;&#61;&#50;&#44;&#99;&#125;&#32;&#45;&#32;&#70;&#95;&#123;&#115;&#61;&#51;&#125;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#120;&#95;&#123;&#115;&#61;&#51;&#44;&#99;&#125;&#32;&#92;&#92;&#091;&#50;&#101;&#120;&#093;&#38;&#48;&#32;&#61;&#32;&#70;&#95;&#123;&#115;&#61;&#49;&#125;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#104;&#95;&#123;&#115;&#61;&#49;&#125;&#32;&#43;&#32;&#70;&#95;&#123;&#115;&#61;&#50;&#125;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#104;&#95;&#123;&#115;&#61;&#50;&#125;&#32;&#45;&#32;&#70;&#95;&#123;&#115;&#61;&#51;&#125;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#104;&#95;&#123;&#115;&#61;&#51;&#125;&#32;&#92;&#92;&#091;&#50;&#101;&#120;&#093;&#38;&#48;&#32;&#61;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#99;&#61;&#49;&#125;&#94;&#123;&#78;&#67;&#125;&#32;&#120;&#95;&#123;&#115;&#61;&#51;&#44;&#99;&#125;&#32;&#92;&#92;&#091;&#50;&#101;&#120;&#093;&#38;&#48;&#32;&#61;&#32;&#80;&#95;&#123;&#115;&#61;&#49;&#125;&#32;&#45;&#32;&#80;&#95;&#123;&#115;&#61;&#51;&#125;&#32;&#45;&#32;&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#80;&#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n<p>The model consists of the component mole balance and the energy balance. In addition, the mole fractions of the outlet must sum up to one. This equation is only formulated for the output because the inlet composition is usually determined by the user or by an upstream unit. Finally, the mixer can include a pressure drop.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Workflow-within-MOSAICmodeling\"><\/span>Workflow within MOSAICmodeling<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The first steps must be taken in MOSAICmodeling.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Engineering-Units\"><\/span>Engineering Units<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>The ACM export operates on engineering units. Therefore, you need to set up a set of engineering units in the Engineering Unit Set of the &#8220;Model&#8221; section:<\/p>\n<ol>\n<li>Add the following units to your unit set, either by creating them yourself or by using the pre-defined units in our model library:\n<ul>\n<li>bar<\/li>\n<li>\u00b0C<\/li>\n<li>m\u00b3 per kmol<\/li>\n<li>GJ\/kmol<\/li>\n<li>kmol\/h<\/li>\n<li>kmol\/kmol<\/li>\n<\/ul>\n<\/li>\n<li>Save the unit set<\/li>\n<\/ol>\n<p>The unit set is available with ID 182841.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Notation\"><\/span>Notation<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Go to the Notation tab and add the following symbols to your notation:<\/p>\n<h5 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Base-names\"><\/span>Base names<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-650ef57c21b1fe78759cac973d01063b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#80;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"29\" style=\"vertical-align: 0px;\"\/>, pressure drop<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-7b2034939b850e3311120fca462ab64e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#104;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/>, temperature<\/li>\n<li><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;\"\/>, mole flow<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-2ce27f7d2d82e3b238176ec7e7ee9118_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: 0px;\"\/>, molar enthalpy<\/li>\n<li><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;\"\/>, Pressure<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-796872219106704832bd95ce08640b7b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#118;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/>, molar volume<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-7e5fbfa0bbbd9f3051cd156a0f1b5e31_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"10\" style=\"vertical-align: 0px;\"\/>, mole fraction<\/li>\n<\/ul>\n<h5><span class=\"ez-toc-section\" id=\"Indices\"><\/span>Indices<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-276a76eafbebc4494deafceec7cc4ddd_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#99;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"8\" style=\"vertical-align: 0px;\"\/>, component index 1..NC<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-1edc883862ceed1a21913f60358e31d8_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#115;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"8\" style=\"vertical-align: 0px;\"\/>, stream index 1..NS<\/li>\n<\/ul>\n<p>Proceed to the Engineering Units tab and then go to Unit Preassignment. Assign the following units to the variables specified below:<\/p>\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-650ef57c21b1fe78759cac973d01063b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#80;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"29\" style=\"vertical-align: 0px;\"\/>: bar<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-7b2034939b850e3311120fca462ab64e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#104;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/>: \u00b0C<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-7fd810be78178579eb8b816e030d2e47_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#70;&#95;&#115;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"17\" style=\"vertical-align: -3px;\"\/>: kmol\/h<\/li>\n<li><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;\"\/>: bar<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-49e88623ecc633c437da4c44b47943e4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;&#95;&#115;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"16\" style=\"vertical-align: -3px;\"\/>: GJ\/kmol<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-f8074c6444affce8b175811c73865d6f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#118;&#95;&#115;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"15\" style=\"vertical-align: -3px;\"\/>: m\u00b3\/kmol<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-30c248e5fd662c90a022bf758e2a8a3c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#123;&#115;&#44;&#99;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"26\" style=\"vertical-align: -6px;\"\/>: kmol\/kmol<\/li>\n<\/ul>\n<p>Save the notation. This notation is available in MOSAICmodeling with ID 182835.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Interfaces\"><\/span>Interfaces<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Interfaces are necessary<\/p>\n<ol>\n<li>to embed the external function calls to calculate the molar enthalpy and<\/li>\n<li>to connect ports to external elements.<\/li>\n<\/ol>\n<p>The necessary steps to set them up are outlined below:<\/p>\n<ol>\n<li>Go to the Interface tab and load the saved notation<\/li>\n<li>Add a reasonable description<\/li>\n<li>Go to the tab Interface Fields. Add the variables <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-2ce27f7d2d82e3b238176ec7e7ee9118_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: 0px;\"\/>, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-7b2034939b850e3311120fca462ab64e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#104;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/>, <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;\"\/>, and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-f690bf485696f5534ef148f2d6772bd4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#99;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"16\" style=\"vertical-align: -3px;\"\/>. Name them &#8220;ACM liquid molar enthalpy&#8221;, &#8220;ACM temperature&#8221;, &#8220;ACM pressure&#8221;, and &#8220;ACM liquid mole fraction&#8221;, respectively. All of them should be of Dim Scalar, except for <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-f690bf485696f5534ef148f2d6772bd4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#99;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"16\" style=\"vertical-align: -3px;\"\/>. Specify <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-2ce27f7d2d82e3b238176ec7e7ee9118_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: 0px;\"\/> as Out and the others as In. If the units do not appear automatically, assign the correct unit to the four variables<\/li>\n<li>Go to the tab Pattern Assistance and select &#8220;Other&#8221;. Select ACM Calculate Molar Liquid Enthalpy in the combo box. The required fields will appear below under Fields of Specific Interface<\/li>\n<li><span style=\"font-size: revert; color: initial;\">Verify that all the required fields are set up correctly. In the column Specified, it should read &#8220;yes&#8221; for all variables<\/span><\/li>\n<li>Save the interface<\/li>\n<li>Click on &#8220;New&#8221; and load the stored notation again<\/li>\n<li>Add a description<\/li>\n<li>Go to the tab Interface Fields. Add the variables <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-2ce27f7d2d82e3b238176ec7e7ee9118_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: 0px;\"\/>, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-7b2034939b850e3311120fca462ab64e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#104;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/>, <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-f690bf485696f5534ef148f2d6772bd4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#99;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"16\" style=\"vertical-align: -3px;\"\/>, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-796872219106704832bd95ce08640b7b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#118;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/>, and <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;\"\/>. Name them &#8220;ACM molar enthalpy&#8221;, &#8220;ACM temperature&#8221;, &#8220;ACM pressure&#8221;, &#8220;ACM overall mole fraction&#8221;, &#8220;ACM molar volume&#8221;, and &#8220;ACM total molar flow&#8221;, respectively. All of them should be of Dim Scalar, except for <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-f690bf485696f5534ef148f2d6772bd4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#99;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"16\" style=\"vertical-align: -3px;\"\/>. Specify all variables as In\/Out. If the units do not appear automatically, assign the correct unit to all variables<\/li>\n<li>Go to the tab Pattern Assistance and select &#8220;Other&#8221;. Select ACM Stream Data in the combo box. The required fields will appear below under Fields of Specific Interface<\/li>\n<li><span style=\"font-size: revert; color: initial;\">Verify that all the required fields are set up correctly. In the column Specified, it should read &#8220;yes&#8221; for all variables<\/span><\/li>\n<li>Save this second interface<\/li>\n<\/ol>\n<p>The interfaces are available with IDs 182840 and 182842.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Function\"><\/span>Function<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Aspen Custom Modeler has many built-in functions (procedures), e.g., for enthalpy, density, viscosity, fugacity, activity coefficient, etc. These functions can be embedded in a MOSAICmodeling model and are generic function calls, The calculations will be performed according to the selected property package (NRTL, SRK, PENG-ROB, etc.) for every simulation. This allows easy model re-use.<\/p>\n<p>In this example, the enthalpy of the liquid streams is calculated by an Aspen Custom Modeler procedure. As the enthalpy is a function of pressure, composition and temperature, the procedure has the following structure:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-2b8bbeba62347627b629b98f929db15e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\" &#104;&#32;&#61;&#32;&#92;&#109;&#97;&#116;&#104;&#114;&#109;&#123;&#65;&#67;&#77;&#67;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101;&#77;&#111;&#108;&#97;&#114;&#76;&#105;&#113;&#117;&#105;&#100;&#69;&#110;&#116;&#104;&#97;&#108;&#112;&#121;&#125;&#32;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#44;&#32;&#80;&#44;&#32;&#120;&#95;&#99;&#41; \" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"382\" style=\"vertical-align: -5px;\"\/><\/p>\n<p>in which <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-2ce27f7d2d82e3b238176ec7e7ee9118_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: 0px;\"\/> is the liquid molar enthalpy in GJ\/kmol, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-7b2034939b850e3311120fca462ab64e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#104;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/> is temperature in \u00b0C, <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;\"\/> is pressure in bar, and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-f690bf485696f5534ef148f2d6772bd4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#99;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"16\" style=\"vertical-align: -3px;\"\/> is the mole fraction of component <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-276a76eafbebc4494deafceec7cc4ddd_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#99;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"8\" style=\"vertical-align: 0px;\"\/>. Note that these units matter because ACM cannot know which units are being used in the MOSAICmodeling model. For this purpose, engineering units are included.<\/p>\n<p>To set up the function call in MOSAICmodeling, go to the Function tab and do the following:<\/p>\n<ol>\n<li>Add a reasonable description<\/li>\n<li>Load the notation specified in this example<\/li>\n<li><span style=\"font-size: revert; color: initial;\">Click on the combo box below Interface Settings in the tab Interface &amp; Body Settings <\/span><span style=\"font-size: revert; color: initial;\">and select Load interface. Load the previously created interface for the liquid enthalpy. Input and output variables should be filled automatically. Make sure that the correct engineering units are set for input and output variables<\/span><\/li>\n<li>Save the function<\/li>\n<\/ol>\n<p>The function has ID 182843.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Connectors\"><\/span>Connectors<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To be able to export the mixer as unit, we need to prepare the connectors for the port as well. Therefore, go to the Connector tab and do as follows:<\/p>\n<ol>\n<li>Load the saved notation as both Sub and Super Notation<\/li>\n<li>Set up the variables given in Table 1 in the Sub and Super Notation and select the correct units<\/li>\n<li>Save the connector<\/li>\n<li>Repeat these steps for the other two connectors<\/li>\n<\/ol>\n<p>The connectors have the IDs 182845, 182846, and 182847.<\/p>\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\">Sub Notation<\/th><th class=\"has-text-align-center\" data-align=\"center\">Super Notation (Inlet 1)<\/th><th class=\"has-text-align-center\" data-align=\"center\">Super Notation (Inlet 2)<\/th><th class=\"has-text-align-center\" data-align=\"center\">Super Notation (Outlet)<\/th><th class=\"has-text-align-left\" data-align=\"left\">Unit<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-7b2034939b850e3311120fca462ab64e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#104;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/><\/td><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-86cdd8e18f46160366ca24a1bc933520_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#104;&#101;&#116;&#97;&#95;&#123;&#115;&#61;&#49;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"31\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-1d48f99cc839edc56b4636719e1f8a4b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#104;&#101;&#116;&#97;&#95;&#123;&#115;&#61;&#50;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"32\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-5586b05cb7ea9d1fe837af4b86a21dab_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#104;&#101;&#116;&#97;&#95;&#123;&#115;&#61;&#51;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"32\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">\u00b0C<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><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;\"\/><\/td><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-86bc32ea996a25b7dcd2ddceb7bba6fd_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#70;&#95;&#123;&#115;&#61;&#49;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"34\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-d59ad2cf4b754db3b59a9781b89d5836_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#70;&#95;&#123;&#115;&#61;&#51;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"35\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-d59ad2cf4b754db3b59a9781b89d5836_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#70;&#95;&#123;&#115;&#61;&#51;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"35\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">kmol\/h<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><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;\"\/><\/td><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-52c6e9ffc3476e072aeef06535e9f495_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#80;&#95;&#123;&#115;&#61;&#49;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"34\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-1a97348b3fce3035dbc060c358dabe07_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#80;&#95;&#123;&#115;&#61;&#50;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"35\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-f965d9fd5e1b494bfffd1de12058cf89_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#80;&#95;&#123;&#115;&#61;&#51;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"35\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">bar<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-2ce27f7d2d82e3b238176ec7e7ee9118_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: 0px;\"\/><\/td><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-b941640220d7feb00ba1b75d11f63663_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;&#95;&#123;&#115;&#61;&#49;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"33\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-bb0c3041f4c55adf8f8048e21099d048_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;&#95;&#123;&#115;&#61;&#50;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"34\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-847c5de9aea8eab10611776e9a42b701_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;&#95;&#123;&#115;&#61;&#51;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"34\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">GJ\/kmol<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-796872219106704832bd95ce08640b7b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#118;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/><\/td><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-22255d011f459e1c6e81fabaa66bec27_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#118;&#95;&#123;&#115;&#61;&#49;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"32\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-e8391dd3f13f59f0e6e99d7456e38bbb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#118;&#95;&#123;&#115;&#61;&#50;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"33\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-8e76f78f2777a63431a8c2feb4a08019_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#118;&#95;&#123;&#115;&#61;&#51;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"33\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">m\u00b3\/kmol<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-f690bf485696f5534ef148f2d6772bd4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#99;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"16\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-cca1ef3db9260052a4ed58e836e63954_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#123;&#115;&#61;&#49;&#44;&#99;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"44\" style=\"vertical-align: -6px;\"\/><\/td><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-f1296ecc699f566b5276d8c5961469bf_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#123;&#115;&#61;&#50;&#44;&#99;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"44\" style=\"vertical-align: -6px;\"\/><\/td><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-d84ae30ebfb44f03e9089c70d442f85b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#123;&#115;&#61;&#51;&#44;&#99;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"44\" style=\"vertical-align: -6px;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">kmol\/kmol<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Table 1: Connector variables and units for all three connectors.<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Equation-system\"><\/span>Equation system<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n<p>Go to the Equation System tab and take the following steps:<\/p>\n<ol>\n<li>Load the notation you created for this example<\/li>\n<li>Add a helpful description<\/li>\n<li><span style=\"font-size: revert; color: initial;\">Add the four equations you formulated above to the equation system<\/span><\/li>\n<li>Go to the Functions tab and add the function you created above to the equation system. Add three applications (<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-b941640220d7feb00ba1b75d11f63663_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;&#95;&#123;&#115;&#61;&#49;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"33\" style=\"vertical-align: -3px;\"\/>, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-bb0c3041f4c55adf8f8048e21099d048_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;&#95;&#123;&#115;&#61;&#50;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"34\" style=\"vertical-align: -3px;\"\/>, and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-847c5de9aea8eab10611776e9a42b701_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;&#95;&#123;&#115;&#61;&#51;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"34\" style=\"vertical-align: -3px;\"\/> with their respective inputs)<\/li>\n<li>Save the equation system. Note: it is not necessary to save the equation system first and then add this equation system again in combination with the ports as outlined below. We do this for clarity here. However, the ports could also be added directly to this system<\/li>\n<\/ol>\n<p><span style=\"font-size: revert; color: initial;\">Now, we will define an equation system for the unit. Hence, we will need ports. Ports are necessary to allow the model to be connected to streams. They consist of an interface<\/span><span style=\"font-size: revert; color: initial;\"> containing the required variables for connectivity and one (or several) connectors <\/span><span style=\"font-size: revert; color: initial;\">translating the variable names from the model to the interface definition. For the mixer, two inlet ports and one outlet port is necessary. <\/span><\/p>\n<p>To set up the unit, perform the following steps:<\/p>\n<ol>\n<li>Click on &#8220;New&#8221; in the Equation System tab<\/li>\n<li>Load the notation again and a description for the unit<\/li>\n<li>Load the equation system you save above<\/li>\n<li>Go to the tab Flowsheeting and then to the tab External Ports<\/li>\n<li>Click on &#8220;+ Port&#8221;. Name the port &#8220;Inlet1&#8221;, load your interface for stream data and your connector for inlet 1. Click on &#8220;Check Port Configuration&#8221; and then confirm<\/li>\n<li>Repeat the last step twice to add the second inlet and the outlet port. Remember to set the direction to &#8220;out&#8221; for the latter<\/li>\n<li>Save the unit<\/li>\n<\/ol>\n<p>The normal equation system has ID 182844 whereas the unit has ID 182848.<\/p>\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Code-Generation\"><\/span>Code Generation<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>In the final step within MOSAICmodeling, we need to export the code to ACM. Therefore, proceed as follows:<\/p>\n<ol>\n<li>Open the unit in the &#8220;Simulation&#8221; section<\/li>\n<li>Add an appropriate description to the simulation<\/li>\n<li>Set the maximum value of the component index <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-276a76eafbebc4494deafceec7cc4ddd_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#99;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"8\" style=\"vertical-align: 0px;\"\/> to 2 and the maximum value of the stream index to 3. Click on &#8220;Confirm Index Data&#8221;.<\/li>\n<li>Go to the Specifications tab and then to the Variables tab. The enthalpies of the three streams should be classified as calculated values.<\/li>\n<li>Assign all values from the inlet ports as design values. In addition, specify the molar volume of the output port as design value. This variable is not used in the model and is hence not calculated. It is only included because it is a requirement of the predefined interface.<\/li>\n<li>Assign the remaining variables as iteration values.<\/li>\n<li>Specify reasonable values and initial guesses for all variables. A possible initialization is given in Table 2.\u00a0<\/li>\n<li>In the tab Namespaces, you can give assign your own names for the namespaces. This is very important if many ports are used. Since the ACM stream interface is selected as the super notation, the namespaces are the only way to differentiate the variables.<\/li>\n<\/ol>\n<p>Finally, go to the Evaluation tab and then select the Generation tab. Select <em>ACM NLE Functions as Equations<\/em> from the predefined language specifications and press &#8220;Generate Code&#8221;. The code in tab View Code is now ready to be copied and compiled in Aspen Custom Modeler. The simulation is stored with ID 182849 with variable specification 182850.<\/p>\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\">Name<\/th><th class=\"has-text-align-left\" data-align=\"left\">Description<\/th><th class=\"has-text-align-left\" data-align=\"left\">Value \/ Initial guess<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-650ef57c21b1fe78759cac973d01063b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#80;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"29\" style=\"vertical-align: 0px;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">Pressure drop in mixer in bar<\/td><td class=\"has-text-align-left\" data-align=\"left\">0.0<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-7b2034939b850e3311120fca462ab64e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#104;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">Feed temperature in port 1 in \u00b0C<\/td><td class=\"has-text-align-left\" data-align=\"left\">25.0<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-7b2034939b850e3311120fca462ab64e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#104;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">Feed temperature in port 2 in \u00b0C<\/td><td class=\"has-text-align-left\" data-align=\"left\">25.0<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><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;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">Feed to port 1 in kmol\/h<\/td><td class=\"has-text-align-left\" data-align=\"left\">1.0<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><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;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">Feed to port 2 in kmol\/h<\/td><td class=\"has-text-align-left\" data-align=\"left\">1.0<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><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;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">Feed pressure in port 1 in bar<\/td><td class=\"has-text-align-left\" data-align=\"left\">1.02<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><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;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">Feed pressure in port 2 in bar<\/td><td class=\"has-text-align-left\" data-align=\"left\">1.02<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-796872219106704832bd95ce08640b7b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#118;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">Molar volume in port 1 in m\u00b3\/kmol<\/td><td class=\"has-text-align-left\" data-align=\"left\">0.0<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-796872219106704832bd95ce08640b7b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#118;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">Molar volume in port 2 in m\u00b3\/kmol<\/td><td class=\"has-text-align-left\" data-align=\"left\">0.0<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-796872219106704832bd95ce08640b7b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#118;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">Molar volume in port 3 in m\u00b3\/kmol<\/td><td class=\"has-text-align-left\" data-align=\"left\">0.0<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-e2f8cef990a8f8a274a1230a4c0aaddf_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#123;&#99;&#61;&#49;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"33\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">Mole fraction of component 1 in port 1 in kmol\/kmol<\/td><td class=\"has-text-align-left\" data-align=\"left\">1.0<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-e2f8cef990a8f8a274a1230a4c0aaddf_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#123;&#99;&#61;&#49;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"33\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">Mole fraction of component 2 in port 1 in kmol\/kmol<\/td><td class=\"has-text-align-left\" data-align=\"left\">0.0<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-4bed32089b40191b423a589cf19b4973_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#123;&#99;&#61;&#50;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"34\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">Mole fraction of component 2 in port 1 in kmol\/kmol<\/td><td class=\"has-text-align-left\" data-align=\"left\">0.0<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-4bed32089b40191b423a589cf19b4973_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#123;&#99;&#61;&#50;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"34\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">Mole fraction of component 2 in port 1 in kmol\/kmol<\/td><td class=\"has-text-align-left\" data-align=\"left\">1.0<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-7b2034939b850e3311120fca462ab64e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#104;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">Outlet temperature in \u00b0C<\/td><td class=\"has-text-align-left\" data-align=\"left\">25.0<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><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;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">Outlet flow in kmol\/h<\/td><td class=\"has-text-align-left\" data-align=\"left\">2.0<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><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;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">Outlet pressure in bar<\/td><td class=\"has-text-align-left\" data-align=\"left\">1.02<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-e2f8cef990a8f8a274a1230a4c0aaddf_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#123;&#99;&#61;&#49;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"33\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">Mole fraction of component 1 at outlet<\/td><td class=\"has-text-align-left\" data-align=\"left\">0.5<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-4bed32089b40191b423a589cf19b4973_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#123;&#99;&#61;&#50;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"34\" style=\"vertical-align: -3px;\"\/><\/td><td class=\"has-text-align-left\" data-align=\"left\">Mole fraction of component 2 at outlet<\/td><td class=\"has-text-align-left\" data-align=\"left\">0.5<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Table 2: Overview of parameter values, initial guesses, and the solution.<\/figcaption><\/figure>\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Workflow-within-Aspen-Custom-Modeler\"><\/span>Workflow within Aspen Custom Modeler<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><!-- \/wp:post-content --> <!-- wp:heading {\"level\":4} --><\/p>\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Configuration-of-the-component-list\"><\/span>Configuration of the component list<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><!-- \/wp:heading --> <!-- wp:paragraph --><\/p>\n<p>Open the ACM user interface. For this example we are using version 8.4. Before creating the model, it is necessary to configure a component list and a property package. In the <strong>Model Explorer<\/strong> select <strong>Component List<\/strong> and then double click on <strong>Default<\/strong>. Select the <strong>use Aspen property system<\/strong>\u00a0option and click on <strong>Edit using Aspen Properties.<\/strong><\/p>\n<p><!-- \/wp:paragraph --> <!-- wp:image {\"align\":\"center\",\"id\":2434} --><\/p>\n<figure class=\"wp-block-image aligncenter\">\n<figure id=\"attachment_2434\" aria-describedby=\"caption-attachment-2434\" style=\"width: 691px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/ACM_component_list-300x210.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2434 size-full\" src=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/ACM_component_list.png\" alt=\"ACM_component_list\" width=\"691\" height=\"484\" srcset=\"https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/ACM_component_list.png 691w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/ACM_component_list-300x210.png 300w\" sizes=\"auto, (max-width: 691px) 100vw, 691px\" \/><\/a><figcaption id=\"caption-attachment-2434\" class=\"wp-caption-text\">Figure 1: Configuring the Default Component List in ACM.<\/figcaption><\/figure><figcaption class=\"wp-element-caption\"><\/figcaption><!-- \/wp:image --> <!-- wp:paragraph --><\/figure>\n<p>This will open\u00a0the Aspen Properties user interface. Here the component list and property methods can be specified normally as when starting an Aspen Plus simulation. In order to verify the non-ideal enthalpy calculations, a binary mixture of water and methanol will be used. Add water and methanol to the component list.<\/p>\n<p><!-- \/wp:paragraph --> <!-- wp:image {\"align\":\"center\",\"id\":2435} --><\/p>\n<figure class=\"wp-block-image aligncenter\">\n<figure id=\"attachment_2435\" aria-describedby=\"caption-attachment-2435\" style=\"width: 724px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/Aspen_Properties_List.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2435 size-full\" src=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/Aspen_Properties_List.png\" alt=\"Aspen_Properties_List\" width=\"724\" height=\"205\" srcset=\"https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/Aspen_Properties_List.png 724w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/Aspen_Properties_List-300x85.png 300w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><\/a><figcaption id=\"caption-attachment-2435\" class=\"wp-caption-text\">Figure 2: Component List in Aspen Properties.<\/figcaption><\/figure><br \/>\n<\/figure>\n<p><!-- \/wp:image --> <!-- wp:paragraph --><\/p>\n<p>Click <strong>Next<\/strong> to go to the <strong>Methods<\/strong> tab and select <em>NRTL<\/em> as the main property method.<\/p>\n<p><!-- \/wp:paragraph --> <!-- wp:image {\"align\":\"center\",\"id\":2436} --><\/p>\n<figure class=\"wp-block-image aligncenter\">\n<figure id=\"attachment_2436\" aria-describedby=\"caption-attachment-2436\" style=\"width: 786px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/Aspen_Properties_Methods-300x192.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2436 size-full\" src=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/Aspen_Properties_Methods.png\" alt=\"Aspen_Properties_Methods\" width=\"786\" height=\"504\" srcset=\"https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/Aspen_Properties_Methods.png 786w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/Aspen_Properties_Methods-300x192.png 300w\" sizes=\"auto, (max-width: 786px) 100vw, 786px\" \/><\/a><figcaption id=\"caption-attachment-2436\" class=\"wp-caption-text\">Figure 3: Method Selection in Aspen Properties.<\/figcaption><\/figure><\/p>\n<figcaption class=\"wp-element-caption\"><\/figcaption>\n<p><!-- \/wp:image --> <!-- wp:paragraph --><\/p>\n<\/figure>\n<p>Click <strong>Next<\/strong> one more time to retrieve the binary interaction parameters and again to run the property analysis. Once this is completed successfully, close the Aspen Property window and save the file when asked.<\/p>\n<p><!-- \/wp:paragraph --> <!-- wp:paragraph --><\/p>\n<p>Back to the ACM window, it should state\u00a0that the Component List setup was completed. Click on <strong>OK<\/strong> and add the available components to the ACM component list.<\/p>\n<p><!-- \/wp:paragraph --> <!-- wp:heading {\"level\":4} --><\/p>\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Creation-of-new-model\"><\/span>Creation of new model<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><!-- \/wp:heading --> <!-- wp:paragraph --><\/p>\n<p>Now it is necessary to create a new model that will receive the code generated in MOSAICmodeling. Again on the <strong>Model Explorer<\/strong> palette, select <strong>Custom Modeling<\/strong>\u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-76319e471bb0c08bfa33603fd4f71eb2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"17\" style=\"vertical-align: -1px;\"\/> <strong>Models<\/strong> and then <strong>Add Model<\/strong> as highlighted below.<\/p>\n<p><!-- \/wp:paragraph --> <!-- wp:image {\"align\":\"center\",\"id\":2437} --><\/p>\n<figure class=\"wp-block-image aligncenter\">\n<figure id=\"attachment_2437\" aria-describedby=\"caption-attachment-2437\" style=\"width: 292px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/ACM_models.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2437 size-full\" src=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/ACM_models.png\" alt=\"ACM_models\" width=\"292\" height=\"487\" srcset=\"https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/ACM_models.png 292w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/ACM_models-180x300.png 180w\" sizes=\"auto, (max-width: 292px) 100vw, 292px\" \/><\/a><figcaption id=\"caption-attachment-2437\" class=\"wp-caption-text\">Figure 4: Adding a New Model in ACM.<\/figcaption><\/figure><\/p>\n<figcaption class=\"wp-element-caption\"><\/figcaption>\n<p><!-- \/wp:image --> <!-- wp:paragraph --><\/p>\n<\/figure>\n<p>Name the model and paste the ACM code exported from MOSAICmodeling in the code window.<\/p>\n<p><!-- \/wp:paragraph --> <!-- wp:paragraph --><\/p>\n<p>By default, the MOSAICmodeling code generation will:<\/p>\n<p><!-- \/wp:paragraph --> <!-- wp:list --><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul><!-- wp:list-item --><\/p>\n<li>Name the model as <em>mosaic_model<\/em><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><!-- \/wp:list-item --> <!-- wp:list-item --><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Name the component list as <em>prop<\/em><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><!-- \/wp:list-item --> <!-- wp:list-item --><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Name components as <em>COMP1<\/em>, <em>COMP2,<\/em>\u00a0etc.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><!-- \/wp:list-item --> <!-- wp:list-item --><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Name inlet ports as <em>Feed1<\/em>, <em>Feed2,<\/em>\u00a0etc.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><!-- \/wp:list-item --> <!-- wp:list-item --><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Name outlet ports as <em>Prod3<\/em>, <em>Prod4,<\/em>\u00a0etc.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><!-- \/wp:list-item --><\/p>\n<p><!-- \/wp:list --> <!-- wp:paragraph --><\/p>\n<p>The model name appearing on the code window must be the same as the name previously given, so change the fist line from <em>mosaic_model<\/em> to your given name. Comment by adding <strong>\/\/<\/strong> or erase the line with the component list declaration to make ACM use\u00a0the default component list as desired. It is essential to keep consistency in the component names, therefore the <strong>Component ID<\/strong>\u00a0for water should be <em>WATER<\/em> and for methanol it should be <em>METHANOL as previously defined<\/em>. By using the tools <em>search for<\/em> and <em>replace,<\/em> it is possible to replace <em>COMP1<\/em> and <em>COMP2<\/em> by <em>WATER<\/em> and <em>METHANOL<\/em>.<\/p>\n<p><!-- \/wp:paragraph --> <!-- wp:paragraph --><\/p>\n<p>One might also want to rename the ports to make it clear to the user where to connect the streams. In a distillation column, for example, it&#8217;s advisable to rename the outlet ports as <em>Distillate<\/em> and <em>Bottom Product<\/em>, rather than <em>Prod2<\/em> and <em>Prod3<\/em>. This is not important for the mixer.<\/p>\n<p><!-- \/wp:paragraph --> <!-- wp:paragraph --><\/p>\n<p>The default icon for all models generated in ACM is the flash vessel. It is possible to change this icon and design customized icons that reassemble the real equipment. Under the <strong>Contents<\/strong> of your model, there&#8217;s an option to <strong>Add Icon<\/strong>.<\/p>\n<p><!-- \/wp:paragraph --> <!-- wp:image {\"align\":\"center\",\"id\":2438} --><\/p>\n<figure class=\"wp-block-image aligncenter\">\n<figure id=\"attachment_2438\" aria-describedby=\"caption-attachment-2438\" style=\"width: 1174px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/ACM_Mixer.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2438 size-full\" src=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/ACM_Mixer.png\" alt=\"ACM_Mixer\" width=\"1174\" height=\"759\" srcset=\"https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/ACM_Mixer.png 1174w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/ACM_Mixer-300x194.png 300w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/ACM_Mixer-1024x662.png 1024w\" sizes=\"auto, (max-width: 1174px) 100vw, 1174px\" \/><\/a><figcaption id=\"caption-attachment-2438\" class=\"wp-caption-text\">Figure 5: Coding Window in ACM.<\/figcaption><\/figure><\/p>\n<figcaption class=\"wp-element-caption\"><\/figcaption>\n<p><!-- \/wp:image --> <!-- wp:paragraph --><\/p>\n<\/figure>\n<p>Once these minor modifications\u00a0are done, right-click on the coding window and click on compile (sh. Compilation should be completed without any errors. Close the window containing the code. In the <strong>Model Explorer<\/strong> palette, click on the mixer model and drag it to the <strong>Process Flowsheet Window<\/strong> to add a mixer unit\u00a0to the flowsheet.<\/p>\n<p><!-- \/wp:paragraph --> <!-- wp:paragraph --><\/p>\n<p>A light-green square on the lower right part of the ACM window indicates that the degree of freedom is zero and the simulation is ready to be executed. It would show a red arrow pointing upwards if the model is overspecified and pointing downwards if it is underspecified. Run the model by clicking on the run button in the upper part of the screen. Check the results.<\/p>\n<p><!-- \/wp:paragraph --> <!-- wp:image {\"align\":\"center\",\"id\":2439} --><\/p>\n<figure class=\"wp-block-image aligncenter\">\n<figure id=\"attachment_2439\" aria-describedby=\"caption-attachment-2439\" style=\"width: 940px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/ACM_run.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2439 size-full\" src=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/ACM_run.png\" alt=\"ACM_run\" width=\"940\" height=\"854\" srcset=\"https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/ACM_run.png 940w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/ACM_run-300x273.png 300w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/a><figcaption id=\"caption-attachment-2439\" class=\"wp-caption-text\">Figure 6: Flowsheet Simulation and Results.<\/figcaption><\/figure><\/p>\n<figcaption class=\"wp-element-caption\"><\/figcaption>\n<p><!-- \/wp:image --> <!-- wp:heading {\"level\":4} --><\/p>\n<\/figure>\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Export-of-ACM-model-to-Aspen-Plus\"><\/span>Export of ACM model to Aspen Plus<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><!-- \/wp:heading --> <!-- wp:paragraph --><\/p>\n<p>Now the model is to be exported to Aspen Plus. For this example\u00a0we are using Aspen Plus version 8.6. When simulating a unit in an Aspen Plus flowsheet, the inlet ports will be connected to streams. Streams in Aspen Plus already have a built-in function to calculate the enthalpy once pressure, composition, and temperature are specified. This means that there is no need to calculate the enthalpy of the inlet stream using a function anymore. Therefore, these lines must be commented by adding <strong>\/\/\u00a0<\/strong>or deleted from the ACM code. This can be done in the <strong>Model Palette\/Models<\/strong> then selecting\u00a0the highlighted icon under contents.<\/p>\n<p><!-- \/wp:paragraph --> <!-- wp:image {\"align\":\"center\",\"id\":2652} --><\/p>\n<figure class=\"wp-block-image aligncenter\">\n<figure id=\"attachment_2652\" aria-describedby=\"caption-attachment-2652\" style=\"width: 1142px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/code_window.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2652 size-full\" src=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/code_window.jpg\" alt=\"code_window\" width=\"1142\" height=\"700\" srcset=\"https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/code_window.jpg 1142w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/code_window-300x184.jpg 300w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/code_window-1024x628.jpg 1024w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/code_window-570x350.jpg 570w\" sizes=\"auto, (max-width: 1142px) 100vw, 1142px\" \/><\/a><figcaption id=\"caption-attachment-2652\" class=\"wp-caption-text\">Figure 7: Opening the code window for a model.<\/figcaption><\/figure><\/p>\n<figcaption class=\"wp-element-caption\"><\/figcaption>\n<p><!-- \/wp:image --> <!-- wp:list --><\/p>\n<\/figure>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul><!-- wp:list-item --><\/p>\n<li>ADD: HOW TO OPEN AND EDIT THE CODE. FEED info can be retained as initials<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><!-- \/wp:list-item --><\/p>\n<p><!-- \/wp:list --> <!-- wp:paragraph --><\/p>\n<p>Depending on the installed version of Aspen, it may be necessary to have a proper version of Microsoft Visual Studio installed in order to export the model. It is possible to export to <em>DLL<\/em>, in order to generate a <strong>.dll<\/strong>\u00a0file which can be read by Aspen Plus as a unit operation. It is also possible to export to <em>MSI<\/em>, which will generate an <strong>.msi<\/strong> file that can later be used to install the <strong>.dll<\/strong> file.<\/p>\n<p><!-- \/wp:paragraph --> <!-- wp:paragraph --><\/p>\n<p>In the <strong>Model Explorer<\/strong>\u00a0right click on the model name and select <strong>EXPORT TO MSI<\/strong>. When asked &#8220;<em>Do you want to install the model now?<\/em>&#8221; click <strong>yes<\/strong> and follow the installation steps. Keep the default location for the file.<\/p>\n<p><!-- \/wp:paragraph --> <!-- wp:paragraph --><\/p>\n<p>Once the file has been installed correctly, start a new Aspen Plus simulation file, select <em>WATER<\/em>\u00a0and <em>METHANOL\u00a0<\/em>as components and <em>NRTL<\/em> as property package. Run a property analysis and then enter the simulation environment. To enable the ACM models to be shown in the <strong>Model Palette<\/strong>, select the tab <strong>Customize<\/strong> and then <strong>Manage Libraries<\/strong> and then activate the ACM Models.<\/p>\n<p><!-- \/wp:paragraph --> <!-- wp:image {\"align\":\"center\",\"id\":2440} --><\/p>\n<figure class=\"wp-block-image aligncenter\">\n<figure id=\"attachment_2440\" aria-describedby=\"caption-attachment-2440\" style=\"width: 865px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/AspenPlus_enabling_ACM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2440 size-full\" src=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/AspenPlus_enabling_ACM.png\" alt=\"AspenPlus_enabling_ACM\" width=\"865\" height=\"517\" srcset=\"https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/AspenPlus_enabling_ACM.png 865w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/AspenPlus_enabling_ACM-300x179.png 300w\" sizes=\"auto, (max-width: 865px) 100vw, 865px\" \/><\/a><figcaption id=\"caption-attachment-2440\" class=\"wp-caption-text\">Figure 8: Enabling ACM Models in the Model Palette.<\/figcaption><\/figure><\/p>\n<figcaption class=\"wp-element-caption\"><\/figcaption>\n<p><!-- \/wp:image --> <!-- wp:paragraph --><\/p>\n<\/figure>\n<p>Add the customized mixer model to the flowsheet and repeat the simulation done in ACM. The results should be the same.<\/p>\n<p><!-- \/wp:paragraph --> <!-- wp:image {\"align\":\"center\",\"id\":2441} --><\/p>\n<figure class=\"wp-block-image aligncenter\">\n<figure id=\"attachment_2441\" aria-describedby=\"caption-attachment-2441\" style=\"width: 626px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/AspenPlus_simulation.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2441 size-full\" src=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/AspenPlus_simulation.png\" alt=\"AspenPlus_simulation\" width=\"626\" height=\"322\" srcset=\"https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/AspenPlus_simulation.png 626w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2015\/07\/AspenPlus_simulation-300x154.png 300w\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" \/><\/a><figcaption id=\"caption-attachment-2441\" class=\"wp-caption-text\">Figure 9: Simulating the Mixer.<\/figcaption><\/figure><br \/>\n<\/figure>","protected":false},"excerpt":{"rendered":"<p>ChemCAD The unit export to the User Added Module of Chemstations&#8217; ChemCAD exists only as PDF thus far and can be obtained here. Currently, developing this feature further is not prioritized. Aspen Plus This example shows how to export self-implemented models from MOSAICmodeling via Aspen Custom Modeler (ACM) to Aspen Plus in order to take [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"parent":834,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2855","page","type-page","status-publish","czr-hentry"],"_links":{"self":[{"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/2855","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\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2855"}],"version-history":[{"count":26,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/2855\/revisions"}],"predecessor-version":[{"id":6157,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/2855\/revisions\/6157"}],"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=2855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}