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

Discontinuity in UDF (How does FLUENT handle it?)

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2015, 13:08
Default Discontinuity in UDF (How does FLUENT handle it?)
  #1
New Member
 
Adnan
Join Date: May 2012
Posts: 18
Rep Power: 13
adnanakhtar is on a distinguished road
I am using a UDF which involves the variation of thermal conductivity with temperature. The UDF file is as follows:
DEFINE_PROPERTY(cell_thermal_conductivity, cell, thread)
{
real keff;
real temp = C_T(cell, thread);

if (temp < 1373)
keff=0.9;
else
keff = 3.19;

return keff;
}

I wanted to find out if close to the temperature 1373, FLUENT tries to make the function continuous?
I have a slight difference in results when I calculate using a code by considering it as a discontinuity and when I calculate using FLUENT.
Please any help in this regard would be deeply appreciated.
adnanakhtar is offline   Reply With Quote

Old   January 13, 2015, 05:00
Default
  #2
Member
 
Join Date: Jul 2013
Posts: 80
Rep Power: 12
upeksa is on a distinguished road
Fluent does not do any magic tricks, it will do whatever you program.
You may probably see an oscillation on your results at 1373 K.
upeksa is offline   Reply With Quote

Reply

Tags
discontinuity, udf code

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Two questions on Fluent UDF Steven Fluent UDF and Scheme Programming 7 March 23, 2018 04:22
fluent udf problem: write specific data for every iteration in a file. nnvoro Fluent UDF and Scheme Programming 1 May 27, 2013 16:26
UDF for Viscoelastic Fow in Fluent skris2009 FLUENT 2 September 20, 2011 00:59
fluent UDF external library lapack problem Rick FLUENT 0 May 7, 2008 11:16
UDF problem caused by various version of Fluent Yurong FLUENT 3 January 15, 2006 11:57


All times are GMT -4. The time now is 19:31.