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

Volumetric Heat Loss UDF - Surface Area and Surface Heat Flux

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 2, 2022, 14:51
Default Volumetric Heat Loss UDF - Surface Area and Surface Heat Flux
  #1
New Member
 
Brandon Hager
Join Date: Nov 2022
Posts: 1
Rep Power: 0
brandonh63 is on a distinguished road
Hello,

I am trying to write a UDF in Fluent that will first calculate the surface area of any given wall, then obtain the surface heat flux through that wall. I will then need to supply those values to a DEFINE_SOURCE UDF that will be used to calculate volumetric heat loss through the corresponding cell zone.

What macros will I need to use to obtain the surface heat flux from the wall, store the surface area and heat flux in a specified memory location, and then pass the surface area and heat flux values to the DEFINE_SOURCE UDF?

Any assistance would be greatly appreciated.

Thanks
brandonh63 is offline   Reply With Quote

Old   November 3, 2022, 05:23
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
you may take a look here as a start
"Segmentation fault" when using UDFs in Fluent

I'm not sure if there is macro to get heat flux through the wall
probably, you would need to write it by your own

I recommend you to read ansys fluent customization manual, here you can find some examples
there is a macro DEFINE_HEAT_FLUX which is not what you need, however, could be useful as a basis
brandonh63 likes this.
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Reply

Tags
heat flux, storedvariables, udf


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
How to calculate area of particular surface through UDF? Silence Fluent UDF and Scheme Programming 10 May 25, 2021 03:18
solver crashing hrishikeshsivanandan OpenFOAM 7 March 6, 2021 01:18
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 05:15
Convective heat loss out of a solar receiver construction Lionel Trébuchon CFX 10 April 6, 2014 20:25
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32


All times are GMT -4. The time now is 07:05.