We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Custom Field Function

    • scldr
      Subscriber

      Is there any way to define a custom field function or some sort of UDF that does the following:

      1) Gets the density across a line/surface and calculates the local maxima

      2) Find the point at which the last local maxima occurs (this will be say x = 5cm for example). 

      3) Find the average temperature between x = 0 and where the last maxima occurs (x = 5) on the same line/surface

      I'm not sure if this is possible but would love to know if there is a way to do it.

    • Rob
      Forum Moderator

      You can create a line and then use a report to find min/max/mean etc. That can also be plotted & exported for further processing outside Fluent. 

    • scldr
      Subscriber

      Hi Rob,

      I'm currently doing this outside Fluent by exporting the XY data and post-processing in MATLAB. I was just wondering If i could do this internally in Fluent, but I dont think I can?


    • Rob
      Forum Moderator

      You'll get mean/min/max from the Reports but finding the location of that may be a bit manual. However, writing the xy plot out for a scripted MATLAB or similar workflow is more initial work but possibly better overall. I suspect Minerva or the like can do the same, but if you have a MATLAB script it may not be worth changing. 

Viewing 3 reply threads
  • The topic ‘Custom Field Function’ is closed to new replies.