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

UDF for Q_loss

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2020, 05:39
Default UDF for Q_loss
  #1
Member
 
Ahmed
Join Date: Sep 2019
Posts: 34
Rep Power: 6
tahtawy is on a distinguished road
In a transient analysis
I want to define Q_loss from tank walls to ambient as a function of
1- The average temp of the tank ( varied with each time step )
2- Temp of the surrounding (varied with each time step )

This will be used as a boundary condition for the tank wall

correlation:
Q_loss=1.2*(T_av_tank - T_surr)^1.26

If any one please can make udf function for that as i don't know how to make it or if there any other easier way to incorporate this as boundary condition of the tank wall?????
tahtawy is offline   Reply With Quote

Old   March 26, 2020, 06:17
Default Udf
  #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
Someone might be willing to write a UDF, however, there are other aspects of this equation. Heat flux is not a function of the average temperature rather of the wall temperature. Secondly, whoever writes the UDF needs to know how would you vary the surrounding temperature. It is provided via a text file or via any equation? It is only because of the exponent 1.26 that you might require a UDF, otherwise, this can be done without the UDF.
__________________
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   March 26, 2020, 06:38
Default
  #3
Member
 
Ahmed
Join Date: Sep 2019
Posts: 34
Rep Power: 6
tahtawy is on a distinguished road
Dear Mr vinerm,

Thanks for your reply and your effort.
The temp of water inside the tank will be initially AT 60 DEGREE C and then it will decrease with time by cooling in the ambient air

The temp of the surrounding will be initially 24 and will increase with time

That means that this equation of the heat flux is the only boundary condition which will affect the process

This is equation from a scientific paper that I am trying to validate and it was published in a very good journal

Regards
tahtawy is offline   Reply With Quote

Old   March 26, 2020, 06:51
Default Heat Transfer
  #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
Cooling from a wall by convection is always governed by Newton's law, i.e., 1 in place of 1.26. 1.26 is possible only with augmented heat transfer, such as, simplified modeling of radiation or some other similar methodology. Secondly, until and unless the surroundings of the tank are confined, the temperature will remain at 24 and not increase. If the surroundings are confined, then it will increase but this has to be solved as a part of the system, i.e., CFD model will also have to include the surroundings of the tank.
__________________
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   March 26, 2020, 07:13
Default
  #5
Member
 
Ahmed
Join Date: Sep 2019
Posts: 34
Rep Power: 6
tahtawy is on a distinguished road
so how to make the surrounding confined ?

To make it much bigger ?

And also what BC to give to the outer boundary of the surrounding after making it bigger ? Symmetry or wall ?

Thanks in advance
tahtawy is offline   Reply With Quote

Old   March 26, 2020, 07:19
Default Confined Surrounding
  #6
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
You don't make it confined. This has to be based on what you are trying to validate or simulate. If the surroundings are confined in that case, then you do it as well, otherwise not.
__________________
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

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 for one dimensional linear motion based on force maccheese Fluent UDF and Scheme Programming 2 September 1, 2019 02:18
Save output of udf in another udf! JuanJoMex FLUENT 0 February 8, 2018 12:43
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 00:53
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


All times are GMT -4. The time now is 14:19.