|
[Sponsors] |
Discontinuity in UDF (How does FLUENT handle it?) |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Adnan
Join Date: May 2012
Posts: 18
Rep Power: 12 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Join Date: Jul 2013
Posts: 80
Rep Power: 11 ![]() |
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Two questions on Fluent UDF | Steven | Fluent UDF and Scheme Programming | 7 | March 23, 2018 03:22 |
fluent udf problem: write specific data for every iteration in a file. | nnvoro | Fluent UDF and Scheme Programming | 1 | May 27, 2013 15:26 |
UDF for Viscoelastic Fow in Fluent | skris2009 | FLUENT | 2 | September 19, 2011 23:59 |
fluent UDF external library lapack problem | Rick | FLUENT | 0 | May 7, 2008 10:16 |
UDF problem caused by various version of Fluent | Yurong | FLUENT | 3 | January 15, 2006 10:57 |