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

compile UDF in journal file

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By Bernhard
  • 2 Post By qorka
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 27, 2009, 18:34
Default compile UDF in journal file
  #1
Member
 
Ivan
Join Date: May 2009
Posts: 85
Rep Power: 17
ivanbuz is on a distinguished road
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!
ivanbuz is offline   Reply With Quote

Old   September 28, 2009, 08:34
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22
Bernhard is on a distinguished road
Try:
Code:
/define/user-defined/compiled-functions compile yes
library_name
udf_name.c
etc.c
Good luck.
arashjkh likes this.
Bernhard is offline   Reply With Quote

Old   September 28, 2009, 15:56
Default
  #3
Member
 
Ivan
Join Date: May 2009
Posts: 85
Rep Power: 17
ivanbuz is on a distinguished road
excellent! Thanks a lot!
ivanbuz is offline   Reply With Quote

Old   March 9, 2017, 15:36
Default
  #4
New Member
 
Maksim
Join Date: Jan 2016
Posts: 24
Rep Power: 10
qorka is on a distinguished road
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 and arashjkh like this.
qorka is offline   Reply With Quote

Old   February 7, 2020, 15:40
Default
  #5
Member
 
mln
Join Date: Dec 2019
Posts: 39
Rep Power: 7
melj is on a distinguished road
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?
melj is offline   Reply With Quote

Old   February 10, 2020, 01:02
Default
  #6
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
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
arashjkh likes this.
__________________
best regards


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

Old   February 10, 2020, 12:21
Default
  #7
Member
 
mln
Join Date: Dec 2019
Posts: 39
Rep Power: 7
melj is on a distinguished road
thank you. I'll try it again.
melj is offline   Reply With Quote

Reply

Tags
build, udf compilation


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
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


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