CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF library trying to load is not compiled for parallel use on the current platform

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 28, 2021, 11:39
Default UDF library trying to load is not compiled for parallel use on the current platform
  #1
New Member
 
Arjun Sajith
Join Date: May 2021
Posts: 3
Rep Power: 2
Arjunsajith is on a distinguished road
I am working with ANSYS Fluent 19.2 and VS2017 and when I try to build & load my UDF i get the following error:
The UDF library you are trying to load (libudf) is not compiled for 3d on the current platform (win64).
The system cannot find the file specified.
I found that when building the UDF it does not seem to complete the process. The message is as follows:
Error: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64).\n\nThe system cannot find the file specified.
\n\nC:\Users\theki\Desktop\ansys\pcm_files\dp0\FFF \Fluent\libudf\win64\3d_host\libudf.dll
Error Object: #f

I started Fluent in serial as well as parallel mode. Error exists in both mode.
Anyone got a clue what the problem might be?


Thanks in advance

Arjun
Arjunsajith is offline   Reply With Quote

Old   May 28, 2021, 11:53
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,915
Rep Power: 23
pakk will become famous soon enough
Yes, you probably missed an error during compiling. Check my signature.
__________________
"The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform" is NOT the error after compiling. It is the error after loading. To see compiler errors, look at your screen after you click "build".
pakk is offline   Reply With Quote

Old   May 28, 2021, 12:11
Default
  #3
New Member
 
Arjun Sajith
Join Date: May 2021
Posts: 3
Rep Power: 2
Arjunsajith is on a distinguished road
Copied C:\Users heki\Desktop\ansys\pcm_files\dp0\FFF\Fluent rail.c to libudf\src
Creating user_nt.udf file for 3d_host ...
(system "copy "C:\PROGRA~1\ANSYSI~1\v192\fluent"\fluent19.2.0\sr c\udf\makefile_nt.udf "libudf\win64\3d_host\makefile" ")
1 file(s) copied.
(chdir "libudf")(chdir "win64\3d_host")# Generating ud_io1.h
trail.c
C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0\src\ main\global.h(9): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
Creating user_nt.udf file for 3d_node ...
(system "copy "C:\PROGRA~1\ANSYSI~1\v192\fluent"\fluent19.2.0\sr c\udf\makefile_nt.udf "libudf\win64\3d_node\makefile" ")
1 file(s) copied.
(chdir "libudf")(chdir "win64\3d_node")# Generating ud_io1.h
trail.c
C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0\src\ main\global.h(9): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory

Done.



This is the error while building.

How do i deal with this error .

Thanks in advance

Arjun
Arjunsajith is offline   Reply With Quote

Old   May 28, 2021, 12:25
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,915
Rep Power: 23
pakk will become famous soon enough
Read it.

It says there is a problem on line 9. You try to include stdio.h, but that file does not exist.

Why do you include that file? You don't need that in Fluent UDFs...
__________________
"The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform" is NOT the error after compiling. It is the error after loading. To see compiler errors, look at your screen after you click "build".
pakk is offline   Reply With Quote

Old   May 29, 2021, 08:06
Default
  #5
New Member
 
Arjun Sajith
Join Date: May 2021
Posts: 3
Rep Power: 2
Arjunsajith is on a distinguished road
This is the code i have used for the UDF . I have not given stdio.h command but still it is having this error.


#include "udf.h"

DEFINE_PROPERTY(PCM_density,cell,thread)
{

real tempe2,r;
#if !RP_HOST
tempe2 = C_T(cell,thread);
if (tempe2 <= 298.6)
r=785;
else if ((tempe2 > 298.6) && (tempe2 < 300.6))
{

r=785-(36*(tempe2-298.6)/2);
}

else if (tempe2 >= 300.6)
{
r=749*(1-0.001*(tempe2-300.6));
}
#endif
return r;

}

DEFINE_PROPERTY(PCM_Dynamicviscosity,cell,thread)
{
real tempe2,mu;
#if !RP_HOST
tempe2 = C_T(cell,thread);
if (tempe2 <= 298.6)
mu=1;
else if ((tempe2 > 298.6) && (tempe2 <= 300.5))
mu=(300.6-tempe2)/2;
else if ((tempe2 > 300.5) && (tempe2 <= 300.6))
mu=(300.6035-tempe2)/2.07;
else if (tempe2 > 300.6)
mu=0.00169;
#endif
return mu;
}

DEFINE_PROPERTY(PCM_thermalconductivity,cell,threa d)
{
real tempe2,k;
#if !RP_HOST
tempe2 = C_T(cell,thread);
if (tempe2 <= 298.6)
k=0.19;
if ((tempe2 > 298.6) && (tempe2 < 300.6))
{
k=0.19-(0.01*(tempe2-298.6)/2;
}
else
{
k=0.18;
}
#endif
return k;
}

DEFINE_SPECIFIC_HEAT(PCM_specificheat, T, Tref, h, yi)
{
real cp,dnum;
#if !RP_HOST
if (T <= 298.6)
cp=1800;
if ((T > 298.6) && (T < 300.6))
{
cp=1800+(600*(T-298.6)/2);
}
else
{
cp=2400;
}
*h=cp;
#endif
return cp;
}
Arjunsajith is offline   Reply With Quote

Old   May 29, 2021, 11:09
Default
  #6
Senior Member
 
Join Date: Nov 2013
Posts: 1,915
Rep Power: 23
pakk will become famous soon enough
O, I see. I'm sorry, I did not look good enough, the error is in global.h, not in your code.

I guess that you have never compiled before with this installation? If so, it's good to mention that next time.

The problem is in the compiler installation (VS2017): it looks like not all files are included, or they are not configured good. This has nothing to do with your code.

The bad news: I have no idea how to fix this. Reinstall is the only thing I can think of.
__________________
"The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform" is NOT the error after compiling. It is the error after loading. To see compiler errors, look at your screen after you click "build".
pakk is offline   Reply With Quote

Reply

Tags
ansys 19.2, fluent, udf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF: How to load data from an external file into a vector EmiS Fluent UDF and Scheme Programming 17 January 14, 2019 01:55
Current density visualisation (PEM fuel cell add-on module) pchoopanya FLUENT 9 April 2, 2018 02:27
UDF library load error smgeorge531 Fluent UDF and Scheme Programming 6 August 26, 2013 04:06
cannot load UDF library jayilosa Fluent UDF and Scheme Programming 3 November 16, 2011 12:44
setting up compiled UDF library in windows2000 sivakumar FLUENT 1 October 19, 2001 03:46


All times are GMT -4. The time now is 18:39.