July 3, 2020 at 9:09 amacukrovSubscriber
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!
July 3, 2020 at 9:25 amRobAnsys Employee
What's different to the example in the manual?
July 3, 2020 at 11:53 amDrAmineAnsys Employee
Give 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 pmacukrovSubscriber
Dear Mr. Amine,
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.
Fig. 1. The code with applied changes and some of the equations computed therein.
- You must be logged in to reply to this topic.
Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Difference between K-epsilon and K-omega Turbulence Model
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Suppress Fluent to open with GUI while performing in journal file
- Mesh Interfaces in ANSYS FLUENT
- Time Step Size and Courant Number
- error: Received signal SIGSEGV
© 2023 Copyright ANSYS, Inc. All rights reserved.