CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Calculating heat flux over cylindrical wall

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 28, 2020, 14:15
Question Calculating heat flux over cylindrical wall
  #1
New Member
 
Join Date: Aug 2020
Posts: 6
Rep Power: 6
dduon101 is on a distinguished road
Hello all,

I wanted to ask how one would get the heat flux across the cylindrical wall of a tube (patch). I have looked at the forums and tried the method posted in:

Calculate flux across surface

Additionally, I looked at the following to gain an understanding and try to modify it for heat flux, but as a C++ beginner at programming, I have no idea what I'm supposed to do.

https://openfoamwiki.net/index.php/S...ting_mass_flow

I would like to be able to use the controlDict method, if possible. Please note that I am using OpenFOAM 2.2.2. Thank you.

Last edited by dduon101; August 28, 2020 at 17:08.
dduon101 is offline   Reply With Quote

Old   August 28, 2020, 18:54
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
You can use the wallHeatFlux function object. See:
https://www.openfoam.com/documentati...lHeatFlux.html
https://github.com/OpenFOAM/OpenFOAM...wallHeatFlux.H


For the OpenFOAM-2.2 see: https://github.com/OpenFOAM/OpenFOAM...wallHeatFlux.C
jherb is offline   Reply With Quote

Old   August 28, 2020, 19:18
Default
  #3
New Member
 
Join Date: Aug 2020
Posts: 6
Rep Power: 6
dduon101 is on a distinguished road
Thank you very much! I will take a look and try it out!
dduon101 is offline   Reply With Quote

Old   August 28, 2020, 19:47
Default
  #4
New Member
 
Join Date: Aug 2020
Posts: 6
Rep Power: 6
dduon101 is on a distinguished road
Sorry to bother again, but when I followed the guide I got the following error when I wrote the wallHeatFlux under the functions subdictionary in the controlDict file.

functions
{
wallHeatFlux1
{
// Mandatory entries (unmodifiable)
type wallHeatFlux;
libs (fieldFunctionObjects);

patches (sides);
qr qr;
}
}

The error I get is:

Unknown function type wallHeatFlux

Valid functions are :

20
(
cellSource
faceSource
fieldAverage
fieldCoordinateSystemTransform
fieldMinMax
fieldValueDelta
nearWallFields
patchProbes
patchRtis
probes
processorField
readFields
regionSizeDistribution
rtis
sets
streamLine
surfaceInterpolateFields
surfaces
turbulenceFields
wallBoundedStreamLine
)

I'm not sure what to do here. Thanks for the help!
dduon101 is offline   Reply With Quote

Old   August 28, 2020, 20:04
Default
  #5
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
It looks like the funciton object is not available in 2.2 version. The wallHeatFlux is a post processing utility, which has to be called after the run and will work with the stored values in the time folders.



Or you can try to backport the function object. But I do not know how much work this would be.
jherb is offline   Reply With Quote

Old   August 28, 2020, 20:08
Default
  #6
New Member
 
Join Date: Aug 2020
Posts: 6
Rep Power: 6
dduon101 is on a distinguished road
Hello again! Thanks for the help as always. I will try to see what I can do regarding the backporting of the function object. If you know a good starting point to explore, that would be great! If not, I'll try to slug through it!
dduon101 is offline   Reply With Quote

Old   December 21, 2022, 08:41
Default Concerning integral value generated by wallheatFlux
  #7
New Member
 
stater's Avatar
 
H. Omar
Join Date: Mar 2013
Posts: 23
Rep Power: 13
stater is on a distinguished road
Greetings foamers,

We are working on the case where we have a fluid circuling around a heat exchangers,so we are trying to calculate the heat flux through the boundary between the fluid and the solid: we use for that wallHeatFlux funciton.

The Integral value in the file "postprocessing/Region/WallHeatFlux/0/wallHeatFlux.dat" given by wallHeatFlux function, is it calculated by:

\sum (Heatflux value on each point) x (Surface of the cell face).

or

(\sum (Heatflux value on each point)) x (Total surface).

Thanks a lot.
stater is offline   Reply With Quote

Reply

Tags
flux, openfoam 2.2.2, post-processing


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
Nonsensical results with wall heat flux boundary condition jtipton2 OpenFOAM Running, Solving & CFD 2 December 22, 2019 14:43
Natural convection in a closed domain STILL NEEDING help! Yr0gErG FLUENT 4 December 2, 2019 01:04
CEL expression for calculating heat flux to be applied as surface boundary condition shadnia CFX 14 August 20, 2018 19:32
wall heat flux in openfoam hz283 OpenFOAM 1 January 4, 2014 08:51
Wall heat flux cujo CFX 3 November 6, 2002 04:43


All times are GMT -4. The time now is 11:56.