|
[Sponsors] |
UDF library is not compiled for 3d on the current platform (win64) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 8, 2021, 07:31 |
UDF library is not compiled for 3d on the current platform (win64)
|
#1 |
New Member
Jeroen
Join Date: Apr 2021
Posts: 17
Rep Power: 5 |
I am working with ANSYS Fluent 18.2 and VS2015 and when I try to build & load my UDF i get the following error:
The UDF library you are trying to load is not compiled for 3d on the current platform (win64). It then says the system cannot find the file... Now I have worked with UDFs before in a newer version of Fluent and I was able to resolve this issue back then by changing the path in Windows. This time however it was not my solution. I found that when building the UDF it does not seem to complete the process. The message is as follows: Copied C:\Users\Lex\Documens\RIFT\CFD_Combustion_Model\UD Fs est.c to libudf\src user_nt.udf is outdated. So, recreating the file for 3d ... (chdir "libudf\win64\3d")(system "copy "C:\PROGRA~l\ANSYSI~l\v182\fluent"\fluent18.2.0\sr c\udf\makefile_nt.udf "libudf\win64\3d\makefile" ") 1 file(s) copied. (chdir "libudf")(chdir "win64\3d")# Generating ud_iol.h Done. In previous versions this message seemed more extensive. I started Fluent in parallel mode. Anyone got a clue what the problem might be? Thanks in advance Jeroen |
|
April 8, 2021, 15:29 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
It has helped me in the past to remove the libudf folder before compiling. I don't know why...
__________________
"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". |
|
April 9, 2021, 03:43 |
|
#3 |
New Member
Jeroen
Join Date: Apr 2021
Posts: 17
Rep Power: 5 |
I have tried this, but it has not resolved my issue. I think the problem is that not all files that should be generated are in the libudf folder. I don't know why it does not complete the build process of my UDF.
When I start the VS2015 command prompt and type 'cl' in the fluent directory I also get the following message: 'cl' is not recognized as an internal or external command. |
|
April 9, 2021, 08:09 |
|
#4 |
New Member
Gemini WANG
Join Date: Mar 2018
Posts: 5
Rep Power: 8 |
Hi,
Have u tried to set up compiling environment with the settings in the Environment tab of the Fluent Launcher? |
|
April 9, 2021, 12:51 |
|
#5 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Is your filename really "Fs est.c" including a space?
__________________
"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". |
|
April 12, 2021, 03:52 |
|
#6 |
New Member
Jeroen
Join Date: Apr 2021
Posts: 17
Rep Power: 5 |
||
April 12, 2021, 03:53 |
|
#7 |
New Member
Jeroen
Join Date: Apr 2021
Posts: 17
Rep Power: 5 |
||
April 12, 2021, 04:57 |
|
#8 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
remove libudf, in fluent press build and show compilation log here
__________________
best regards ****************************** press LIKE if this message was helpful |
|
April 13, 2021, 06:48 |
|
#9 |
New Member
Jeroen
Join Date: Apr 2021
Posts: 17
Rep Power: 5 |
This is what's in the log file:
'cl' is not recognized as an internal or external command, operable program or batch file. NMAKE : U1077: 'cl' : return code '0x1' Stop. It also shows there is a 'cl' error as mentioned before. |
|
April 13, 2021, 11:13 |
|
#10 |
Member
Yasser Selima
Join Date: Mar 2009
Location: Canada
Posts: 51
Rep Power: 19 |
this is environmental settings issue. It has nothing to do with the UDF
|
|
April 13, 2021, 11:45 |
|
#11 |
New Member
Jeroen
Join Date: Apr 2021
Posts: 17
Rep Power: 5 |
I am aware, but how do I fix this?
|
|
April 13, 2021, 12:58 |
|
#12 |
New Member
Gemini WANG
Join Date: Mar 2018
Posts: 5
Rep Power: 8 |
||
April 13, 2021, 23:52 |
|
#13 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
are you running fluent from Visual Studio console?
if doesn't help: you may reinstall Visual Studio on your machine, there are a bunch of threads on forum according to NMAKE issue old solution: https://www.cfd-online.com/Wiki/Flue...UDF.29_Related
__________________
best regards ****************************** press LIKE if this message was helpful |
|
April 14, 2021, 04:27 |
|
#14 | |
New Member
Jeroen
Join Date: Apr 2021
Posts: 17
Rep Power: 5 |
Quote:
Knipsel.PNG |
||
April 14, 2021, 04:31 |
|
#15 |
New Member
umerali
Join Date: Mar 2021
Posts: 14
Rep Power: 5 |
use ansys 2021 r1, it has built-in compiler
|
|
April 14, 2021, 04:39 |
|
#16 | |
New Member
Jeroen
Join Date: Apr 2021
Posts: 17
Rep Power: 5 |
Quote:
I also added a path in the advanced system settings such that Fluent should be able to find VS 2015: %SystemRoot%\system32;%SystemRoot%;C:\Program Files(x86)\Microsoft Visual Studio 14.0\Common7\Tools;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin;C:\Program Files\ANSYS Inc\v182\fluent\ntbin\win64; |
||
April 14, 2021, 08:13 |
|
#17 |
New Member
Jeroen
Join Date: Apr 2021
Posts: 17
Rep Power: 5 |
After reinstalling a third time I managed to compile and load my UDF. However, it still only works when I start Fluent via the x86_x64 cross tools command prompt.
When I start fluent via the workbench it still does not work. Any suggestions on how to fix this? |
|
April 14, 2021, 10:08 |
|
#18 | |
New Member
Gemini WANG
Join Date: Mar 2018
Posts: 5
Rep Power: 8 |
Quote:
Is Visual Studio also installed in C:\? If not, try to change the environment setup batch into something like (I'm not familiar with VS 2015) Code:
"VS_DIR\2015\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64 Perhaps Fluent launcher cannot execute the VS batch directly, u can establish a .bat file that contains command Code:
call "VS_DIR\2015\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64 |
||
Tags |
compiling error, compiling library |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Current density visualisation (PEM fuel cell add-on module) | pchoopanya | FLUENT | 10 | August 21, 2023 15:33 |
decomposePar is missing a library | whk1992 | OpenFOAM Pre-Processing | 8 | March 7, 2015 08:53 |
Compiled library vs. inInclude Files, DSMC solver crashes after run | GPesch | OpenFOAM Programming & Development | 8 | April 18, 2013 08:17 |
cannot load UDF library | jayilosa | Fluent UDF and Scheme Programming | 3 | November 16, 2011 13:44 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 22:38 |