TAGGED: fluent, udf, udf-fluent
-
-
April 27, 2021 at 2:52 pm
Bibill
SubscriberDear 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 -
April 28, 2021 at 1:50 pm
Konstantin
Ansys EmployeeI 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.
Innovation Space
Trending discussions
Top Contributors
-
6660
-
1906
-
1469
-
1313
-
1022
Top Rated Tags
© 2026 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.