


{"id":460288,"date":"2026-06-24T08:47:16","date_gmt":"2026-06-24T08:47:16","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/pyfluent-assigning-massweighted-average-of-total-pressure-to-a-variable\/"},"modified":"2026-06-24T08:47:16","modified_gmt":"2026-06-24T08:47:16","slug":"pyfluent-assigning-massweighted-average-of-total-pressure-to-a-variable","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/pyfluent-assigning-massweighted-average-of-total-pressure-to-a-variable\/","title":{"rendered":"Pyfluent &#8211; Assigning massweighted average of total pressure to a variable"},"content":{"rendered":"<p>&lt;p&gt;I am able to calculate mass weighted total pressure but not able to assign it to a variable&lt;\/p&gt;&lt;p&gt;the code line is as below&lt;\/p&gt;&lt;p&gt;in_tp=solver.tui.report.surface_integrals.mass_weighted_avg(&#8220;inlet&#8221;, &#8220;()&#8221;, &#8220;total-pressure&#8221;)&lt;\/p&gt;&lt;p&gt;this code prints mass weighted average of total pressure at inlet but variable in_tp does not store tha value.&nbsp;&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-460288","topic","type-topic","status-publish","hentry","topic-tag-python-ironpython-1","topic-tag-pyansys-1"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27792"],"_bbp_topic_id":["460288"],"_bbp_subscription":["543335","8124"],"_bbp_author_ip":["167.103.2.94"],"_bbp_last_reply_id":["460293"],"_bbp_last_active_id":["460293"],"_bbp_last_active_time":["2026-06-24 12:09:18"],"_bbp_reply_count":["1"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["543335","8124"],"_btv_view_count":["18"],"_bbp_topic_status":["unanswered"]},"test":"ata7333atmus-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/460288","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\/460288\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=460288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}