Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Pyfluent – Assigning massweighted average of total pressure to a variable

    • ata7333
      Subscriber

      I am able to calculate mass weighted total pressure but not able to assign it to a variable

      the code line is as below

      in_tp=solver.tui.report.surface_integrals.mass_weighted_avg("inlet", "()", "total-pressure")

      this code prints mass weighted average of total pressure at inlet but variable in_tp does not store tha value. 

       

    • Essence
      Ansys Employee

      Hello,

      For your information, PyAnsys/PyFluent is not a part of standard Forum support. Therefore, I would suggest you to post the questions related to PyAnsys/PyFluent on Github.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
[bingo_chatbox]