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

Bug or feature in wallHeatFlux calculation for patches??

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2020, 08:14
Default Bug or feature in wallHeatFlux calculation for patches??
  #1
New Member
 
Join Date: Feb 2016
Posts: 20
Rep Power: 10
DaveD! is on a distinguished road
In OpenFoam v7, one can give the wall patches for which the wallHeatFlux field shall be calculated, otherwise wallHeatFlux is calculated for all wall patches.
Code:
wallHeatFlux //funktioniert!!!
{
    type wallHeatFlux;
    libs ("libfieldFunctionObjects.so");
    patches ("wall_heated");
    writeControl writeTime;
}
In postprocessing/wallHeatFlux/0/wallHeatFlux.dat, OpenFoam writes the min/max/integral values of the patch "wall_heated" as it should.
However, in the volScalarField that is created for each writeTime, wallHeatFlux is calculated for arbitrary patches, no matter which patches are being specified for calculation. In my case, wallHeatFlux was calculated for wall_heated and for inlet, the latter of which is purely non-sense.


Obviously, wallHeatFlux loops for the field creation over all boundaries and not the ones being specified (wallHeatFlux.C, line 87 f.):
Code:
    forAll(wallHeatFluxBf, patchi)
    { ...
In contrast, wallShearStress does what it should (wallShearStress.C, line 79 ff.):
Code:
    forAllConstIter(labelHashSet, patchSet_, iter)
    {
        label patchi = iter.key();
        ...
Is this a bug or a feature in wallHeatFlux?


Regards, DaveD!
DaveD! is offline   Reply With Quote

Reply


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
Bug in wall distance calculation david OpenFOAM Bugs 3 March 15, 2011 09:32
MRF and Heat transfer calculation Susan YU FLUENT 0 June 2, 2010 08:46
Calculation of heat transfer coefficients uli_u OpenFOAM Running, Solving & CFD 16 November 25, 2009 10:41
On Bug of Fluent 12.0 lzgwhy FLUENT 0 August 26, 2009 06:41
Warning 097- AB Siemens 6 November 15, 2004 04:41


All times are GMT -4. The time now is 08:54.