|
[Sponsors] |
Using correlations for heat transfer coefficient by UDF |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 25, 2020, 01:54 |
Using correlations for heat transfer coefficient by UDF
|
#1 |
New Member
Guan-Bang Wang
Join Date: Apr 2018
Posts: 14
Rep Power: 8 |
Hi,
I am trying to define the heat transfer coefficient (for the non-equilibrium heat transfer inside the porous medium) according to correlations using UDF. The correlations for heat transfer coefficient (or non-dimensional number) are usually based on other non-dimensional numbers and consequently the effective transport properties, e.g., effective viscosity and thermal conductivity. However, how can I get these values when defining the heat transfer coefficient using DEFINE_PROFILE macro? I looked up the UDF manual, but the above effective transport properties can be only used with cell thread rather than face thread. |
|
February 25, 2020, 03:31 |
Inheritance
|
#2 |
Senior Member
|
Faces inherit the properties from their parent cells, hence, you can actually use F_R, F_KL, etc. just like C_R, C_KL. Not everything is encoded though. In that case, you can simply access the index and the thread using
cell_t c; c = F_C0(f,t); where t is the face thread already available from DEFINE_PROFILE if the UDF is hooked to a boundary zone. You would require cell thread and that can be accessed as well using Thread *tc; tc = THREAD_T0(t); And then C_K_L(c,tc) will return laminar thermal conductivity.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
February 25, 2020, 04:13 |
|
#3 |
New Member
Guan-Bang Wang
Join Date: Apr 2018
Posts: 14
Rep Power: 8 |
Dear vinerm,
Thank you for your answer. Actually, I have noticed the macros F_C0 and F_C1 and implemented the program in a similar way as you suggested. In this case, I have two questions regarding to the use of such macros. 1) What is the difference between F_C0 and F_C1? For a face at the boundary, the parent cells are either for fluid or solid. So which one is for fluid? 2) The use of such macros seems not suitable for parallel computation where I got the errors like "Received signal: NODE_0..." |
|
February 25, 2020, 04:22 |
Parallelization
|
#4 |
Senior Member
|
For running a code in parallel, you need to parallelize it. Go through the link
https://www.afs.enea.it/project/nept...df/node212.htm Since a cell is attached to another cell on most of its faces, except the face that is external boundary like a wall or inlet, almost every face is shared by two cells. But, there is only one parent cell. F_C0 returns the parent cell while F_C1 returns the adjacent cell. F_C1 returns NULL if the face is part of external boundary. You can use macro FLUID_THREAD_P to check if a thread is fluid or solid.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
February 25, 2020, 04:45 |
|
#5 |
New Member
Guan-Bang Wang
Join Date: Apr 2018
Posts: 14
Rep Power: 8 |
Thanks a lot. I will work on the parallelization of my UDF.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Heat transfer coefficient - what is waht | Stan | FLUENT | 28 | December 29, 2021 17:29 |
Surface Heat Transfer Coefficient driven by a UDF, using coupled wall | ryanbezz11 | CFD Freelancers | 1 | March 16, 2018 04:01 |
FLUENT UDF for heat transfer coefficient | EngZara | CFD Freelancers | 1 | July 9, 2017 15:30 |
Difficulty In Setting Boundary Conditions | Moinul Haque | CFX | 4 | November 25, 2014 18:30 |
UDF for Heat transfer coefficient | Dong Wenchao | FLUENT | 2 | August 23, 2006 07:35 |