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

Compiling and loading UDF using Batch

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2019, 22:22
Default Compiling and loading UDF using Batch
  #1
New Member
 
Amir
Join Date: Oct 2018
Posts: 17
Rep Power: 8
ALBATTROSS is on a distinguished road
Hello everyone,

I'm using Linux system for running my cases and I wrote a journal file for it it executes on windows perfectly so I made sure that the TUI commands are correct, however in case of reading UDF I receive the following errors. My strategy was compiling my udf in my computer on Windows and has visual studio and copying the built library to the cluster systems, but it seems this doesn't work. I want to 1- try compiling udf on their system using Batch but I didn't find it anywhere in Fluent guide also 2- it is not mentioned in TUI guide that we can interpret a .c file by using TUI comands in journal file, these two are my alternatives can you please help me what is the correct way of interpreting a UDF in TUI or how can I compile and load UDF in a cluster using Batch.
Thank you

this is there error in cluster's log file:
Setting process affinity: Failed opening libc!
Error at host: The UDF library you are trying to load (name_of_udf) is not compiled for parallel use on the current platform (lnamd64).

No such file or directory
/lustre04/scratch/####/test/name_of_udf/lnamd64/2ddp_host/libudf.so

Error at Node 1: The UDF library you are trying to load (name_of_udf) is not compiled for parallel use on the current platform (lnamd64).

No such file or directory
/lustre04/scratch/####/test/name_of_udf/lnamd64/2ddp_node/libudf.so

Error at Node 2: The UDF library you are trying to load (name_of_udf) is not compiled for parallel use on the current platform (lnamd64).

these are the lines I'm using to compile my udf which works on Windows but not on Linux:
define/user-defined/compiled-functions compile libudf yes myudf.c "" ""
define/user-defined/compiled-functions load libudf

these are the lines I'm using to interpret my udf that doesn't work even on Windows in this case I receive no error but fluent cashes.
/define/user-defined/interpreted-functions "address\myudf.c" "cpp" 10000 no

Thank you
ALBATTROSS is offline   Reply With Quote

Old   May 20, 2019, 01:08
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
Code:
define user-defined compiled-functions compile
best regards
AlexanderZ is offline   Reply With Quote

Old   May 20, 2019, 13:19
Default
  #3
New Member
 
Amir
Join Date: Oct 2018
Posts: 17
Rep Power: 8
ALBATTROSS is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
Code:
define user-defined compiled-functions compile
best regards
Thank you for your answer I know how to use this I put it at the end of my post my question was about interpreting UDF using journal.

Thanks
ALBATTROSS is offline   Reply With Quote

Old   May 20, 2019, 22:50
Default
  #4
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Code:
(ti-menu-load-string (format #f "define user-defined compiled-functions compile libudf yes myudf.c \"\" \"\" "))
(ti-menu-load-string (format #f "define user-defined compiled-functions load libudf "))
best regards
AlexanderZ 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
Error code: 126 when loading parallel UDF Coop Fluent UDF and Scheme Programming 0 July 13, 2018 09:33
problem loading UDF library in parallel cluster Veera Gutti FLUENT 8 July 26, 2016 08:24
Basic question regarding compiling a UDF A.Jalal Fluent UDF and Scheme Programming 2 August 6, 2015 14:57
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 01:53
Compiling / Loading UDF Martijn FLUENT 1 December 16, 2008 20:06


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