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 is not compiled for 3d on the current platform (win64)

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 8, 2021, 07:31
Question 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
JeroenH is on a distinguished road
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
JeroenH is offline   Reply With Quote

Old   April 8, 2021, 15:29
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
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".
pakk is offline   Reply With Quote

Old   April 9, 2021, 03:43
Default
  #3
New Member
 
Jeroen
Join Date: Apr 2021
Posts: 17
Rep Power: 5
JeroenH is on a distinguished road
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.
JeroenH is offline   Reply With Quote

Old   April 9, 2021, 08:09
Default
  #4
New Member
 
Gemini WANG
Join Date: Mar 2018
Posts: 5
Rep Power: 8
Gemini_WANG is on a distinguished road
Hi,

Have u tried to set up compiling environment with the settings in the Environment tab of the Fluent Launcher?
Gemini_WANG is offline   Reply With Quote

Old   April 9, 2021, 12:51
Default
  #5
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
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".
pakk is offline   Reply With Quote

Old   April 12, 2021, 03:52
Default
  #6
New Member
 
Jeroen
Join Date: Apr 2021
Posts: 17
Rep Power: 5
JeroenH is on a distinguished road
Quote:
Originally Posted by pakk View Post
Is your filename really "Fs est.c" including a space?
No it does not contain any spaces, i don't know why it looks that way on the forum.
JeroenH is offline   Reply With Quote

Old   April 12, 2021, 03:53
Default
  #7
New Member
 
Jeroen
Join Date: Apr 2021
Posts: 17
Rep Power: 5
JeroenH is on a distinguished road
Quote:
Originally Posted by Gemini_WANG View Post
Hi,

Have u tried to set up compiling environment with the settings in the Environment tab of the Fluent Launcher?
Yes, and it seems correct because the libudf folder is also being generated in the correct place.
JeroenH is offline   Reply With Quote

Old   April 12, 2021, 04:57
Default
  #8
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
remove libudf, in fluent press build and show compilation log here
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   April 13, 2021, 06:48
Default
  #9
New Member
 
Jeroen
Join Date: Apr 2021
Posts: 17
Rep Power: 5
JeroenH is on a distinguished road
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.
JeroenH is offline   Reply With Quote

Old   April 13, 2021, 11:13
Default
  #10
Member
 
Yasser Selima
Join Date: Mar 2009
Location: Canada
Posts: 51
Rep Power: 19
Yasser is on a distinguished road
this is environmental settings issue. It has nothing to do with the UDF
Yasser is offline   Reply With Quote

Old   April 13, 2021, 11:45
Default
  #11
New Member
 
Jeroen
Join Date: Apr 2021
Posts: 17
Rep Power: 5
JeroenH is on a distinguished road
I am aware, but how do I fix this?
JeroenH is offline   Reply With Quote

Old   April 13, 2021, 12:58
Default
  #12
New Member
 
Gemini WANG
Join Date: Mar 2018
Posts: 5
Rep Power: 8
Gemini_WANG is on a distinguished road
Quote:
Originally Posted by JeroenH View Post
I am aware, but how do I fix this?
emmm... could u post a screen capture of the Environment tab of the Fluent Launcher?
Gemini_WANG is offline   Reply With Quote

Old   April 13, 2021, 23:52
Default
  #13
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
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
JeroenH likes this.
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   April 14, 2021, 04:27
Default
  #14
New Member
 
Jeroen
Join Date: Apr 2021
Posts: 17
Rep Power: 5
JeroenH is on a distinguished road
Quote:
Originally Posted by Gemini_WANG View Post
emmm... could u post a screen capture of the Environment tab of the Fluent Launcher?
I set it up in parallel:

Knipsel.PNG
JeroenH is offline   Reply With Quote

Old   April 14, 2021, 04:31
Default
  #15
New Member
 
umerali
Join Date: Mar 2021
Posts: 14
Rep Power: 5
umeralizuberi is on a distinguished road
use ansys 2021 r1, it has built-in compiler
umeralizuberi is offline   Reply With Quote

Old   April 14, 2021, 04:39
Default
  #16
New Member
 
Jeroen
Join Date: Apr 2021
Posts: 17
Rep Power: 5
JeroenH is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
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
I have already reinstalled Visual Studio 2015 twice, including the C++ package which is not installed by default as mentioned here: https://stackoverflow.com/questions/...not-recognized

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;
JeroenH is offline   Reply With Quote

Old   April 14, 2021, 08:13
Default
  #17
New Member
 
Jeroen
Join Date: Apr 2021
Posts: 17
Rep Power: 5
JeroenH is on a distinguished road
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?
JeroenH is offline   Reply With Quote

Old   April 14, 2021, 10:08
Default
  #18
New Member
 
Gemini WANG
Join Date: Mar 2018
Posts: 5
Rep Power: 8
Gemini_WANG is on a distinguished road
Quote:
Originally Posted by JeroenH View Post
I set it up in parallel:

Attachment 83846

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
(remember substitute VS_DIR with your VS installation directory! And if yes, u may have a try as well)

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
If it still doesn't work, try to execute the VS batch mentioned above and capture its output (for example, via Windows Command Prompt). Then manually set 3 variables - path, include and lib - in the blank column "Other Environment variables" according to the output.
Gemini_WANG is offline   Reply With Quote

Reply

Tags
compiling error, compiling library


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
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


All times are GMT -4. The time now is 04:31.