-
-
October 12, 2018 at 1:18 pm
Devank12
SubscriberI have two udfs for two different fluids. Udfs are clearly defining the temperature dependent properties such as density, thermal conductivity, specific heat & viscosity. I also have successfully loaded in fluent using compiling. My doubt is how to differentiate these properties while specifying in materials properties dialog box?? -
October 12, 2018 at 1:27 pm
Keyur Kanade
Ansys EmployeeYou will get names defined in different udfs in drop down menu. Then you need to select appropriate udf in dialog box.
Regards,
Keyur
-
October 12, 2018 at 1:43 pm
desouzadacosta
Subscriberyou can place them in a single file and compile. the first parameter name after the ( in the DEFINE line is what distinguishes them.
-
October 12, 2018 at 1:54 pm
raul.raghav
SubscriberAs Keyur and desouzadacosta pointed out, you can place them in a single file under the same header and compile it. You would get to choose the appropriate function when you define the individual material property. Below is the structure you would want to follow.
#include "udf.h"
DEFINE_PROPERTY(density_fluid1,c,t)
{
/*your code defining density for fluid 1*/
}
DEFINE_PROPERTY(density_fluid2,c,t)
{
/*your code defining density for fluid 2*/
}
-
December 5, 2020 at 5:31 pm
Abdmen
SubscriberHello i do the same procedure of haveing 2 udfs in the same file but when interpreted them i get a fatal signal. please how to solve it? and thank you n -
December 7, 2020 at 1:53 pm
Rob
Ansys EmployeeHave you overwritten any definitions? Do they work separately? n -
December 7, 2020 at 8:11 pm
DrAmine
Ansys EmployeeI usually do not copy the UDFs in the same file. nPlease do compile instead of interpretating.n
-
- You must be logged in to reply to this topic.

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
-
2524
-
2066
-
1279
-
1096
-
457
© 2023 Copyright ANSYS, Inc. All rights reserved.