{"id":33,"date":"2014-05-22T09:13:19","date_gmt":"2014-05-22T09:13:19","guid":{"rendered":"http:\/\/openwam.webs.upv.es\/docs\/?p=33"},"modified":"2014-09-24T16:01:11","modified_gmt":"2014-09-24T16:01:11","slug":"calculation-methodology","status":"publish","type":"post","link":"https:\/\/openwam.webs.upv.es\/docs\/?p=33","title":{"rendered":"Calculation Methodology"},"content":{"rendered":"<p><!--more--><\/p>\n<p>Published in:<\/p>\n<div id=\"zotpress-a0123627d3560edb3325dafe9a792622\" class=\"zp-Zotpress zp-Zotpress-Bib wp-block-group\">\n\n\t\t<span class=\"ZP_API_USER_ID ZP_ATTR\">1817263<\/span>\n\t\t<span class=\"ZP_ITEM_KEY ZP_ATTR\">{1817263:DC5EM558},{1817263:P3P3H4AW},{1817263:GP6CUFF3}<\/span>\n\t\t<span class=\"ZP_COLLECTION_ID ZP_ATTR\"><\/span>\n\t\t<span class=\"ZP_TAG_ID ZP_ATTR\"><\/span>\n\t\t<span class=\"ZP_AUTHOR ZP_ATTR\"><\/span>\n\t\t<span class=\"ZP_YEAR ZP_ATTR\"><\/span>\n        <span class=\"ZP_ITEMTYPE ZP_ATTR\"><\/span>\n\t\t<span class=\"ZP_INCLUSIVE ZP_ATTR\">1<\/span>\n\t\t<span class=\"ZP_STYLE ZP_ATTR\">IEEE<\/span>\n\t\t<span class=\"ZP_LIMIT ZP_ATTR\">50<\/span>\n\t\t<span class=\"ZP_SORTBY ZP_ATTR\">date<\/span>\n\t\t<span class=\"ZP_ORDER ZP_ATTR\">desc<\/span>\n\t\t<span class=\"ZP_TITLE ZP_ATTR\"><\/span>\n\t\t<span class=\"ZP_SHOWIMAGE ZP_ATTR\"><\/span>\n\t\t<span class=\"ZP_SHOWTAGS ZP_ATTR\"><\/span>\n\t\t<span class=\"ZP_DOWNLOADABLE ZP_ATTR\"><\/span>\n\t\t<span class=\"ZP_NOTES ZP_ATTR\"><\/span>\n\t\t<span class=\"ZP_ABSTRACT ZP_ATTR\"><\/span>\n\t\t<span class=\"ZP_CITEABLE ZP_ATTR\"><\/span>\n\t\t<span class=\"ZP_TARGET ZP_ATTR\"><\/span>\n\t\t<span class=\"ZP_URLWRAP ZP_ATTR\"><\/span>\n\t\t<span class=\"ZP_FORCENUM ZP_ATTR\"><\/span>\n        <span class=\"ZP_HIGHLIGHT ZP_ATTR\"><\/span>\n        <span class=\"ZP_POSTID ZP_ATTR\">33<\/span>\n\t\t<span class=\"ZOTPRESS_PLUGIN_URL ZP_ATTR\">https:\/\/openwam.webs.upv.es\/docs\/wp-content\/plugins\/zotpress\/<\/span>\n\n\t\t<div class=\"zp-List loading\">\n\t\t\t<div class=\"zp-SEO-Content\">\n\n\t\t\t<\/div><!-- .zp-zp-SEO-Content -->\n\t\t<\/div><!-- .zp-List -->\n\t<\/div><!--.zp-Zotpress-->\n\n\n<h1>Introduction<\/h1>\n<p style=\"text-align: justify;\">The wave action models carry out the thermal- and fluid-dynamics calculation in each part of the engine. The different elements of the engine are represented by 0D, 1D and boundary conditions. 1D elements have a axially spatial mesh that establishes the calculation nodes in which, the conservation equations system is solved. The spatial meshing is imposed by the user, who would have adopted this solution in order to obtain an appropriate balance between accuracy, reliability and computational cost <span class=\"zp-InText-zp-ID--1817263-GVDR7H2W--wp33 zp-InText-Citation loading\" rel=\"{ 'pages': 'np', 'items': '{1817263:GVDR7H2W}', 'format': '(%a%, %d%, %p%)', 'brackets': '', 'etal': '', 'separator': '', 'and': '' }\"><\/span>\u00a0<span class=\"zp-InText-zp-ID--1817263-GHBWTJJX--wp33 zp-InText-Citation loading\" rel=\"{ 'pages': 'np', 'items': '{1817263:GHBWTJJX}', 'format': '(%a%, %d%, %p%)', 'brackets': '', 'etal': '', 'separator': '', 'and': '' }\"><\/span>. This decision will determine the spatial structure of the calculation. It still remains to define the structure of the calculation which manages the temporary advance of the wave action model WAM. This definition has to be closely linked to the stability criteria applied to each element of the model.From it application, it is obtained the maximum temporary increase that it may be imposed to avoid numerical stability problems.<\/p>\n<p style=\"text-align: justify;\">In the 1D elements, the stability condition applied is the Courant-Friedrichs-Lewy criterion, commonly known as CFL stability criterion <span class=\"zp-InText-zp-ID--1817263-FEMCJEDI--wp33 zp-InText-Citation loading\" rel=\"{ 'pages': 'np', 'items': '{1817263:FEMCJEDI}', 'format': '(%a%, %d%, %p%)', 'brackets': '', 'etal': '', 'separator': '', 'and': '' }\"><\/span>. This criterion imposes that the information, in the form of disturbances or waves, cannot travel more than one mesh length (distance between two nodes) in one calculation time increment. Therefore, for each compute node it will be necessary:<\/p>\n<p style=\"text-align: center;\">\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 37px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-64685f1aaabad44165581a0f8b88eed5_l3.png\" height=\"37\" width=\"82\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#116;&#92;&#108;&#101;&#113;&#32;&#92;&#110;&#117;&#32;&#92;&#102;&#114;&#97;&#99;&#32;&#123;&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#120;&#125;&#123;&#99;&#94;&#123;&#112;&#125;&#125;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">The parameter <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-dd9ecaa0c71382f5e965a78b216231fe_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#110;&#117;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"10\" style=\"vertical-align: 0px;\"\/>\u00a0is known as the Courant, or CFL, number and its value is in the range [0,1]. <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-9c7d6015a2ae84d5cdb4e5cd05fe7774_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#99;&#94;&#123;&#112;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"15\" style=\"vertical-align: 0px;\"\/>\u00a0represents the largest wave speed present in the node at time level <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-2b10b56e418e0eb9f9bd7fb21123d7d3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -4px;\"\/>. In the practice, all nodes in a duct are solved with the same time-step, therefore the last equation is rewritten as:<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"color: #000000;\"><\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 39px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-98dbc8a1b92720f2ef899ac30a1624b2_l3.png\" height=\"39\" width=\"92\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#116;&#61;&#92;&#110;&#117;&#32;&#92;&#102;&#114;&#97;&#99;&#32;&#123;&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#120;&#125;&#123;&#99;&#94;&#123;&#112;&#125;&#95;&#123;&#109;&#97;&#120;&#125;&#125;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p><\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">Now, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-9c7d6015a2ae84d5cdb4e5cd05fe7774_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#99;&#94;&#123;&#112;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"15\" style=\"vertical-align: 0px;\"\/>\u00a0represents the largest wave speed present in the entire solution domain at time level <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-2b10b56e418e0eb9f9bd7fb21123d7d3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -4px;\"\/>. From the expression of the CFL stability criterion, it is deduced that, regarding the computational cost will be most efficient when the value of this parameter is close to 1.In any case, the reduction of the spatial mesh in the ducts increases computational cost. It is due to the increase of the calculation nodes and how it is shown in the CFL criterion, the time increase with which it is possible to solve the conservation equations also is reduced.This means that to achieve the ending of execution the will be necessary to resolve a higher number of times the system of conservation equations.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">In the case of 0D elements, the stability criterion applied is related to prevent the complete emptying during the step.<\/span><\/p>\n<p>&lt;!\u2013-nextpage\u2013-&gt;<\/p>\n<h1 style=\"text-align: justify;\">Common Time Discretization<\/h1>\n<p style=\"text-align: justify;\">The calculation methodology of the wave action models arises from the way in which the results of the application of stability criteria to 1D and 0D elements is managed. The most extended calculation structure due to it simplicity in the wave models is the Common Time Discretization (CTD),and its diagram is represented in Figure 1. In the CTD structure calculation, the most restrictive stability criterion is applied as global integration step for all elements of the model. For this reason all the model elements are calculated using the minimum time-step. Thus, the calculation stability is ensured.<\/p>\n<div id=\"attachment_43\" style=\"width: 388px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/CTD_.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-43\" class=\"size-full wp-image-43\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/CTD_.jpg\" alt=\"Flow chart of the CTD programme layout\" width=\"378\" height=\"295\" srcset=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/CTD_.jpg 378w, https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/CTD_-300x234.jpg 300w, https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/CTD_-192x150.jpg 192w, https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/CTD_-150x117.jpg 150w\" sizes=\"auto, (max-width: 378px) 100vw, 378px\" \/><\/a><p id=\"caption-attachment-43\" class=\"wp-caption-text\">Figure 1. Flow chart of the CTD programme layout<\/p><\/div>\n<p style=\"text-align: justify;\">First, the model variables initialization are performed (<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-1c8a84221df549321ae293f8f7a3df67_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#48;&#32;&#61;&#32;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"47\" style=\"vertical-align: -3px;\"\/> for all the ducts and elements of the model), as well as the initial time step, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-5d7552331c77853acbebc627a2d5e172_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#123;&#105;&#110;&#105;&#125;&#32;&#61;&#32;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"58\" style=\"vertical-align: -3px;\"\/>. After applying the CFL criterion for all ducts of the engine, the maximum time\u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-7061f0b0f52330af3c2bb36c2746fc04_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"12\" style=\"vertical-align: -4px;\"\/> to each of them could move is obtained. Then, the duct with the minimum time <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-7061f0b0f52330af3c2bb36c2746fc04_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"12\" style=\"vertical-align: -4px;\"\/> is searched, and this is the maximum time with which the model can progress in this time step <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-22d5bb64f2e2b227acbf99ac6889d8c1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#123;&#101;&#110;&#100;&#125;&#32;&#61;&#32;&#116;&#95;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"65\" style=\"vertical-align: -4px;\"\/>. Thus, the common time step will be:<\/p>\n<p style=\"text-align: center;\">\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 15px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-9b7cb70c82cd8b3f11b466e72f7ef9ef_l3.png\" height=\"15\" width=\"119\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#116;&#61;&#116;&#95;&#123;&#101;&#110;&#100;&#125;&#45;&#116;&#95;&#123;&#105;&#110;&#105;&#125;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<\/p>\n<p style=\"text-align: justify;\">It is necessary to check that in this time step, the stability criterion is carried out for all the 0D elements. Otherwise, it would be necessary the time step correction to achieve this more restrictive condition. Once the verification or it corresponding correction (if it is necessary) are completed, the thermo- and fluid-dynamics conditions in the ducts, boundary conditions and 0D elements are calculated with the common time step. Finally, other sub-models such as the VGT position or the EGR valve are calculated as weel as the outlet results.With this, all calculations corresponding to the time step are solved and then it is only necessary to check if the program is ended. Otherwise, the calculation of the next time step is started.<br \/>\nFrom the point of view of the programming control structure, the CTD calculation is very simple, but it supposes, from the CTD diagram, an important computational cost penalty. It is due the fact that most common case is that there are ducts with different spatial mesh (it is shown in Figure2). According to the CFL criterion, the ducts with a lower meshing could be calculated with a higher time step, and therefore less number of times. The objective is the use of the understanding of this phenomenon in order to optimize the calculation structure of the wave action models and contribute to decreasing the computational cost without the loss of the precision and accuracy.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"attachment_48\" style=\"width: 514px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig1.3.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-48\" class=\"size-full wp-image-48\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig1.3.jpg\" alt=\"Figure 2. Objectives of accuracy and computational effort trade-off for the new calculation methodology and final Time-marching of Common Time Discretisation.\" width=\"504\" height=\"223\" srcset=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig1.3.jpg 504w, https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig1.3-300x132.jpg 300w, https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig1.3-250x110.jpg 250w, https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig1.3-150x66.jpg 150w\" sizes=\"auto, (max-width: 504px) 100vw, 504px\" \/><\/a><p id=\"caption-attachment-48\" class=\"wp-caption-text\">Figure 2. Objectives of accuracy and computational effort trade-off for the new calculation methodology and final Time-marching of Common Time Discretization.<\/p><\/div>\n<h1>Independent time discretization<\/h1>\n<p style=\"text-align: justify;\">With the need to optimize the calculation structure of the wave action models to reduce the computational cost, it is proposed a computational structure in which each elements of the 1D model are calculated with the temporary increase resulting from application of their own CFL stability criterion. Thus, when it is essential to introduce an exceptionally low mesh in some duct, it will be caught up the objective of achieving higher local precision at the expense of increasing the local computational cost, without affecting the rest of the simulated elements. With this philosophy of computation, which has been called Independent Temporal Discretization and whose acronym is ITD, it is possible to achieve the target. The same calculation example in Figure 2 but resolved with the computational structure ITD, Figure 3, show that it is possible to reduce drastically the number of times that the ducts with a higher spatial mesh are solved.<\/p>\n<div id=\"attachment_49\" style=\"width: 265px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig_itd1.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-49\" class=\"size-full wp-image-49\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig_itd1.jpg\" alt=\"Figure 3. Example of the ITD calculation structure where it is shown the reduction of calculation performed in a duct with higher mesh.\" width=\"255\" height=\"215\" srcset=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig_itd1.jpg 255w, https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig_itd1-177x150.jpg 177w, https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig_itd1-150x126.jpg 150w\" sizes=\"auto, (max-width: 255px) 100vw, 255px\" \/><\/a><p id=\"caption-attachment-49\" class=\"wp-caption-text\">Figure 3. Example of the ITD calculation structure where it is shown the reduction of calculation performed in a duct with higher mesh.<\/p><\/div>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">However, as is shown in Figure 3, when the time step calculation is carried out in the duct j it is not possible to assure that the duct k is in the same time instant. The characteristics of the ITD calculation structure involves that the flowchart is more complex and requires more attention than the CTD structure. In Figure 4 it is shown the ITD flow chart. In the ITD structure calculation a loop is defined in which is resolved with a specific temporary increase the conservation equation system in the 1D elements, and the 0D elements and boundary conditions connected to them. This loop is included inside a main loop that controls the well-running of the execution.<\/span><\/p>\n<div id=\"attachment_51\" style=\"width: 369px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig_itd.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-51\" class=\"size-full wp-image-51\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig_itd.jpg\" alt=\"Figure 4. Flowchart of the ITD programme layout.\" width=\"359\" height=\"446\" srcset=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig_itd.jpg 359w, https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig_itd-241x300.jpg 241w, https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig_itd-120x150.jpg 120w\" sizes=\"auto, (max-width: 359px) 100vw, 359px\" \/><\/a><p id=\"caption-attachment-51\" class=\"wp-caption-text\">Figure 4. Flowchart of the ITD programme layout.<\/p><\/div>\n<p style=\"text-align: justify;\">First, the initialization of all variables are carried out and the variables <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-8fcc68c8ed3098f2799515a839430ce9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"13\" style=\"vertical-align: -3px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-7061f0b0f52330af3c2bb36c2746fc04_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"12\" style=\"vertical-align: -4px;\"\/> are assigned to each duct. <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-8fcc68c8ed3098f2799515a839430ce9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"13\" style=\"vertical-align: -3px;\"\/> is referred to an initial instant calculation and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-7061f0b0f52330af3c2bb36c2746fc04_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"12\" style=\"vertical-align: -4px;\"\/> is the specific calculation instant until that the calculation of each duct can progress according to the CFL stability criterion.On the other hand <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-6940b7aa5fdaa81a66cf7c2b9b930bd6_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#123;&#105;&#110;&#105;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"24\" style=\"vertical-align: -3px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-07d104b0f071654fda781e4999374c34_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#123;&#101;&#110;&#100;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"28\" style=\"vertical-align: -3px;\"\/>, that represent the initial and final calculation time after a global time step of the model, are defined. Further, the duct whose <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-7061f0b0f52330af3c2bb36c2746fc04_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"12\" style=\"vertical-align: -4px;\"\/> is maximum is searched, which defines tend. Once tend is known, the global time-step is set as:<\/p>\n<p style=\"text-align: center;\"><a name=\"id2778214676\"><\/a><\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 15px;\"><span class=\"ql-right-eqno\"> (1) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-9ed346fa472042719060a0d5e62a6ac1_l3.png\" height=\"15\" width=\"119\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#68;&#101;&#108;&#116;&#97;&#32;&#116;&#61;&#116;&#95;&#123;&#101;&#110;&#100;&#125;&#45;&#116;&#95;&#123;&#105;&#110;&#105;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<\/p>\n<p style=\"text-align: justify;\">During the global time-step every engine element will be calculated one time at least. For each element, the global time-step will divide in many specific time-steps according to its own criteria. The global time-step defined in equation <a href=\"#id2778214676\">1<\/a>\u00a0is modified if any 0D element would need a more restrictive time step to fulfill its stability criteria. If this would be necessary, tend value came to be <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-1a011a228be8e9ca8048d428d6c17428_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#123;&#101;&#110;&#100;&#125;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"37\" style=\"vertical-align: -3px;\"\/>.The same happens in each duct in which the value of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-7061f0b0f52330af3c2bb36c2746fc04_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"12\" style=\"vertical-align: -4px;\"\/> is higher than <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-1a011a228be8e9ca8048d428d6c17428_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#123;&#101;&#110;&#100;&#125;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"37\" style=\"vertical-align: -3px;\"\/>. With this, the global and the specifics time-step will be corrected. Next, the governing equations are solved in the ducts whose <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-7061f0b0f52330af3c2bb36c2746fc04_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"12\" style=\"vertical-align: -4px;\"\/> is minimum. Furthermore, its boundary conditions are solved as well, but it must be taken into account that the rest of the engine elements are at a different calculation time. If there is any 0D element contiguous to this duct, its thermodynamic properties are calculated solving mass and energy balance from the results got from the boundary condition solution. In this case, it is considered that any other duct connected the duct keeps its thermodynamic properties and mass flow constant since the last time in which this duct was calculated. Finally, the next <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-7061f0b0f52330af3c2bb36c2746fc04_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"12\" style=\"vertical-align: -4px;\"\/> value for the current duct is set by applying the CFL stability criterion. These calculation are carried out as many times as required until the duct calculated sets the global time-step. In this moment the ITD loop will finish, and the calculation of the other submodels and the result output are carried out. Also the temporary upgrade of those 0D elements which have not been calculated during the time-step for staying closed is performed. This solution helps to reduces the computational cost. Finally the programme checks if the execution has ended. If the programme ending has not been reached, the duct whose <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-7061f0b0f52330af3c2bb36c2746fc04_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"12\" style=\"vertical-align: -4px;\"\/> is maximum is searched in order to get the new global time-step and the ITD loop begins again. This iterative process is carried out until the calculation end is reached.<\/p>\n<h1 style=\"text-align: justify;\">Independent time discretization in boundary conditions.<\/h1>\n<p style=\"text-align: justify;\">The use of the ITD calculation methodology requires the adaptation of the boundary conditions resolution. On this matter, three kinds of boundary conditions have to be distinguished depending on the type of engine components that the boundary condition connects:<\/p>\n<ul>\n<li style=\"text-align: justify;\">Extreme boundary conditions of 1D elements. This group includes the boundary conditions that represent the extremes of closed ducts, anechoic or open to a particular atmosphere.Includes other specific cases where the imposition of a pressure pulse is the most important.Its resolution has not difference on CTD structure calculation.<\/li>\n<li style=\"text-align: justify;\">Boundary conditions of 1D connected to 0D elements. There is not any difference in the way the boundary condition is solved with regard to the CTD programme layout. However, it is necessary take into account how is affected the resolution of mass and energy balances that determine the thermodynamic conditions inside the 0D elements. As previously stated, every time a contiguous duct is solved, the 0D element has to be updated to the current calculation time. In order to carry out the energy and mass conservation balances inside the 0D element, every duct end connected to the 0D element has to be considered. This fact leads to take into account last calculated results for every boundary condition by assuming that the information is frozen since last time they all were calculated until the current calculation time.<\/li>\n<li style=\"text-align: justify;\">Boundary conditions between 1D elements. In this case, when the boundary condition is solved it must be considered that each duct connected to the boundary condition is at a different calculation time. This situation is represented in Figure 5, which shows the obtaining the characteristics lines and entropy level between two ducts. Every point represented a node of the duct and the gas velocity is assumed from right to left in the ducts. In this situation, the duct k is being solved. Its calculation time is <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-df1a82f492f5da95c5c99592200e76ee_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#123;&#48;&#107;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"20\" style=\"vertical-align: -3px;\"\/> and the calculation has to advance until the instant <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-d2890d92f79c16c4fe2ff0fc43c1b546_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#123;&#49;&#107;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"20\" style=\"vertical-align: -4px;\"\/>. For that, the thermo-fluid-dynamic properties of the duct <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-9565fa6c9b8cbe9c2d2a57f38bbf9670_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#106;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"9\" style=\"vertical-align: -4px;\"\/> are available at the calculation time <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-774549072a4366885967d9e105688df8_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#123;&#48;&#106;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"19\" style=\"vertical-align: -6px;\"\/>.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">In order to solve the boundary condition, the origin of the three characteristic and stream lines has to be found, so all of them pass through the extreme node of duct k in the calculation time <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-d2890d92f79c16c4fe2ff0fc43c1b546_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#95;&#123;&#49;&#107;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"20\" style=\"vertical-align: -4px;\"\/>. Due to the fact that each duct is in different calculation time, two different time-steps need to be distinguished: <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-0bea6c06cc482270df4df2ed20e954ab_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#116;&#95;&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"28\" style=\"vertical-align: -3px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/ql-cache\/quicklatex.com-25051f99b4d7263169905bae0da461dc_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#116;&#95;&#123;&#106;&#107;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"34\" style=\"vertical-align: -6px;\"\/><\/p>\n<div id=\"attachment_58\" style=\"width: 453px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig2.1.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-58\" class=\"size-full wp-image-58\" src=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig2.1.jpg\" alt=\"Figure 5. Solution of the boundary condition for a junction of two ducts.\" width=\"443\" height=\"179\" srcset=\"https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig2.1.jpg 443w, https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig2.1-300x121.jpg 300w, https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig2.1-250x101.jpg 250w, https:\/\/openwam.webs.upv.es\/docs\/wp-content\/uploads\/2014\/05\/Fig2.1-150x60.jpg 150w\" sizes=\"auto, (max-width: 443px) 100vw, 443px\" \/><\/a><p id=\"caption-attachment-58\" class=\"wp-caption-text\">Figure 5. Solution of the boundary condition for a junction of two ducts.<\/p><\/div>\n<h1>References<\/h1>\n\n<div id='zp-InTextBib-zotpress-54e1fae35a0f57faee638d9cf7cd2622' class='zp-Zotpress zp-Zotpress-InTextBib wp-block-group zp-Post-33'>\r\n\t\t<span class=\"ZP_ITEM_KEY ZP_ATTR\">{1817263:GVDR7H2W};{1817263:GHBWTJJX};{1817263:FEMCJEDI}<\/span>\r\n\t\t<span class=\"ZP_STYLE ZP_ATTR\">IEEE<\/span>\r\n\t\t<span class=\"ZP_SORTBY ZP_ATTR\">default<\/span>\r\n\t\t<span class=\"ZP_ORDER ZP_ATTR\">asc<\/span>\r\n\t\t<span class=\"ZP_TITLE ZP_ATTR\"><\/span>\r\n\t\t<span class=\"ZP_SHOWIMAGE ZP_ATTR\"><\/span>\r\n\t\t<span class=\"ZP_SHOWTAGS ZP_ATTR\"><\/span>\r\n\t\t<span class=\"ZP_DOWNLOADABLE ZP_ATTR\"><\/span>\r\n\t\t<span class=\"ZP_NOTES ZP_ATTR\"><\/span>\r\n\t\t<span class=\"ZP_ABSTRACT ZP_ATTR\"><\/span>\r\n\t\t<span class=\"ZP_CITEABLE ZP_ATTR\"><\/span>\r\n\t\t<span class=\"ZP_TARGET ZP_ATTR\"><\/span>\r\n\t\t<span class=\"ZP_URLWRAP ZP_ATTR\"><\/span>\r\n\t\t<span class=\"ZP_FORCENUM ZP_ATTR\">0<\/span>\r\n\t\t<span class=\"ZP_HIGHLIGHT ZP_ATTR\"><\/span>\r\n\t\t<span class=\"ZP_POSTID ZP_ATTR\">33<\/span><div class='zp-List loading'>\n<div class=\"zp-SEO-Content\"><\/div><!-- .zp-zp-SEO-Content -->\n<\/div><!-- .zp-List --><\/div><!--.zp-Zotpress-->\n\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-33","post","type-post","status-publish","format-standard","hentry","category-scientific-documentation"],"_links":{"self":[{"href":"https:\/\/openwam.webs.upv.es\/docs\/index.php?rest_route=\/wp\/v2\/posts\/33","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/openwam.webs.upv.es\/docs\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/openwam.webs.upv.es\/docs\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/openwam.webs.upv.es\/docs\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/openwam.webs.upv.es\/docs\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=33"}],"version-history":[{"count":29,"href":"https:\/\/openwam.webs.upv.es\/docs\/index.php?rest_route=\/wp\/v2\/posts\/33\/revisions"}],"predecessor-version":[{"id":191,"href":"https:\/\/openwam.webs.upv.es\/docs\/index.php?rest_route=\/wp\/v2\/posts\/33\/revisions\/191"}],"wp:attachment":[{"href":"https:\/\/openwam.webs.upv.es\/docs\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/openwam.webs.upv.es\/docs\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/openwam.webs.upv.es\/docs\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}