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.

Maximum value of a field variable

TAGGED: , ,

    • Bibill
      Subscriber
      Dear all,nI'd like to apply a maximum normalization operator to some field variables or to a User-Defined-Memory inside my UDF :nvar' = var/max(var) where var=function(cell,thread) n Does anyone know a macro to make this ? Would PRF_GRHIGH1 be useful ?.Thanks in advance!n
    • Konstantin
      Ansys Employee
      I assume max is calculated over a cell (or face) zone. In this case, a global reduction macro will be needed. They are described in detail in Fluent Customization Manual: 7.3.2. Macros for Parallel UDFs. The macro for the global max is correct. You still need to find max on each compute node.
      Refer to the example shown in 7.3.5. Parallel UDF Example of the customization manual. It shows global summation, but the logic for global max will be very similar

Viewing 1 reply thread
  • The topic ‘Maximum value of a field variable’ is closed to new replies.
[bingo_chatbox]