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

fluent udf thermal conductivity

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By kirmaks
  • 1 Post By Kirill-MIPT

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 24, 2017, 01:41
Default fluent udf thermal conductivity
  #1
New Member
 
bob lu
Join Date: Aug 2017
Posts: 9
Rep Power: 9
lucifer0226 is on a distinguished road
Hi everyone,
I'm modeling the process of selective laser melting using FLUENT.And, there are two sets of data of thermal conductivity . in the begining, the thermal conductivity of powder system equals to powder when the working temperature is below the melting temperature and when the temperature exceeds melting temperature the thermal conductivity of powder change to bulk .
I want to know which code could help me implement the function.
thank you
lucifer0226 is offline   Reply With Quote

Old   August 24, 2017, 02:28
Default
  #2
Member
 
Kirill-MIPT's Avatar
 
Kirill Borodin
Join Date: Mar 2016
Posts: 60
Rep Power: 10
Kirill-MIPT is on a distinguished road
Hello! Does thermal conductivity depend on temperature only?

Sent from my Redmi Note 3 using CFD Online Forum mobile app
Kirill-MIPT is offline   Reply With Quote

Old   August 24, 2017, 02:43
Default
  #3
New Member
 
bob lu
Join Date: Aug 2017
Posts: 9
Rep Power: 9
lucifer0226 is on a distinguished road
Quote:
Originally Posted by Kirill-MIPT View Post
Hello! Does thermal conductivity depend on temperature only?

Sent from my Redmi Note 3 using CFD Online Forum mobile app
yes,
the effect that i want to achieve is like

if(the temperature of this cell never exceeded melting temperature )
thermal conductivity=powder;
else
thermal conductivity=bulk;
thank you for your reply
lucifer0226 is offline   Reply With Quote

Old   August 24, 2017, 02:53
Default
  #4
Member
 
Kirill-MIPT's Avatar
 
Kirill Borodin
Join Date: Mar 2016
Posts: 60
Rep Power: 10
Kirill-MIPT is on a distinguished road
Check the udf manual, there is an if/else condition in 2.3.18 for DEFINE_PROPERTY macro in Example 1. It's used for viscosity definition there, but one can use this macro for any physical value

Sent from my Redmi Note 3 using CFD Online Forum mobile app
Kirill-MIPT is offline   Reply With Quote

Old   August 24, 2017, 03:12
Default
  #5
New Member
 
bob lu
Join Date: Aug 2017
Posts: 9
Rep Power: 9
lucifer0226 is on a distinguished road
Quote:
Originally Posted by Kirill-MIPT View Post
Check the udf manual, there is an if/else condition in 2.3.18 for DEFINE_PROPERTY macro in Example 1. It's used for viscosity definition there, but one can use this macro for any physical value

Sent from my Redmi Note 3 using CFD Online Forum mobile app
i know how to use this, but now i want to make a mark of the cells of which the temperature reach melting temperature.
lucifer0226 is offline   Reply With Quote

Old   August 24, 2017, 05:22
Default
  #6
Member
 
Kirill-MIPT's Avatar
 
Kirill Borodin
Join Date: Mar 2016
Posts: 60
Rep Power: 10
Kirill-MIPT is on a distinguished road
The first thing that comes to mind is making a list of cells, and if the temperature in a cell reaches the border, one puts a boolean value in the list, and for each iteration we make such procedure

Sent from my Redmi Note 3 using CFD Online Forum mobile app
Kirill-MIPT is offline   Reply With Quote

Old   August 24, 2017, 05:29
Default
  #7
New Member
 
bob lu
Join Date: Aug 2017
Posts: 9
Rep Power: 9
lucifer0226 is on a distinguished road
Quote:
Originally Posted by Kirill-MIPT View Post
The first thing that comes to mind is making a list of cells, and if the temperature in a cell reaches the border, one puts a boolean value in the list, and for each iteration we make such procedure

Sent from my Redmi Note 3 using CFD Online Forum mobile app
thank you for your patience
it is what i mean, so do you know which udf code can help me achieve it,
like MPCHG in ansys APDL
lucifer0226 is offline   Reply With Quote

Old   August 24, 2017, 06:28
Default
  #8
Member
 
