TAGGED: udf-fluent
-
-
February 12, 2021 at 1:15 pm
NimaNZ
SubscriberHi nI want to compile a simple UDF for the velocity inlet, but it says that the UDF is not for a parallel solver. Besides, I want to run the final Case on an HPC cluster that is Linux based. If I manage to compile the UDF on my personal computer can I I run it on the HPC?n/***********************************************************************/n/* Velocity.c */n/* UDF for specifying steady-state velocity profile boundary condition */n/***********************************************************************/n#include udf.hnnDEFINE_PROFILE(inlet_x_velocity, thread, position) n{n real x[ND_ND]; /* this will hold the position vector */n real y;n face_t f;nn begin_f_loop(f, thread)n {n F_CENTROID(x,f,thread);n y = x[1];n F_PROFILE(f, thread, position) = 2.605*(double)log((double)(y/.005));n }n end_f_loop(f, thread)n}n n -
February 12, 2021 at 1:19 pm
Rob
Ansys EmployeeThere's a section in the UDF manual that covers what requires parallelisation and how to do it. If you compile on your PC you'll have a library for Win10, if the cluster is not Win10 you'll need to recompile on that. n -
February 12, 2021 at 1:25 pm
NimaNZ
SubscriberHi RobnThanks for your reply; regarding recompiling on that machine, should I write the case and data files without any UDF included and then over there compile and load using TUI commands and set the velocity-inlet boundary condition there?n -
February 12, 2021 at 1:27 pm
NimaNZ
SubscriberThere's a section in the UDF manual that covers what requires parallelisation and how to do it. If you compile on your PC you'll have a library for Win10, if the cluster is not Win10 you'll need to recompile on that.https://forum.ansys.com/discussion/comment/106576#Comment_106576
Hi RobnThanks for your reply; regarding recompiling on that machine, should I write the case and data files without any UDF included and then over there compile and load using TUI commands and set the velocity-inlet boundary condition there?n -
February 12, 2021 at 1:35 pm
YasserSelima
SubscriberUse an expression if you are using 2019 R1 or later, you can avoid using UDF for this case. n -
February 12, 2021 at 1:41 pm
NimaNZ
SubscriberUse an expression if you are using 2019 R1 or later, you can avoid using UDF for this case.https://forum.ansys.com/discussion/comment/106580#Comment_106580
Thanks, Yasser.nI usually use the expression option, but the problem is the HPC cluster doesn't recognize the expression.n -
February 12, 2021 at 11:55 pm
YasserSelima
SubscriberI seen -
February 15, 2021 at 11:45 am
Rob
Ansys EmployeeI find it's easier to launch the solver on the cluster then compile the UDF then load the case and data. You don't need a case file for the compiler to work, and can actually compile outside of Fluent if you really want to. n -
February 15, 2021 at 1:50 pm
NimaNZ
SubscriberThanks so much Robn
-
- 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
-
5290
-
3311
-
2469
-
1308
-
1016
© 2023 Copyright ANSYS, Inc. All rights reserved.