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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 28, 2020, 13:15
Question Calculating heat flux over cylindrical wall
  #1
New Member
 
Join Date: Aug 2020
Posts: 6
Rep Power: 2
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 16:08.
dduon101 is offline   Reply With Quote

Old   August 28, 2020, 17:54
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 600
Rep Power: 18
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, 18:18
Default
  #3
New Member
 
Join Date: Aug 2020
Posts: 6
Rep Power: 2
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, 18:47
Default
  #4
New Member
 
Join Date: Aug 2020
Posts: 6
Rep Power: 2
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, 19:04
Default
  #5
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 600
Rep Power: 18
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, 19:08
Default
  #6
New Member
 
Join Date: Aug 2020
Posts: 6
Rep Power: 2
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

Reply

Tags
flux, openfoam 2.2.2, post-processing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 13:43
Natural convection in a closed domain STILL NEEDING help! Yr0gErG FLUENT 4 December 2, 2019 00:04
CEL expression for calculating heat flux to be applied as surface boundary condition shadnia CFX 14 August 20, 2018 18:32
wall heat flux in openfoam hz283 OpenFOAM 1 January 4, 2014 07:51
Wall heat flux cujo CFX 3 November 6, 2002 03:43


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