{"id":4156,"date":"2023-03-18T11:33:42","date_gmt":"2023-03-18T10:33:42","guid":{"rendered":"http:\/\/mosaic-modeling.de\/?page_id=4156"},"modified":"2023-08-22T09:53:17","modified_gmt":"2023-08-22T08:53:17","slug":"model-transformation","status":"publish","type":"page","link":"https:\/\/mosaic-modeling.de\/?page_id=4156","title":{"rendered":"Model: Transformation"},"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=4156\/#Purpose\" >Purpose<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mosaic-modeling.de\/?page_id=4156\/#Explanation-of-the-editor\" >Explanation of the editor<\/a><\/li><\/ul><\/nav><\/div>\n\n<p class=\"has-vivid-cyan-blue-color has-text-color\"><strong>Optional element<\/strong><\/p>\n\n\n<p>There are situations in which you have formulated a differential-algebraic equation system, but now you need a purely algebraic equation system without having to re-write all algebraic and differential equations.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Purpose\"><\/span>Purpose<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The Transformation is used to translate differential equations within equation systems into algebraic equations. A possible example is orthogonal collocation on finite elements.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Explanation-of-the-editor\"><\/span>Explanation of the editor<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>A transformation can be applied by setting up an equation system that contains the rule for how this discretization scheme works. For example, the system below represents the discretization scheme of orthogonal collocation on finite elements. Here, the differential term is translated into a summation term that incorporates the derivates of the Lagrange basis polynomials. The second term represents the continuity of the state variables between finite elements:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-8f9c375eb82e08592812699889444c8c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#102;&#114;&#97;&#99;&#123;&#100;&#32;&#121;&#125;&#123;&#100;&#32;&#122;&#125;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#122;&#95;&#123;&#102;&#101;&#125;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#112;&#61;&#48;&#125;&#94;&#123;&#78;&#105;&#112;&#125;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#100;&#76;&#95;&#123;&#105;&#112;&#44;&#99;&#112;&#125;&#125;&#123;&#100;&#32;&#92;&#116;&#97;&#117;&#125;&#32;&#121;&#95;&#123;&#99;&#112;&#61;&#105;&#112;&#44;&#102;&#101;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"28\" width=\"239\" style=\"vertical-align: -10px;\"\/><\/p>\n<p>and<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-3adabd02b2e426be0edd7c83e7370c59_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#121;&#95;&#123;&#99;&#112;&#61;&#51;&#44;&#102;&#101;&#45;&#49;&#125;&#32;&#61;&#32;&#121;&#95;&#123;&#99;&#112;&#61;&#48;&#44;&#102;&#101;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"156\" style=\"vertical-align: -6px;\"\/>.<\/p>\n<p>The transformation editor is shown in Figure 1. On the left side, the discretization scheme is loaded. The super notation is the notation of your original equation system. An explanation of the fields in the transformation tab is given in Table 1.<\/p>\n<figure id=\"attachment_4928\" aria-describedby=\"caption-attachment-4928\" style=\"width: 1920px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2023\/08\/Editor_Transformation.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4928 size-full\" src=\"http:\/\/mosaic-modeling.de\/wp-content\/uploads\/2023\/08\/Editor_Transformation.png\" alt=\"\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2023\/08\/Editor_Transformation.png 1920w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2023\/08\/Editor_Transformation-300x169.png 300w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2023\/08\/Editor_Transformation-1024x576.png 1024w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2023\/08\/Editor_Transformation-768x432.png 768w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2023\/08\/Editor_Transformation-1536x864.png 1536w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2023\/08\/Editor_Transformation-1110x624.png 1110w, https:\/\/mosaic-modeling.de\/wp-content\/uploads\/2023\/08\/Editor_Transformation-528x297.png 528w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/a><figcaption id=\"caption-attachment-4928\" class=\"wp-caption-text\">Figure 1: The transformation editor allows you to specify a transformation that is then applied on your equation system to transform differential equations into algebraic ones.<\/figcaption><\/figure>\n\n\n<figure class=\"wp-block-table is-style-stripes has-small-font-size\"><table><thead><tr><th class=\"has-text-align-center\" data-align=\"center\">Element<\/th><th class=\"has-text-align-left\" data-align=\"left\">Explanation<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\">File<\/td><td class=\"has-text-align-left\" data-align=\"left\">Filename of your transformation once you have saved or loaded it<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Description<\/td><td class=\"has-text-align-left\" data-align=\"left\">A description of the current transformation<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Keywords<\/td><td class=\"has-text-align-left\" data-align=\"left\">Optional keywords for your transformation<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Usages<\/td><td class=\"has-text-align-left\" data-align=\"left\">Model elements, i.e., equations or functions, in which the transformation is used<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Set Notations<\/td><td class=\"has-text-align-left\" data-align=\"left\">Select the equation system that contains the discretization scheme as well as the super notation, i.e., the notation of the equation system you would like to transform<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Variable Matching<\/td><td class=\"has-text-align-left\" data-align=\"left\">Match the independent variables in the discretization and the original model. In the example above, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-ec5583fa081a1e03212c151e3c222412_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#122;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/> is the indepent variable of the discretization, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-fd9cb27edab3f0a8a249bc80cc9c6ee2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"6\" style=\"vertical-align: 0px;\"\/> could be the independent variable in your system in case it is a dynamic system<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Index Matching<\/td><td class=\"has-text-align-left\" data-align=\"left\">Match indices that are relevant for your transformation. Therefore, your super notation must contain all indices used in the transformation scheme, but they can be different. For example, if you prefer the index <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mosaic-modeling.de\/wp-content\/ql-cache\/quicklatex.com-09c9f0c59a846c22410fdccb445cf22b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#102;&#101;&#122;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"28\" style=\"vertical-align: -4px;\"\/> in your transformed equation system for the finite elements, you can add this index to the super notation and match it accordingly in this tab<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Variable Predetermination<\/td><td class=\"has-text-align-left\" data-align=\"left\">Pre-select which variables will be treated as differential (= state) variables<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Variable Bounds<\/td><td class=\"has-text-align-left\" data-align=\"left\">Select boundary conditions for certain variables<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Table 1: Elements of the transformation editor.<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Optional element There are situations in which you have formulated a differential-algebraic equation system, but now you need a purely algebraic equation system without having to re-write all algebraic and differential equations. Purpose The Transformation is used to translate differential equations within equation systems into algebraic equations. A possible example is orthogonal collocation on finite [&hellip;]<\/p>\n","protected":false},"author":252,"featured_media":0,"parent":4140,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-4156","page","type-page","status-publish","czr-hentry"],"_links":{"self":[{"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/4156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/users\/252"}],"replies":[{"embeddable":true,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4156"}],"version-history":[{"count":24,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/4156\/revisions"}],"predecessor-version":[{"id":5684,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/4156\/revisions\/5684"}],"up":[{"embeddable":true,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/4140"}],"wp:attachment":[{"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}