CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Volumetric Heat Loss UDF - Surface Area and Surface Heat Flux (https://www.cfd-online.com/Forums/fluent/245920-volumetric-heat-loss-udf-surface-area-surface-heat-flux.html)

brandonh63 November 2, 2022 14:51

Volumetric Heat Loss UDF - Surface Area and Surface Heat Flux
 
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

AlexanderZ November 3, 2022 05:23

you may take a look here as a start
https://www.cfd-online.com/Forums/fl...fs-fluent.html

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


All times are GMT -4. The time now is 04:42.