|
[Sponsors] |
August 28, 2020, 14:15 |
Calculating heat flux over cylindrical wall
|
#1 |
New Member
Join Date: Aug 2020
Posts: 6
Rep Power: 6 |
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. |
|
August 28, 2020, 18:54 |
|
#2 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
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 |
|
August 28, 2020, 19:18 |
|
#3 |
New Member
Join Date: Aug 2020
Posts: 6
Rep Power: 6 |
Thank you very much! I will take a look and try it out!
|
|
August 28, 2020, 19:47 |
|
#4 |
New Member
Join Date: Aug 2020
Posts: 6
Rep Power: 6 |
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! |
|
August 28, 2020, 20:04 |
|
#5 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
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. |
|
August 28, 2020, 20:08 |
|
#6 |
New Member
Join Date: Aug 2020
Posts: 6
Rep Power: 6 |
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!
|
|
December 21, 2022, 08:41 |
Concerning integral value generated by wallheatFlux
|
#7 |
New Member
H. Omar
Join Date: Mar 2013
Posts: 23
Rep Power: 13 |
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: (Heatflux value on each point) x (Surface of the cell face). or ( (Heatflux value on each point)) x (Total surface). Thanks a lot. |
|
Tags |
flux, openfoam 2.2.2, post-processing |
|
|
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 |