|
[Sponsors] |
Discontinuity in UDF (How does FLUENT handle it?) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 12, 2015, 13:08 |
Discontinuity in UDF (How does FLUENT handle it?)
|
#1 |
New Member
Adnan
Join Date: May 2012
Posts: 18
Rep Power: 14 |
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. |
|
January 13, 2015, 05:00 |
|
#2 |
Member
Join Date: Jul 2013
Posts: 80
Rep Power: 13 |
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. |
|
Tags |
discontinuity, udf code |
|
|
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 |