-
-
July 13, 2019 at 6:36 pm
Osman
SubscriberI am trying to compile a simple UDF to calculate the specific heat of PCM material however, when I am trying to compile the UDF I got this error :"The UDF library that you are trying to load (libudf) is not compiled for parallel use on the current platform (win 64).
the system cannot find the file specified. "
I am using Fluent 16.1 on a parallel network of 2 compute nodes
this is the UDF That I am trying to compile
#include "udf.h"
DEFINE_SPECIFIC_HEAT(my_user_cp, T, Tref, h, yi)
{
#if !RP_HOST
real cp = 1800.;
if (T <= 341.)
cp = 1700.*exp(0.0606*(T-Tref));
else if (T >= 345.)
{
cp = 4200.;
}
*h = cp*(T-Tref);
return cp;
}
#endif
}
-
July 14, 2019 at 12:55 pm
Osman
SubscriberCan anyone help me to solve this problem ?
-
July 15, 2019 at 10:20 am
Rob
Ansys EmployeeThe error means the code is not compiled. This could mean you don't have a compiler or that there is an error in the code. If you compile the code (Build in the UDF panel) what do you see in Fluent's text window?
As an aside, R16 is 4-5 years old. Please update to 2019R2.
-
July 20, 2019 at 7:44 pm
Osman
SubscriberI have Microsoft visual studio 2019 on my computer and I used Fluent 18 and tried to compile The following UDF and got this error
#include "udf.h"
DEFINE_SPECIFIC_HEAT(my_user_cp, T, Tref, h, yi)
{
real cp = 1800.;
if (T <= 341.)
cp = (0.333*(T-Tref));
else if (T >= 345.)
{
cp = 4200.;
}
*h = 189000.;
return cp;
}
-
July 23, 2019 at 10:47 am
Rob
Ansys EmployeeThat means you don't have a compiled library. What happens when you try and compile the code in Fluent? Read the messages in the TUI: specifically look for "error" and "nmake".
As an aside, we're using MS 2017 at the moment, and it may not be compatible with R18 as that may need MS 2015 compiler.
-
- 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
-
3744
-
2573
-
1793
-
1236
-
594
© 2023 Copyright ANSYS, Inc. All rights reserved.