-
-
July 9, 2019 at 2:35 pm
ehkh
SubscriberHi,
I would like to know if there is a method to check the output of my UDFs before compiling and loading it into in Fluent. which editor or compiler should I use?
I have tried to compile my UDFs in Visual Studio but it was unable to define some variables such as 'real', the reason is that Fluent uses a C programming based Language, but not exactly c language, The way to define functions and variables is different.
I appreciate if you advice me how can I check the output of my UDF so I can modify it based on the results that I am looking at.
Thanks,
Esra'a
-
July 10, 2019 at 10:59 am
Rob
Ansys EmployeeCompilers are covered in the Installation section, and we're using VS 2017 at the moment. You can edit in there or (as I do) use Notepad++ as it's easy to see what's commented, nested etc.
Not sure why you can't define something as real, it's a standard C command?
-
July 11, 2019 at 1:55 pm
ehkh
SubscriberHi,
Thanks for your reply.
I can edit mu UDF in VS2017 or Notepad, but unable to see its output on VS.
I followed up the following procedure described in the following link to compile it, but its not successful !!
Could you please advice me if there are different method tho check the output of UDF.
Thanks
-
July 11, 2019 at 4:13 pm
DrAmine
Ansys EmployeeWhat do you mean with output? If Fluent dependent the UDF should be executed at least once in Fluent. -
July 12, 2019 at 8:26 pm
ehkh
SubscriberI am using a UDF to apply random heat flux at the bottom boundary in a natural convection problem, the results should look like rolls or plumes emitted from the bottom layer as in figure 6 in this paper attached here:
https://www.sciencedirect.com/science/article/pii/S0017931015003269
BUT I didn't get any change in temp, that could mean, my UDF is either returning a value of zero or constant heat flux.
What I need to know is how to check the values of heat flux that my UDF return before compiling and running it into fluent.
Thanks
-
July 16, 2019 at 3:18 am
ehkh
SubscriberHi,
I found out how to do check the values returned by my UDF. I am posting here for other student who are facing the same issue.
I did that by post-processing the results after one iteration and using a xy plot of bottom boundary coordinated vs. heat flux! This shows me the values returned by my UDF is correct.
-
July 16, 2019 at 4:51 am
DrAmine
Ansys EmployeeNice. Always store in an UDM for visualization too.
-
- 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.

Ansys Blog
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.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- Difference between K-epsilon and K-omega Turbulence Model
- The solver failed with a non-zero exit code of : 2
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error: Received signal SIGSEGV
-
5414
-
3391
-
2471
-
1310
-
1022
© 2023 Copyright ANSYS, Inc. All rights reserved.