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

UDF: temperature dependent BC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 11, 2011, 04:49
Default UDF: temperature dependent BC
  #1
Member
 
EH
Join Date: Dec 2010
Posts: 61
Rep Power: 15
ehooi is on a distinguished road
Hi,
I am attempting to write a UDF such that the boundary condition of a wall has non-zero heat flux (eg: heater being switched on) when the temperature of a specific point in my model falls below a certain value and a zero heat flux otherwise.

I guess using DEFINE_ADJUST to read the temperature of that point and DEFINE PROFILE to specify the BC.

Am i going in the right direction? Also, how do I obtain the temperature of that specific point? I know the coordinates of the point.

Many thanks.


Cheers,
EH
ehooi is offline   Reply With Quote

Old   January 11, 2011, 10:25
Default
  #2
New Member
 
Sangeeta
Join Date: Mar 2009
Posts: 3
Rep Power: 17
Sangeeta is on a distinguished road
Quote:
Originally Posted by ehooi View Post
Hi,
I am attempting to write a UDF such that the boundary condition of a wall has non-zero heat flux (eg: heater being switched on) when the temperature of a specific point in my model falls below a certain value and a zero heat flux otherwise.

I guess using DEFINE_ADJUST to read the temperature of that point and DEFINE PROFILE to specify the BC.

Am i going in the right direction? Also, how do I obtain the temperature of that specific point? I know the coordinates of the point.

Many thanks.


Cheers,
EH
Yes, You are right about the UDF.
To view the temperature u can use monitor< temperature at that specific point.
THis will be display temperature at that point at every iteration

Hope this will help you
Sangeeta is offline   Reply With Quote

Old   January 11, 2011, 10:29
Default
  #3
Member
 
EH
Join Date: Dec 2010
Posts: 61
Rep Power: 15
ehooi is on a distinguished road
Quote:
Originally Posted by Sangeeta View Post
Yes, You are right about the UDF.
To view the temperature u can use monitor< temperature at that specific point.
THis will be display temperature at that point at every iteration

Hope this will help you
Thank you Sangeeta. While I am able to monitor the temperature at that specific point, I will not be able to incorporate it into my UDF. I am trying to specify the BC such that when the temperature of that point drops below a certain level, the heat flux is non zero and if it above, then the heat flux is zero.

I guess the main issue is how to obtain the temperature of a point using UDF or at least link the temperature from the monitored point to my UDF.

Thanks.
ehooi is offline   Reply With Quote

Old   January 11, 2011, 11:09
Default
  #4
New Member
 
Amir
Join Date: Nov 2010
Location: Shiraz,Iran
Posts: 12
Rep Power: 15
amirreza_m is on a distinguished road
hi,
to do this , you can separate the element in which your specific point is.
after that, the separated element get different thread ID and you can use it easily.
amirreza_m is offline   Reply With Quote

Old   January 11, 2011, 11:12
Default
  #5
Member
 
EH
Join Date: Dec 2010
Posts: 61
Rep Power: 15
ehooi is on a distinguished road
Quote:
Originally Posted by amirreza_m View Post
hi,
to do this , you can separate the element in which your specific point is.
after that, the separated element get different thread ID and you can use it easily.
Thanks Amir Reza.

When you say separate the element, do you mean doing it in the model development stage?


Or is this done by writing a UDF for it? If yes, could you guide or point me to some sources that can help me in this?
ehooi is offline   Reply With Quote

Old   January 11, 2011, 14:40
Default
  #6
New Member
 
Amir
Join Date: Nov 2010
Location: Shiraz,Iran
Posts: 12
Rep Power: 15
amirreza_m is on a distinguished road
hi EH,
you can do that in FLUENT GUI:
1)adapt->region : specify a volume (as small as possible.try to capture one cell) with sphere or hex or ... . and mark this volume that contain your point. (do not adapt it ,just mark)
2)grid->separate->cells : here you can separate your marked volumes.
3)define->boundary conditions : here you can see your separated volume's ID (you need that in your UDF)
amirreza_m is offline   Reply With Quote

Old   January 22, 2011, 12:26
Default
  #7
Member
 
Nikolopoulos Aristeidis
Join Date: Jan 2011
Location: Athens, Greece
Posts: 62
Rep Power: 15
Nikolopoulos is on a distinguished road
amirreza_m thanks a lot about this tip!!!!

For years i was just making loops in my UDFs over all cells!!!!


Thank a lot!
Nikolopoulos 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
UDF Macros for accessing radiation temperature Tomb FLUENT 2 June 4, 2015 22:15
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
UDF - Temperature adjustment PaulK FLUENT 1 July 16, 2010 15:09
Adding a new temperature dependent viscositymodel? dgadensg OpenFOAM Programming & Development 10 May 22, 2010 05:47
udf variable for wall temperature Kiran FLUENT 0 July 31, 2008 08:31


All times are GMT -4. The time now is 00:43.