|
[Sponsors] |
September 27, 2009, 18:34 |
compile UDF in journal file
|
#1 |
Member
Ivan
Join Date: May 2009
Posts: 85
Rep Power: 17 |
Anyone knows how to compile a UDF (build the UDF library) in a journal file?
I know I can use GUI functions if there is a GUI, but I submit the job to HPC where fluent runs without a GUI, so the GUI functions do NOT work. In the text-command-list documentation, I can only find the command to open a user-defined function library, but I need the command to build the library. Hope to hear from you guys soon! Thanks in advance! |
|
September 28, 2009, 08:34 |
|
#2 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
Try:
Code:
/define/user-defined/compiled-functions compile yes library_name udf_name.c etc.c |
|
September 28, 2009, 15:56 |
|
#3 |
Member
Ivan
Join Date: May 2009
Posts: 85
Rep Power: 17 |
excellent! Thanks a lot!
|
|
March 9, 2017, 15:36 |
|
#4 |
New Member
Maksim
Join Date: Jan 2016
Posts: 24
Rep Power: 10 |
it is not good variant, fluent will try to load more functions
correct variant: Code:
/define/user-defined/compiled-functions compile libudf yes contactAngle.c etc.c header.h "" "" /define/user-defined/compiled-functions load libudf |
|
February 7, 2020, 15:40 |
|
#5 |
Member
mln
Join Date: Dec 2019
Posts: 39
Rep Power: 7 |
Hello
I am not good with coding. I have 3 questions. Kindly help. 1) Is the below code a correct description. I mean I enter in separate lines? /define/user-defined/compiled-functions compile libudf yes drag.c udf.h 2) Is it not necessary to read the case file initially in the coding? 3) /define/user-defined/compiled-functions load libudf Should the above line of code be entered in a separate file or in the same file as the first line of code? |
|
February 10, 2020, 01:02 |
|
#6 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
1. put in one line ans see what happens
2. you can compile UDF from any case it doesn't matter if your goal is to compile UDF only you may load case before or after, doesn't matter 3. you may put it in the same file below other code if you've loaded your case file already
__________________
best regards ****************************** press LIKE if this message was helpful |
|
February 10, 2020, 12:21 |
|
#7 |
Member
mln
Join Date: Dec 2019
Posts: 39
Rep Power: 7 |
thank you. I'll try it again.
|
|
Tags |
build, udf compilation |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
journal file with variable in a while loop? | Ralf Schmidt | FLUENT | 50 | January 17, 2019 06:24 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |
[Gmsh] Compiling gmshFoam with OpenFOAM-1.5 | BlGene | OpenFOAM Meshing & Mesh Conversion | 10 | August 6, 2009 05:26 |
What case file for what UDF? | Alex | FLUENT | 1 | March 20, 2006 05:33 |
Gambit Journal File Scripts, Public Database Needed? | Jonas Larsson | Main CFD Forum | 13 | March 2, 1999 08:25 |