


{"id":391644,"date":"2024-10-28T18:34:12","date_gmt":"2024-10-28T18:34:12","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/saving-report-value-to-a-variable-using-tui-commands-in-fluent\/"},"modified":"2024-10-28T18:34:12","modified_gmt":"2024-10-28T18:34:12","slug":"saving-report-value-to-a-variable-using-tui-commands-in-fluent","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/saving-report-value-to-a-variable-using-tui-commands-in-fluent\/","title":{"rendered":"Saving report value to a variable using TUI commands in Fluent"},"content":{"rendered":"<p>&lt;p&gt;Hi all,&lt;br&gt;&lt;br&gt;I am writing a script using TUI commands to run Fluent in batch mode, and am looking for a way to save the actual value of a report to a variable in the script. I want the value of a mass flow rate report so that I can perform some logic based off of the value, so I want to write something like this:&lt;br&gt;&lt;br&gt;(define mass_flow_rate 0)&lt;br&gt;&lt;br&gt;; initialize and solve&lt;br&gt;&lt;br&gt;(set! mass_flow_rate (report\/surface-integrals\/mass-flow-rate outlet , ,))&lt;br&gt;&lt;br&gt;but the command:&lt;br&gt;&lt;br&gt;report\/surface-integrals\/mass-flow-rate outlet , ,&lt;br&gt;&lt;br&gt;only prints the value to the console, so the above doesn&#8217;t work to get the value. Is there a simple way to access the value of the report to save to the variable?&lt;br&gt;&lt;br&gt;I have also tried creating an expression, but I ran into the same issue and can&#8217;t figure out how to access an expression&#8217;s value either. Similarly, I can also export both the report and expression to an output text file, but can&#8217;t figure out if there&#8217;s a way to load that value from the file into a variable either.&lt;\/p&gt;&lt;p&gt;Any help would be greatly appreciated!&lt;\/p&gt;&lt;p&gt;Thanks,&lt;\/p&gt;&lt;p&gt;Kyle&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-391644","topic","type-topic","status-publish","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_author_ip":["108.26.205.189"],"_btv_view_count":["231"],"_bbp_topic_status":["unanswered"],"_bbp_subscription":["15180","473582"],"_bbp_topic_id":["391644"],"_bbp_forum_id":["27792"],"_bbp_engagement":["15180","473582"],"_bbp_voice_count":["2"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["391869"],"_bbp_last_active_id":["391869"],"_bbp_last_active_time":["2024-10-29 21:48:37"]},"test":"wheeler-kynortheastern-edu"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/391644","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/391644\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=391644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}