-
-
October 9, 2018 at 9:08 am
-
October 9, 2018 at 9:26 am
DrAmine
Ansys EmployeeCan you compile a small UDF in Fluent outside the Workbench?
Example will be:
#include "udf.h"
DEFINE_ON_DEMAND(Hello)
{
Message0("nHello World!n");
}
-
October 9, 2018 at 10:07 am
ft19
Subscriberyes, i tryed to compile this code in c++ and imported it in ansys but it displays the same error. do you know why? i tryed also to compile it in wordpad, but same error.
-
October 9, 2018 at 11:02 am
DrAmine
Ansys EmployeeHave you tried to compile the lines I have sent? Have you installed the required compilers (Visual Studio)?
-
October 9, 2018 at 11:06 am
Keyur Kanade
Ansys EmployeePlease see this list of compatible visual studio applications using the link below and make sure you have a correct version installed on your system.
Thank you.
Keyur
-
October 9, 2018 at 11:49 am
seeta gunti
Ansys EmployeeHello ft,
To compile the UDF, we need to install VS in your windows machine. You need to set either the environment variables or run the fluent from VS command prompt and compile the UDF.
for more information, please go through the below link.
-
October 24, 2018 at 5:06 am
Keyur Kanade
Ansys EmployeeIs your issue resolved?
Regards,
Keyur
-
- 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
-
1285
-
1102
-
459
© 2023 Copyright ANSYS, Inc. All rights reserved.