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

Compile UDF in Ubuntu

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2021, 04:21
Default Compile UDF in Ubuntu
  #1
Member
 
Join Date: Jul 2020
Location: India
Posts: 66
Rep Power: 6
Cooper24 is on a distinguished road
Can someone please tell me how to compile UDFs in Ubuntu? I had compiled the UDF in windows using Visual Studio and it was working fine but I needed to switch to Ubuntu as my cluster has Ubuntu installed in it. After a very long struggle I was able to run FLUENT on Ubuntu but now when I compile the UDF, it throws error. Any help is much appreciated. Thanks in advance.
Here is the error:
makefile:121: recipe for target 'Source.o' failed
make[3]: *** [Source.o] Error 1
make[3]: Target 'libudf.so' not remade because of errors.
makefile:211: recipe for target 'lnamd64' failed
make[2]: *** [lnamd64] Error 2
makefile:131: recipe for target 'default' failed
make[1]: *** [default] Error 2
p, li { white-space: pre-wrap; }
p, li { white-space: pre-wrap; }
p, li { white-space: pre-wrap; }
Cooper24 is offline   Reply With Quote

Old   October 14, 2021, 01:06
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
you should prepare make file to compile on Linux
special folder structure is also required

check ansys fluent customization manual, there is a detailed description
Cooper24 likes this.
__________________
best regards


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

Old   October 14, 2021, 04:39
Default
  #3
Member
 
Join Date: Jul 2020
Location: India
Posts: 66
Rep Power: 6
Cooper24 is on a distinguished road
Thanks for your reply. I was able to compile the UDF. I had created the specific folder structure from an internet source. But the error due to an unseen comment line.
Cooper24 is offline   Reply With Quote

Reply

Tags
udf-compile, udf-ubuntu


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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 07:05
Compile c99 standard UDF in Cluster darsonli Fluent UDF and Scheme Programming 0 July 7, 2015 03:58
looking for instructions on how to compile an udf in windows OS Srinivasa Rao Fluent UDF and Scheme Programming 2 May 22, 2015 11:00
WILLING TO PAY/ FREELANCER REQUIRED / small UDF coding force loads over body / 6DOF acasas CFD Freelancers 1 January 23, 2015 08:26
Fluent doesnÂīt compile UDF on Windows HSeldon FLUENT 4 February 15, 2007 00:01


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