-
-
July 16, 2019 at 2:57 pm
LukeM
SubscriberHello,
I am running some Fluent simulations involving UDFs, but the computational expense on my computer is large. To overcome this issue, I would like to submit my simulations to a cluster after starting the simulation on my computer. From what I've seen online, I cannot simply load the case/data file on the cluster and run it because the UDFs will not work. Instead, I will need to compile, load, and hook the UDFs from the cluster. While these extra steps are manageable for one simulation, I plan to perform numerous simulations, and performing these extra steps for each simulation will consume a significant amount of time. This concern leads to the following questions:
1) Since the UDFs will not change between simulations, can I compile the UDFs once, requiring only loading and hooking the UDFs for subsequent simulations?
2) Is it possible to load a previously-compiled UDF? This step would be necessary if 1) is possible, but it might also be necessary if only certain nodes on the cluster can compile.
3) Using a GUI on my cluster is very inconvenient, so I am trying to only use TUI commands. Is there a simple way to hook the DEFINE_DIFFUSIVITY and DEFINE_SOURCE UDFs through the TUI? The options through /define/user-defined/function-hooks/ do not seem to include those type of UDFs. Also, is there a way to load UDFs through TUI commands?
4) Is there a simpler approach to hand this whole issue? I'm sure I'm not the first person to have this problem.
A few notes: First, my computer uses Windows while the cluster uses Linux. Second, simply sharing the folder containing my UDF files on my computer is not possible with my cluster -- all files have to be located on the cluster.
As always, I apologize if these questions are addressed in the user manual. I search through it but could have missed relevant articles. If I did, I would appreciate the names of those articles.
Thanks in advance,
Luke
-
July 16, 2019 at 3:39 pm
DrAmine
Ansys EmployeeYou need to compile for the version you are deploying in parallel and you can load that library for every Fluent case sharing the same dimension (2d,3d) and same precision.
All that can be steered thourgh batch journaling.
The function hooks are for general purpose macros. All others like sources and properties can be selected similarly to setting up a normal case from TUI. -
July 16, 2019 at 6:22 pm
LukeM
SubscriberHi Amine,
I'm happy to hear that compiled UDFs can be loaded by other simulations and through journal files. After some searching and experimentation, I discovered the define/user-defined/compiled-functions TUI and the necessary inputs. The full address (including the folder name) should be given to the folder created from the "Build" process.
For the hooking process, can you provide more information on hooking the source and property UDFs using TUI? Perhaps an article name in the manual? I am having trouble finding the proper commands.
Luke
-
July 17, 2019 at 6:48 am
DrAmine
Ansys Employee -
July 17, 2019 at 2:08 pm
LukeM
SubscriberThanks, Amine. This is what I was looking for.
-
- 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
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
-
3852
-
2629
-
1859
-
1252
-
600
© 2023 Copyright ANSYS, Inc. All rights reserved.