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

Compiling UDF//Linux 64//Parallel//

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By Schumacher00
  • 2 Post By Bruno Machado

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 19, 2014, 06:10
Default Compiling UDF Linux 64 Parallel
  #1
New Member
 
Join Date: Oct 2014
Posts: 17
Rep Power: 12
Schumacher00 is on a distinguished road
Hello freinds

Can any one help me with this Error????

thank you very much in advance
And Merry Christmas



Node 0: Doesn't have write permissions for libudf/lnamd64/3d_node. If using local disk, make sure UDF lib is synced up on all nodes.
Opening library "/mnt/test/libudf"...
Primitive Error at Node 1: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (lnamd64).

No such file or directory
/ansys_inc/v145/fluent/bin/libudf/lnamd64/3d_node/libudf.so

Primitive error at Node 0: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (lnamd64).

No such file or directory


/ansys_inc/v145/fluent/bin/libudf/lnam64/3d_node/libudf.so

Opening library "/ansys_inc/v145/fluent/bin/libudf"...
Opening library "/ansys_inc/v145/fluent/bin/libudf"...
Error: The UDF library you are trying to load (libudf/lnam64/3d_host/libudf.so) is not compiled for parallel use on the current platform (lnamd64).

no error
/mnt3/test/libudf/lnamd64/3d_host/libudf.so

Error Object: #f

Last edited by Schumacher00; December 21, 2014 at 14:11.
Schumacher00 is offline   Reply With Quote

Old   January 1, 2016, 23:25
Default
  #2
Member
 
Join Date: Oct 2014
Posts: 43
Rep Power: 12
lisa_china is on a distinguished road
hi, Schumacher.
I have encountered the same problem when compiled a UDF on Linux Cluster. Have you solved this problem? And could you give me some guidance?
Thank you in advance.
lisa_china is offline   Reply With Quote

Old   January 3, 2016, 12:41
Default
  #3
New Member
 
Join Date: Oct 2014
Posts: 17
Rep Power: 12
Schumacher00 is on a distinguished road
Hi Lisa,

Check if you are running the fluent from the directory, in which your .cas and your probable .dat files are. In other words, all your files ( .cas, .dat and your UDF code) should be in the same directory and you should run the fluent exactly from this directory, otherwise you get that error because you are in most cases a normal user and not an admin. User, who has the writing right in a cluster.

I hope this can help.

Regards
Schumacher00 is offline   Reply With Quote

Old   January 15, 2016, 05:05
Default
  #4
Member
 
Join Date: Oct 2014
Posts: 43
Rep Power: 12
lisa_china is on a distinguished road
Thanks for your reply.
Yes, it's a very important point. Besides this, I found when I use the VPN of cluster on remote for parallel calculations, and at the same time running cas and dat file at local PC, I will have this error. It's interesting: ) Share my experience with you.

Best wishes.
Shan
lisa_china is offline   Reply With Quote

Old   June 8, 2016, 02:30
Default Regarding the UDF compilation on Linux system
  #5
Member
 
sonu
Join Date: Jul 2013
Location: delhi
Posts: 92
Rep Power: 13
yash.aesi is on a distinguished road
Hello All,

when I am compiling my UDF on window its working fine but when the same UDF I am trying to compile on the Linux system its giving me the error.
I used all the advices given in the above post. I am attaching the snapshot of the error. Please suggest me what to do.
Thanks in advance.
Regards,
Sonu.
Attached Images
File Type: jpg error snap.JPG (168.5 KB, 204 views)
yash.aesi is offline   Reply With Quote

Old   June 9, 2016, 16:59
Default
  #6
New Member
 
Join Date: Oct 2014
Posts: 17
Rep Power: 12
Schumacher00 is on a distinguished road
Hi,

As you see there are several errors and you have to debug your code. Note that the compiler in Linux and Windows are different.

Sometimes a code is compiled apparently without errors but in fact it has still errors.

My suggestions for debugging your code:

1. Check if ";" and "/ " are missed somewhere. ( it is the case in your code !!!!)
2. I would recommend you to remove your probable comments.
3. Check the plausibility of your code at least for some tries. Sometimes the algorithm of a code in fundamentally false.
4. Use Messaging in your code to know , which line should be corrected.

I hope this help.
Cheers,
yash.aesi likes this.
Schumacher00 is offline   Reply With Quote

Old   June 10, 2016, 04:00
Default
  #7
Member
 
sonu
Join Date: Jul 2013
Location: delhi
Posts: 92
Rep Power: 13
yash.aesi is on a distinguished road
Thanks for the help , I will do as u suggested and then get back to you .....
yash.aesi is offline   Reply With Quote

Old   June 10, 2016, 05:04
Default
  #8
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13
Bruno Machado is on a distinguished road
yesterday I compiled my code in linux for the first time. no error but the one caused by comments. linux compiler does not recognize " // " as a coment, so I had to change it to "/* .... */". have a look in your code, maybe this can be the reason.
lisa_china and lolno like this.
Bruno Machado is offline   Reply With Quote

