|
[Sponsors] |
October 28, 2019, 19:52 |
Fluent initialization UDF
|
#1 |
New Member
Amir
Join Date: Oct 2018
Posts: 17
Rep Power: 8 |
Hello all,
I'm initializing the flow with a UDF in FLUENT with the following UDF: DEFINE_INIT(pure_cond, domain) { cell_t c; Thread *t; real xc[ND_ND]; /* loop over all cell threads in the domain */ thread_loop_c (t,domain) { /* loop over all cells */ begin_c_loop_all (c,t) { C_T(c,t) = -5000*xc[0] +100 ; } end_c_loop_all (c,t) } } the problem is: Because this udf only specifies the values at the centroid The boundaries (i.e. The values of Temperature at boundary nodes) are not taking the values of this initialization. Surprisingly the values on the temperature at boundary nodes are not the same as the boundary condition values. I want specified values on boundaries when I initialize. Do you suggest a solution to this? I attached a picture of the domain below Thank you |
|
October 28, 2019, 23:58 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
make a loop over faces.
switch of "node values" option, when you plot contours
__________________
best regards ****************************** press LIKE if this message was helpful |
|
November 1, 2023, 14:16 |
|
#3 |
New Member
Taosif Alam
Join Date: Oct 2020
Posts: 4
Rep Power: 6 |
Hi, Are you able to fix this?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem running fluent with udf on batch | tobi b. | Fluent UDF and Scheme Programming | 3 | April 14, 2016 14:54 |
UDF for temperature initialization in FLUENT | Ami24 | FLUENT | 0 | February 25, 2016 09:27 |
Running UDF with Supercomputer | roi247 | FLUENT | 4 | October 15, 2015 14:41 |
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 |