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

compile a udf or interpret it?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 14, 2012, 02:12
Default compile a udf or interpret it?
  #1
Senior Member
 
navid
Join Date: Jan 2010
Posts: 110
Rep Power: 16
ndabir is on a distinguished road
Hi,

I am simulating bubble collapse near wall. when I assume compressible air inside the bubble and incompressible water, my simulation goes well and I get good results. But when I INTERPRET a udf for compressibility of water, I get divergence problems (like unrealistic low pressures).
Do you think interpreting the udf makes this problem? if I compile the udf, would it be solved?
What is the basic difference between interpreting and compiling a udf?
ndabir is offline   Reply With Quote

Old   July 14, 2012, 02:49
Default
  #2
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
If there are no warning messages while solving the case with the interpreted UDF, then there should not be any difference when you compile the UDF instead.

In general, interpreted UDFs are the "quick and dirty" solution if the UDF doesn't contain complicated calculations.
There are some restrictions to interpreted UDFs concerning both the C-programming and the data read from the solver. Refer to the UDF manual for details.
A compiled UDF does not have these restrictions and runs much faster.

In your case, it is far more likely that the content of the UDF itself causes the instability of the solving process.
flotus1 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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 06:05
UDF interpret in Fluent wanghaojie Fluent UDF and Scheme Programming 1 February 3, 2012 14:51
udf compile in parallel system tahereh FLUENT 1 December 9, 2008 09:48
interpret or compile an UDF (emergency) Lotfi FLUENT 1 August 26, 2007 12:58
why results different for Compile and Interpret? Joey FLUENT 3 April 6, 2004 17:19


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