{"id":307,"date":"2012-11-21T15:43:05","date_gmt":"2012-11-21T13:43:05","guid":{"rendered":"https:\/\/inprompt.service.tu-berlin.de\/wordMOSAIC\/?page_id=307"},"modified":"2023-08-15T15:25:57","modified_gmt":"2023-08-15T14:25:57","slug":"functions","status":"publish","type":"page","link":"https:\/\/mosaic-modeling.de\/?page_id=307","title":{"rendered":"Examples: Functions"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 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=3430\/#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=3430\/#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=3430\/#Notation-of-equation-system\" >Notation of equation system<\/a><ul class='ez-toc-list-level-5' ><li class='ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mosaic-modeling.de\/?page_id=3430\/#Base-names\" >Base names<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mosaic-modeling.de\/?page_id=3430\/#Indices\" >Indices<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mosaic-modeling.de\/?page_id=3430\/#Equations\" >Equations<\/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=3430\/#Definition-of-interface\" >Definition of interface<\/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=3430\/#Definition-of-function\" >Definition of function<\/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=3430\/#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-10\" href=\"https:\/\/mosaic-modeling.de\/?page_id=3430\/#Evaluation-Simulation\" >Evaluation \/ Simulation<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/mosaic-modeling.de\/?page_id=3430\/#Initialization-filling-out-the-the-empty-body-and-results\" >Initialization, filling out the the empty body, and results<\/a><\/li><\/ul><\/nav><\/div>\n<p style=\"text-align: justify;\">In this section, examples for using functions in MOSAICmodeling are given. The examples are visible to all users and the examples always note the ID of the respective element. Therefore, you can always consult this solution if you do not know how to proceed.<\/p>\n<ul>\n<li style=\"text-align: justify;\">&#8220;<strong>Use of Functions I &#8211; Basic Principles<\/strong>&#8221; explains how a simple function can be defined in MOSAICmodeling.<\/li>\n<li style=\"text-align: justify;\">&#8220;<strong>Use of Functions II &#8211; Applications using Indices<\/strong>&#8221; discusses the use of indices in functions<\/li>\n<li style=\"text-align: justify;\">&#8220;<strong>Use of Functions III &#8211; Parameter Lists and Indices<\/strong>&#8221; shows the use of parameter lists in functions<\/li>\n<li style=\"text-align: justify;\">&#8220;<strong>Use of Functions IV &#8211; Definition by Interface and Empty Body Functions<\/strong>&#8221; describes how interfaces can be used to define functions in MOSAICmodeling<\/li>\n<\/ul>\n<div id=\"ccchildpages-1\" class=\"ccchildpages ccflex threecol ccblue ccclearfix\"><div class=\"ccchildpage  ccfirst ccodd ccpage-count-1 ccpage-id-646 ccpage-use-of-functions-i-basic-principles ccpage-has-parent ccpage-pid-307 ccpage-parent-functions\"><h3 class=\"ccpage_title ccpage_linked_title\" title=\"Use of Functions I &#8211; Basic Principles\"><a class=\"ccpage_title_link\" href=\"https:\/\/mosaic-modeling.de\/?page_id=646\" title=\"Use of Functions I &#8211; Basic Principles\">Use of Functions I &#8211; Basic Principles<\/a><\/h3><div class=\"ccpages_excerpt\">This tutorial explains the basic principles of how to use...<\/div><p class=\"ccpages_more\"><a href=\"https:\/\/mosaic-modeling.de\/?page_id=646\"  title=\"Read more ...\">Read more ...<\/a><\/p><\/div><div class=\"ccchildpage  cceven ccpage-count-2 ccpage-id-663 ccpage-use-of-functions-ii-applications-using-indices ccpage-has-parent ccpage-pid-307 ccpage-parent-functions\"><h3 class=\"ccpage_title ccpage_linked_title\" title=\"Use of Functions II &#8211; Applications Using Indices\"><a class=\"ccpage_title_link\" href=\"https:\/\/mosaic-modeling.de\/?page_id=663\" title=\"Use of Functions II &#8211; Applications Using Indices\">Use of Functions II &#8211; Applications Using Indices<\/a><\/h3><div class=\"ccpages_excerpt\">\u00a0 This tutorial introduces the use of indices in function...<\/div><p class=\"ccpages_more\"><a href=\"https:\/\/mosaic-modeling.de\/?page_id=663\"  title=\"Read more ...\">Read more ...<\/a><\/p><\/div><div class=\"ccchildpage  cclast ccodd ccpage-count-3 ccpage-id-1306 ccpage-use-of-functions-iii-indices-and-parameter-lists-2 ccpage-has-parent ccpage-pid-307 ccpage-parent-functions\"><h3 class=\"ccpage_title ccpage_linked_title\" title=\"Use of Functions III &#8211; Parameter Lists and Indices\"><a class=\"ccpage_title_link\" href=\"https:\/\/mosaic-modeling.de\/?page_id=1306\" title=\"Use of Functions III &#8211; Parameter Lists and Indices\">Use of Functions III &#8211; Parameter Lists and Indices<\/a><\/h3><div class=\"ccpages_excerpt\">Model description The model consists of very basic flash equations,...<\/div><p class=\"ccpages_more\"><a href=\"https:\/\/mosaic-modeling.de\/?page_id=1306\"  title=\"Read more ...\">Read more ...<\/a><\/p><\/div><div class=\"ccchildpage  ccfirst cceven ccpage-count-4 ccpage-id-3430 ccpage-use-of-functions-iv-definition-by-interface ccpage-has-parent ccpage-pid-307 ccpage-parent-functions\"><h3 class=\"ccpage_title ccpage_linked_title\" title=\"Use of Functions IV &#8211; Definition by Interface and Empty Body Functions\"><a class=\"ccpage_title_link\" href=\"https:\/\/mosaic-modeling.de\/?page_id=3430\" title=\"Use of Functions IV &#8211; Definition by Interface and Empty Body Functions\">Use of Functions IV &#8211; Definition by Interface and Empty Body Functions<\/a><\/h3><div class=\"ccpages_excerpt\">Functions defined by interfaces can also be called \"empty body...<\/div><p class=\"ccpages_more\"><a href=\"https:\/\/mosaic-modeling.de\/?page_id=3430\"  title=\"Read more ...\">Read more ...<\/a><\/p><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this section, examples for using functions in MOSAICmodeling are given. The examples are visible to all users and the examples always note the ID of the respective element. Therefore, you can always consult this solution if you do not know how to proceed. &#8220;Use of Functions I &#8211; Basic Principles&#8221; explains how a simple [&hellip;]<\/p>\n","protected":false},"author":188,"featured_media":0,"parent":4731,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-307","page","type-page","status-publish","czr-hentry"],"_links":{"self":[{"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/307","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=307"}],"version-history":[{"count":25,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/307\/revisions"}],"predecessor-version":[{"id":5209,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/307\/revisions\/5209"}],"up":[{"embeddable":true,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/4731"}],"wp:attachment":[{"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}