CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   compile UDF in journal file (https://www.cfd-online.com/Forums/fluent/68648-compile-udf-journal-file.html)

ivanbuz September 27, 2009 17:34

compile UDF in journal file
 
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!

Bernhard September 28, 2009 07:34

Try:
Code:

/define/user-defined/compiled-functions compile yes
library_name
udf_name.c
etc.c

Good luck.

ivanbuz September 28, 2009 14:56

excellent! Thanks a lot!

qorka March 9, 2017 14:36

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


melj February 7, 2020 14:40

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?

AlexanderZ February 10, 2020 00:02

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

melj February 10, 2020 11:21

thank you. I'll try it again.


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