Old   July 5, 2016, 10:57
Default
  #9
New Member
 
Mo
Join Date: Mar 2015
Posts: 6
Rep Power: 11
mhaghdoost is on a distinguished road
Quote:
Originally Posted by Schumacher00 View Post
Hello freinds

Can any one help me with this Error????

thank you very much in advance
And Merry Christmas



Node 0: Doesn't have write permissions for libudf/lnamd64/3d_node. If using local disk, make sure UDF lib is synced up on all nodes.
Opening library "/mnt/test/libudf"...
Primitive Error at Node 1: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (lnamd64).

No such file or directory
/ansys_inc/v145/fluent/bin/libudf/lnamd64/3d_node/libudf.so

Primitive error at Node 0: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (lnamd64).

No such file or directory


/ansys_inc/v145/fluent/bin/libudf/lnam64/3d_node/libudf.so

Opening library "/ansys_inc/v145/fluent/bin/libudf"...
Opening library "/ansys_inc/v145/fluent/bin/libudf"...
Error: The UDF library you are trying to load (libudf/lnam64/3d_host/libudf.so) is not compiled for parallel use on the current platform (lnamd64).

no error
/mnt3/test/libudf/lnamd64/3d_host/libudf.so

Error Object: #f
Hey Schumacher,
I have the same issue. Did you solve your problem?
greets
Mo
mhaghdoost is offline   Reply With Quote

Old   July 6, 2016, 13:13
Default
  #10
Member
 
Bhargav Bharathan
Join Date: Jun 2015
Location: Montreal, Canada
Posts: 71
Rep Power: 11
bhargavbharathan is on a distinguished road
Quote:
Originally Posted by mhaghdoost View Post
Hey Schumacher,
I have the same issue. Did you solve your problem?
greets
Mo
Hi,

Refer "5.3.1.2 Linux Systems" from the ANSYS Fluent 15.0 UDF Manual. There is a step by step methodology on how to compile UDFs in a Linux OS.

Link: https://www.sharcnet.ca/Software/Ans...x1-5800006.3.1


-BB
bhargavbharathan is offline   Reply With Quote

Old   July 10, 2016, 05:50
Default
  #11
New Member
 
Join Date: Oct 2014
Posts: 17
Rep Power: 12
Schumacher00 is on a distinguished road
Hi Mo ,

Check if you are running the fluent from the directory, in which your .cas and your probable .dat files are. In other words, all your files ( .cas, .dat and your UDF code) should be in the same directory and you should run the fluent exactly from this directory, otherwise you get that error because you are in most cases a normal user and not an admin User, who has the writing right in a cluster.

I hope this can help.

Regards
Schumacher00 is offline   Reply With Quote

Old   April 16, 2017, 04:16
Default
  #12
New Member
 
Fluidflow
Join Date: Oct 2015
Posts: 24
Rep Power: 11
cfdesf1990 is on a distinguished road
Hello everybody
I am new in fluent and I am going to run a udf in a cluster using command. I am using Ansys Fluent 16.2. By the way,after run .dat file is not created . In addition, when I see the the .o file there is an error:
error: Auto-compilation skipped. Could not find "libudf" or input files for creating "libudf" library
Error Object: #f

1- Does Ansys 16.2 need any compilation for UDF befor running Fluent?
2-What should I do to solve this problem?


Regards
cfdesf1990 is offline   Reply With Quote

Old   April 17, 2017, 05:00
Default
  #13
New Member
 
Join Date: Oct 2014
Posts: 17
Rep Power: 12
Schumacher00 is on a distinguished road
Hi Meysam,

It seems that the library is not created and consequently the code is not compiled / interpreted. You should always create a library and then compile or interprete the code.Please follow the instructions in the UDF tutorial, it's quite straightforward.

I hope this can help you.

Regards
Schumacher00 is offline   Reply With Quote

Old   April 17, 2017, 09:18
Default
  #14
New Member
 
Fluidflow
Join Date: Oct 2015
Posts: 24
Rep Power: 11
cfdesf1990 is on a distinguished road
Thanks for your response.
I found the error. You are right. Since, I compiled and ran that case in my system its default directory had been chenged to the path related to my system, and now that I want to compile the UDF in a cluster the compiler search for the previous path
cfdesf1990 is offline   Reply With Quote

Reply


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
Problem with Compiling UDFs in Ansys Fluent 13 (lnx64) Ali.beh Fluent UDF and Scheme Programming 3 August 27, 2018 05:22
fluent udf error while compiling: unknown type name __locale_t aditya.pandare Fluent UDF and Scheme Programming 3 April 12, 2014 15:52
Linux vs PC Compiling Rhyno466 Fluent UDF and Scheme Programming 10 May 11, 2012 18:01
paraview 3.10.1 compiling error (1.6-ext) vkrastev OpenFOAM Installation 7 October 28, 2011 04:17
Help with KIVA4 source code compiling geothokar Main CFD Forum 0 September 3, 2010 06:40


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