|
[Sponsors] |
UDF library trying to load is not compiled for parallel use on the current platform |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Arjun Sajith
Join Date: May 2021
Posts: 4
Rep Power: 4 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 25 ![]() |
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". |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Arjun Sajith
Join Date: May 2021
Posts: 4
Rep Power: 4 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 25 ![]() |
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". |
|
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
Arjun Sajith
Join Date: May 2021
Posts: 4
Rep Power: 4 ![]() |
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; } |
|
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 25 ![]() |
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". |
|
![]() |
![]() |
![]() |
![]() |
#7 | |
New Member
Parvaneh Zare
Join Date: Jul 2021
Posts: 4
Rep Power: 3 ![]() |
Quote:
Hi, Could you please let me know whether you solved the problem? |
||
![]() |
![]() |
![]() |
![]() |
#8 |
New Member
Arjun Sajith
Join Date: May 2021
Posts: 4
Rep Power: 4 ![]() |
Sorry, I did not get any solution.
|
|
![]() |
![]() |
![]() |
![]() |
#9 |
New Member
Parvaneh Zare
Join Date: Jul 2021
Posts: 4
Rep Power: 3 ![]() |
Thank you for your quick response. I found the solution. After installing Microsoft Visual Studio, the problem has been solved. Since I am using compiling, an external compiler such as Microsoft Visual Studio is required. Thanks |
|
![]() |
![]() |
![]() |
![]() |
#10 |
New Member
central province
Join Date: Oct 2020
Posts: 9
Rep Power: 4 ![]() |
Please I am also having same issue which version of VS you have installed
|
|
![]() |
![]() |
![]() |
![]() |
#11 |
New Member
Parvaneh Zare
Join Date: Jul 2021
Posts: 4
Rep Power: 3 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#12 |
New Member
Damir
Join Date: Apr 2023
Posts: 5
Rep Power: 2 ![]() |
||
![]() |
![]() |
![]() |
Tags |
ansys 19.2, fluent, udf |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |