We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

How to average local values?

    • Anadi_Mondal
      Subscriber

      Hello,

      I want to average local values(ex. deposition mass flux) along the circumference of a pipe at each axial position and finally plot the average values at the end of the simulation.

      Would you give me an idea of how can I do this?

      Regards,

      Anadi

    • RK
      Ansys Employee
    • Anadi_Mondal
      Subscriber

      Thank you for your reply.
      1/Will you check the area-weighted average report definition(below image)? I am trying to simulate annular flow in a 3D pipe. I selected the ANNULAR_WALL(outer pipe surface) as the surface. As it's a transient case, it's reporting a plot of area-averaged variable vs flow-time.
      2/I also created a line(line-8) along the wall(axial direction) of the pipe. Should I select line-8 or Annular_wall as the surface during reporting area-weighted average?
      3/ Finally, how can I plot a graph between area-weighted values along the axial direction(axial position) at the end of the simulation?
      Regards Anadi


    • Rob
      Forum Moderator
      Check the values once you've initialised the solution, I can't remember if lines have an area or not so the solver may return zero. For an area weighted average v time you need to use a monitor to save that data to file every time step. The data files in Fluent store the instantaneous values only (ie for that time step).
    • Anadi_Mondal
      Subscriber

      1/It's showing the plot for both cases. A white line for annular_wall as surfaces and a red line for line-8(a line on the wall in the axial direction) as surface. So, which one is accurate and logical?
      2/Yes, it's showing a graph between area-weighted average vs time(flow-time) but I need to plot area-weighted average vs axial position at the end of the simulation. How can I plot this?
      Regards Anadi



    • Rob
      Forum Moderator
      Both are doing what you told them to. You are reporting the area average of a line (or surface) against time. If you want the time average value at points along the axis with time you may want "hoops" and will have several surfaces. Be very careful with your definitions.
    • Anadi_Mondal
      Subscriber

      I want to plot the area average of a line (or surface) vs axial position at the end of the simulation. Is it possible?
      "I want to average local values along the circumference of a pipe at each axial position and finally plot the average values at the end of the simulation"
      Anadi
    • Rob
      Forum Moderator
      Ah, the average of an axial position value (ie a band) against the axial position. If you use an axial line then you can only plot on that line, so plot variable against position. To get a band you'll need to create many surfaces along the domain and average on each of those for plotting.
    • Anadi_Mondal
      Subscriber

      Thank you for replying.
      I solved this problem by using plot circum-avg-axial command in the console window after finishing the simulation. We can use plot circum-avg-radial for radial direction also.
      Regards Anadi
    • Rob
      Forum Moderator
      Thanks from the graphics https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v212/en/flu_ug/flu_ug_sec_plot_circav.html that may be an old feature that didn't make it into the GUI. Can you post a few images of what you get and the surface contour so I can pass to the Product Manager as I suspect we ought to use the function a bit more: I've never used it.
    • Anadi_Mondal
      Subscriber

      Here is the full information from ANSYS.
      Anadi


    • Rob
      Forum Moderator
      Thanks I meant images of your work. I've removed the manual pages as posting those isn't allowed.
    • Anadi_Mondal
      Subscriber

      Here I average local values( deposition mass flux) along the circumference of a pipe at each axial position and finally plot the average values at the end of the simulation.
      I use plot circum-avg-axial command in the console window to get the average value along the circumference.
      Regards Anadi


    • Rob
      Forum Moderator
      Thanks. The fact the results suggest some banding would imply you need more particles. If it's turbulent just stick some more stochastic tries on.
    • Amine Ben Hadj Ali
      Ansys Employee
      I remember there is an old circum average option in Fluent accessible in TUI.
    • Rob
      Forum Moderator
      That's the one they're using: I suspect it's a relic from v4 but it's potentially useful so maybe time to move it to the GUI.
Viewing 15 reply threads
  • The topic ‘How to average local values?’ is closed to new replies.