


{"id":389553,"date":"2024-10-14T17:25:00","date_gmt":"2024-10-14T17:25:00","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389553\/"},"modified":"2024-10-14T17:57:54","modified_gmt":"2024-10-14T17:57:54","slug":"389553","status":"publish","type":"reply","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389553\/","title":{"rendered":"Reply To: Reversed flows after switching inlet boundary conditions"},"content":{"rendered":"<p>&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;Thanks Rob for your prompt response.&lt;\/p&gt;&lt;p&gt;Here I am referring the tank pressure as inlet pressure (gauge total pressure), which is set using the following scheme script.&lt;\/p&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;(define (change-inlet-boundary-to-pressure)&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; (if (&gt; (%rpgetvar &#8216;flow-time) 60)&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; (begin&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;; Set the boundary from mass-flow-inlet to pressure-inlet&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (ti-menu-load-string &#8220;define\/boundary-conditions\/zone-type inlet pressure-inlet&#8221;)&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;; Set the pressure inlet conditions: pressure = 45000 Pa (0.45 bar), temperature = 77 K&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (ti-menu-load-string &#8220;define\/boundary-conditions\/pressure-inlet inlet yes no 45000 no 0 no 77 no yes&#8221;)&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;; Output a message confirming the boundary change&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (display &#8220;Boundary condition switched to pressure inlet with pressure 45000 Pa and temperature 77 K.\\n&#8221;)&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; )&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; )&lt;\/div&gt;&lt;div&gt;)&lt;\/div&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;I created a report file to monitor gauge total pressure at the inlet so that I can adjust the set pressure in the scheme script accordingly. As for hydrogen properties, I extracted it from the REFPROP library available in Ansys into a RGP table and hook it up to the material section of hydrogen in Fluent. &nbsp;&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-389553","reply","type-reply","status-publish","hentry"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Thanks Rob for your prompt response.Here I am referring the tank pressure as inlet pressure (gauge total pressure), which is set using the following scheme script. (define (change-inlet-boundary-to-pressure) (if (&gt; (%rpgetvar &#039;flow-time) 60) (begin ;; Set the boundary from mass-flow-inlet to pressure-inlet\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389553\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Ansys Learning Forum | Ansys Innovation Space\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Reply To: Reversed flows after switching inlet boundary conditions | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"Thanks Rob for your prompt response.Here I am referring the tank pressure as inlet pressure (gauge total pressure), which is set using the following scheme script. (define (change-inlet-boundary-to-pressure) (if (&gt; (%rpgetvar &#039;flow-time) 60) (begin ;; Set the boundary from mass-flow-inlet to pressure-inlet\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389553\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-10-14T17:25:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-10-14T17:57:54+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Reply To: Reversed flows after switching inlet boundary conditions | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Thanks Rob for your prompt response.Here I am referring the tank pressure as inlet pressure (gauge total pressure), which is set using the following scheme script. (define (change-inlet-boundary-to-pressure) (if (&gt; (%rpgetvar &#039;flow-time) 60) (begin ;; Set the boundary from mass-flow-inlet to pressure-inlet\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/reply\\\/389553\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/reply\\\/389553\\\/#listItem\",\"name\":\"Reply To: Reversed flows after switching inlet boundary conditions\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/reply\\\/389553\\\/#listItem\",\"position\":2,\"name\":\"Reply To: Reversed flows after switching inlet boundary conditions\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/reply\\\/389553\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/reply\\\/389553\\\/\",\"name\":\"Reply To: Reversed flows after switching inlet boundary conditions | Ansys Learning Forum\",\"description\":\"Thanks Rob for your prompt response.Here I am referring the tank pressure as inlet pressure (gauge total pressure), which is set using the following scheme script. (define (change-inlet-boundary-to-pressure) (if (> (%rpgetvar 'flow-time) 60) (begin ;; Set the boundary from mass-flow-inlet to pressure-inlet\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/reply\\\/389553\\\/#breadcrumblist\"},\"datePublished\":\"2024-10-14T17:25:00+00:00\",\"dateModified\":\"2024-10-14T17:57:54+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Reply To: Reversed flows after switching inlet boundary conditions | Ansys Learning Forum","description":"Thanks Rob for your prompt response.Here I am referring the tank pressure as inlet pressure (gauge total pressure), which is set using the following scheme script. (define (change-inlet-boundary-to-pressure) (if (> (%rpgetvar 'flow-time) 60) (begin ;; Set the boundary from mass-flow-inlet to pressure-inlet","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389553\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389553\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","position":1,"name":"Home","item":"https:\/\/innovationspace.ansys.com\/forum","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389553\/#listItem","name":"Reply To: Reversed flows after switching inlet boundary conditions"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389553\/#listItem","position":2,"name":"Reply To: Reversed flows after switching inlet boundary conditions","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}}]},{"@type":"Organization","@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization","name":"Ansys Learning Forum","description":"Ansys Innovation Space","url":"https:\/\/innovationspace.ansys.com\/forum\/"},{"@type":"WebPage","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389553\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389553\/","name":"Reply To: Reversed flows after switching inlet boundary conditions | Ansys Learning Forum","description":"Thanks Rob for your prompt response.Here I am referring the tank pressure as inlet pressure (gauge total pressure), which is set using the following scheme script. (define (change-inlet-boundary-to-pressure) (if (> (%rpgetvar 'flow-time) 60) (begin ;; Set the boundary from mass-flow-inlet to pressure-inlet","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389553\/#breadcrumblist"},"datePublished":"2024-10-14T17:25:00+00:00","dateModified":"2024-10-14T17:57:54+00:00"},{"@type":"WebSite","@id":"https:\/\/innovationspace.ansys.com\/forum\/#website","url":"https:\/\/innovationspace.ansys.com\/forum\/","name":"Ansys Learning Forum","description":"Ansys Innovation Space","inLanguage":"en-US","publisher":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization"}}]},"og:locale":"en_US","og:site_name":"Ansys Learning Forum | Ansys Innovation Space","og:type":"article","og:title":"Reply To: Reversed flows after switching inlet boundary conditions | Ansys Learning Forum","og:description":"Thanks Rob for your prompt response.Here I am referring the tank pressure as inlet pressure (gauge total pressure), which is set using the following scheme script. (define (change-inlet-boundary-to-pressure) (if (&gt; (%rpgetvar 'flow-time) 60) (begin ;; Set the boundary from mass-flow-inlet to pressure-inlet","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389553\/","article:published_time":"2024-10-14T17:25:00+00:00","article:modified_time":"2024-10-14T17:57:54+00:00","twitter:card":"summary_large_image","twitter:title":"Reply To: Reversed flows after switching inlet boundary conditions | Ansys Learning Forum","twitter:description":"Thanks Rob for your prompt response.Here I am referring the tank pressure as inlet pressure (gauge total pressure), which is set using the following scheme script. (define (change-inlet-boundary-to-pressure) (if (&gt; (%rpgetvar 'flow-time) 60) (begin ;; Set the boundary from mass-flow-inlet to pressure-inlet"},"aioseo_meta_data":{"post_id":"389553","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"content","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":true,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2024-10-28 16:23:27","updated":"2026-09-23 00:00:25","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tReply To: Reversed flows after switching inlet boundary conditions\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/innovationspace.ansys.com\/forum"},{"label":"Reply To: Reversed flows after switching inlet boundary conditions","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389553\/"}],"acf":[],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/389553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/reply"}],"version-history":[{"count":2,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/389553\/revisions"}],"predecessor-version":[{"id":389558,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/389553\/revisions\/389558"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=389553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}