-
-
August 24, 2018 at 1:54 am
DEBA
SubscriberSIR I HAVE A CONSIDERED 50 MM RADIUS TUBE. LENGTH IS 5 CM . IN THIS TUBE VISCOCITY IS DIFFERENT WITH RADIUS . FOR RADIUS 0 CM TO 30 CM IT IS GOVERNED BY ONE LAW THAT FUNCTION I HAVE WRITTEN IS mu_a=pow((pow(tau_inf/gamma,0.
.
AND FOR RADIUS 30 TO 50 CM IT IS CONSTANT VALUE , 4.8
HOW TO WRITE UDF AS A FUNCTION OF RADIUS FROM CENTER
PLEASE HELP ME BY WRITING THIS UDF
-
August 24, 2018 at 2:28 am
Karthik R
AdministratorHello,
Please have a look at the macro DEFINE_PROPERTY in the Fluent Customization manual. There are a lot of examples in the manual. The best way to modify a UDF is to use an existing one and modify it to your needs. I'd definitely start with the Fluent Customization manual.
I hope this helps.
Best Regards,
Karthik
-
August 24, 2018 at 3:34 am
-
August 24, 2018 at 6:05 am
DrAmine
Ansys EmployeeYou require a UDF Training.
In UDF you cannot access cylindrical coordinates you need to build that on your own. The radius in your case is the Y-coordinate. If you need rather the wall distance than you need to know that this is not available in laminar cases and that you require a way to get the variable in UDF (via Poisson equation or by just enabling turbulence and setting the zone to laminar)
-
August 24, 2018 at 8:46 am
Rob
Ansys EmployeeHave a look in the boundary profile UDF example in the documentation, you'll find an example of dimension checking. From there you need to work out the logic, ie how does the viscosity change with the radius. Once you understand all of that, covert your plan into code and write the UDF.
Note, the community is here to help you achieve your modelling goals. It is not here to do it for you: what would the point be in that?
-
August 25, 2018 at 8:07 am
-
August 25, 2018 at 8:10 am
-
August 25, 2018 at 10:30 am
DrAmine
Ansys EmployeeAs your axis lies on y=0 you can just use coordinate as your dependent variable. Just go through the customization manual and pick up some examples where you might start. You will need an if else condition in you DEFINE PROPERTY UDF.
if (y < height)
Visc = blabla;
else
Visc = tralala;
-
- 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
-
2706
-
2146
-
1357
-
1144
-
462
© 2023 Copyright ANSYS, Inc. All rights reserved.