|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
EH
Join Date: Dec 2010
Posts: 61
Rep Power: 17 ![]() |
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 |
|
|
|
|
|
|
|
|
#2 | |
|
New Member
Sangeeta
Join Date: Mar 2009
Posts: 3
Rep Power: 18 ![]() |
Quote:
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 |
||
|
|
|
||
|
|
|
#3 | |
|
Member
EH
Join Date: Dec 2010
Posts: 61
Rep Power: 17 ![]() |
Quote:
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. |
||
|
|
|
||
|
|
|
#4 |
|
New Member
Amir
Join Date: Nov 2010
Location: Shiraz,Iran
Posts: 12
Rep Power: 17 ![]() |
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. |
|
|
|
|
|
|
|
|
#5 | |
|
Member
EH
Join Date: Dec 2010
Posts: 61
Rep Power: 17 ![]() |
Quote:
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? |
||
|
|
|
||
|
|
|
#6 |
|
New Member
Amir
Join Date: Nov 2010
Location: Shiraz,Iran
Posts: 12
Rep Power: 17 ![]() |
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) |
|
|
|
|
|
|
|
|
#7 |
|
Member
Nikolopoulos Aristeidis
Join Date: Jan 2011
Location: Athens, Greece
Posts: 62
Rep Power: 17 ![]() |
amirreza_m thanks a lot about this tip!!!!
For years i was just making loops in my UDFs over all cells!!!! Thank a lot! |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| UDF Macros for accessing radiation temperature | Tomb | FLUENT | 2 | June 4, 2015 23:15 |
| Calculation of the Governing Equations | Mihail | CFX | 7 | September 7, 2014 07:27 |
| UDF - Temperature adjustment | PaulK | FLUENT | 1 | July 16, 2010 16:09 |
| Adding a new temperature dependent viscositymodel? | dgadensg | OpenFOAM Programming & Development | 10 | May 22, 2010 06:47 |
| udf variable for wall temperature | Kiran | FLUENT | 0 | July 31, 2008 09:31 |