-
-
July 3, 2020 at 9:09 am
acukrov
SubscriberHi,
I would like to plot the value calculated from within UDF macro "DEFINE_REPORT_DEFINITION_FN".
Since the mesh data is needed, the code is restricted to compute-node as shown in Figure 1.
Fig. 1. The code for computing the value that is to be reported in Fluent. The green mark denotes the successfully printed value, while the underlined is the value that is not recognized as a reported value.
However, the value is not returned for being reported in Fluent, although is correctly printed out using "Message" command. This is displayed in Fig. 2.
Fig. 2. The value is not reported.
The question is: "What is missing that does not allow for the return of the computed value?"
Thanks in advance!
Best regards,
Alen -
July 3, 2020 at 9:25 am
Rob
Forum ModeratorWhat's different to the example in the manual?
-
July 3, 2020 at 11:53 am
Amine Ben Hadj Ali
Ansys EmployeeGive first different name for UDF and the variable of interest. Second: why an UDF? Third: You will have issues if running on more than one CPU (Not parallelized).Â
-
July 3, 2020 at 12:46 pm
acukrov
SubscriberDear Mr. Amine,
thank you!
Answers:
1. tried, not working (Figs. 1 and 2);
2. because I need to estimate the interface position by carrying out the computation using vapor volume fraction and volume of the domain;
3. thanks for note.
Best regards,
Alen
Fig. 1. The code with applied changes and some of the equations computed therein.
Â

Fig. 2. The value that has to be returned is not reported, although is printed correctly.
-
- The topic ‘How to sucessfully return the report value from within UDF?’ is closed to new replies.
-
4893
-
1587
-
1386
-
1242
-
1021
© 2026 Copyright ANSYS, Inc. All rights reserved.