KirMaks
Join Date: Aug 2016
Posts: 34
Rep Power: 10
kirmaks is on a distinguished road
Hallo, you may use UDM for this, take a look on DEFINE_EXECUTE_AT_END and put some logic there: loop through Your cells in the required region and put "0" or "1" into the UDM.
lucifer0226 likes this.
kirmaks is offline   Reply With Quote

Old   August 24, 2017, 08:52
Default
  #9
Member
 
Kirill-MIPT's Avatar
 
Kirill Borodin
Join Date: Mar 2016
Posts: 60
Rep Power: 10
Kirill-MIPT is on a distinguished road
Check the example in 3.2.6.3 in udf guide and modify it. You may print cell centroids and a boolean (maybe with temperature) in a single macro

Sent from my Redmi Note 3 using CFD Online Forum mobile app
lucifer0226 likes this.
Kirill-MIPT is offline   Reply With Quote

Old   August 25, 2017, 04:28
Default
  #10
New Member
 
bob lu
Join Date: Aug 2017
Posts: 9
Rep Power: 9
lucifer0226 is on a distinguished road
Quote:
Originally Posted by kirmaks View Post
Hallo, you may use UDM for this, take a look on DEFINE_EXECUTE_AT_END and put some logic there: loop through Your cells in the required region and put "0" or "1" into the UDM.
thank you for your advice ,C_UDMI works well.
lucifer0226 is offline   Reply With Quote

Old   August 25, 2017, 04:33
Default
  #11
New Member
 
bob lu
Join Date: Aug 2017
Posts: 9
Rep Power: 9
lucifer0226 is on a distinguished road
Quote:
Originally Posted by Kirill-MIPT View Post
Check the example in 3.2.6.3 in udf guide and modify it. You may print cell centroids and a boolean (maybe with temperature) in a single macro

Sent from my Redmi Note 3 using CFD Online Forum mobile app
I have used C_UDMI to solve my problem, I do appreciate your help.
THANKS, ANYWAY.
lucifer0226 is offline   Reply With Quote

Old   August 25, 2017, 16:06
Default
  #12
Member
 
Kirill-MIPT's Avatar
 
Kirill Borodin
Join Date: Mar 2016
Posts: 60
Rep Power: 10
Kirill-MIPT is on a distinguished road
Congratulations! Can I see the code please?

Sent from my Redmi Note 3 using CFD Online Forum mobile app
Kirill-MIPT is offline   Reply With Quote

Old   August 26, 2017, 22:35
Default
  #13
New Member
 
bob lu
Join Date: Aug 2017
Posts: 9
Rep Power: 9
lucifer0226 is on a distinguished road
Quote:
Originally Posted by Kirill-MIPT View Post
Congratulations! Can I see the code please?

Sent from my Redmi Note 3 using CFD Online Forum mobile app
DEFINE_PROPERTY(thermal_conductivity,cell,thread) /*thermal_conductivity*/
{
real tc,T;
T=C_T(cell,thread);
if(T>=873)
C_UDMI(cell,thread,0)=1;
else;
if(C_UDMI(cell,thread,0)==1){
if(T<=300)
{tc1=237;}
else
{tc1=0.041*T+224.7;}
}
else
{
if(T<=673)
{tc1=5;}
else
{tc1=-284.39+0.43*T;}
}
lucifer0226 is offline   Reply With Quote

Old   August 27, 2017, 16:38
Default
  #14
Member
 
Kirill-MIPT's Avatar
 
Kirill Borodin
Join Date: Mar 2016
Posts: 60
Rep Power: 10
Kirill-MIPT is on a distinguished road
Thank you!

Sent from my Redmi Note 3 using CFD Online Forum mobile app
Kirill-MIPT 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
A Problem of Fluent Interpreted UDF: parse error knight Fluent UDF and Scheme Programming 25 August 16, 2018 11:26
UDF for thermal conductivity relation of nano fluid ngonbadipoor@yahoo.com Fluent UDF and Scheme Programming 29 April 1, 2017 04:02
UDF for thermal conductivity ayoub1989 Fluent UDF and Scheme Programming 5 August 18, 2014 06:15
UDF for effective thermal conductivity in porous media dotapro Fluent UDF and Scheme Programming 17 February 24, 2014 11:56
Porous Media Effective Thermal Conductivity Greg Perkins FLUENT 3 August 5, 2001 22:53


All times are GMT -4. The time now is 16:28.