|
[Sponsors] |
August 24, 2017, 01:41 |
fluent udf thermal conductivity
|
#1 |
New Member
bob lu
Join Date: Aug 2017
Posts: 9
Rep Power: 9 |
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 |
|
August 24, 2017, 02:28 |
|
#2 |
Member
Kirill Borodin
Join Date: Mar 2016
Posts: 60
Rep Power: 10 |
Hello! Does thermal conductivity depend on temperature only?
Sent from my Redmi Note 3 using CFD Online Forum mobile app |
|
August 24, 2017, 02:43 |
|
#3 | |
New Member
bob lu
Join Date: Aug 2017
Posts: 9
Rep Power: 9 |
Quote:
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 |
||
August 24, 2017, 02:53 |
|
#4 |
Member
Kirill Borodin
Join Date: Mar 2016
Posts: 60
Rep Power: 10 |
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 |
|
August 24, 2017, 03:12 |
|
#5 | |
New Member
bob lu
Join Date: Aug 2017
Posts: 9
Rep Power: 9 |
Quote:
|
||
August 24, 2017, 05:22 |
|
#6 |
Member
Kirill Borodin
Join Date: Mar 2016
Posts: 60
Rep Power: 10 |
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 |
|
August 24, 2017, 05:29 |
|
#7 | |
New Member
bob lu
Join Date: Aug 2017
Posts: 9
Rep Power: 9 |
Quote:
it is what i mean, so do you know which udf code can help me achieve it, like MPCHG in ansys APDL |
||
August 24, 2017, 06:28 |
|
#8 |
Member
KirMaks
Join Date: Aug 2016
Posts: 34
Rep Power: 10 |
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.
|
|
August 24, 2017, 08:52 |
|
#9 |
Member
Kirill Borodin
Join Date: Mar 2016
Posts: 60
Rep Power: 10 |
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 |
|
August 25, 2017, 04:28 |
|
#10 |
New Member
bob lu
Join Date: Aug 2017
Posts: 9
Rep Power: 9 |
||
August 25, 2017, 04:33 |
|
#11 | |
New Member
bob lu
Join Date: Aug 2017
Posts: 9
Rep Power: 9 |
Quote:
THANKS, ANYWAY. |
||
August 25, 2017, 16:06 |
|
#12 |
Member
Kirill Borodin
Join Date: Mar 2016
Posts: 60
Rep Power: 10 |
Congratulations! Can I see the code please?
Sent from my Redmi Note 3 using CFD Online Forum mobile app |
|
August 26, 2017, 22:35 |
|
#13 | |
New Member
bob lu
Join Date: Aug 2017
Posts: 9
Rep Power: 9 |
Quote:
{ 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;} } |
||
August 27, 2017, 16:38 |
|
#14 |
Member
Kirill Borodin
Join Date: Mar 2016
Posts: 60
Rep Power: 10 |
||
|
|
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 |