-
-
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
Forum ModeratorHave 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
-
- The topic ‘how can i compile multiple udfs’ is closed to new replies.
-
3597
-
1283
-
1107
-
1068
-
983
© 2025 Copyright ANSYS, Inc. All rights reserved.