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

Using correlations for heat transfer coefficient by UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 25, 2020, 00:54
Default Using correlations for heat transfer coefficient by UDF
  #1
New Member
 
Guan-Bang Wang
Join Date: Apr 2018
Posts: 14
Rep Power: 8
coewgb is on a distinguished road
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.
coewgb is offline   Reply With Quote

Old   February 25, 2020, 02:31
Default Inheritance
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
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.
vinerm is offline   Reply With Quote

Old   February 25, 2020, 03:13
Default
  #3
New Member
 
Guan-Bang Wang
Join Date: Apr 2018
Posts: 14
Rep Power: 8
coewgb is on a distinguished road
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..."
coewgb is offline   Reply With Quote

Old   February 25, 2020, 03:22
Default Parallelization
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
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.
vinerm is offline   Reply With Quote

Old   February 25, 2020, 03:45
Default
  #5
New Member
 
Guan-Bang Wang
Join Date: Apr 2018
Posts: 14
Rep Power: 8
coewgb is on a distinguished road
Thanks a lot. I will work on the parallelization of my UDF.
coewgb is offline   Reply With Quote

Reply


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
Heat transfer coefficient - what is waht Stan FLUENT 28 December 29, 2021 16:29
Surface Heat Transfer Coefficient driven by a UDF, using coupled wall ryanbezz11 CFD Freelancers 1 March 16, 2018 03:01
FLUENT UDF for heat transfer coefficient EngZara CFD Freelancers 1 July 9, 2017 14:30
Difficulty In Setting Boundary Conditions Moinul Haque CFX 4 November 25, 2014 17:30
UDF for Heat transfer coefficient Dong Wenchao FLUENT 2 August 23, 2006 06:35


All times are GMT -4. The time now is 04:45.