CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

''wallHeatFlux'' for OpenFOAM version 10

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By kerim
  • 1 Post By kerim

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2023, 19:22
Default ''wallHeatFlux'' for OpenFOAM version 10
  #1
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 100
Rep Power: 4
dasith0001 is on a distinguished road
Hi Foamers,

I have ''wallHeatFlux'' function working perfectly fine in OpenFOAM 7.

So I call the function wallHeatFlux from 'controlDict' as ;

Code:
functions
{

    #include "vtkWrite"
    #include "wallHeatFlux"
}
and then the 'wallHeatFlux' function in the 'system' folder looks like

Code:
wallHeatFlux1
{
    // Mandatory entries (unmodifiable)
    type            wallHeatFlux;
    libs            (fieldFunctionObjects);
    region           topSolid;

    // Optional entries (runtime modifiable)
    patches     (maxZ maxZ1); // (wall1 "(wall2|wall3)");
    //qr          qr;

    // Optional (inherited) entries
    
    executeControl  timeStep;
    executeInterval 1;
    writeControl    writeTime;
}

wallHeatFlux2
{
    // Mandatory entries (unmodifiable)
    type            wallHeatFlux;
    libs            (fieldFunctionObjects);
    region           wallSolid;

    // Optional entries (runtime modifiable)
    patches     (maxY); // (wall1 "(wall2|wall3)");
    //qr          qr;

    // Optional (inherited) entries
    
    executeControl  timeStep;
    executeInterval 1;
    writeControl    writeTime;
}
This arrangment works fine in Openfoam 7 ( v2012) so far without an issue but when I shift to OpenFOAM 10, errors start to pops up.
PHP Code:
[1] --> FOAM FATAL IO ERROR:
[
1keyword type is undefined in dictionary "IOstream/functions/wallHeatFlux"
[1]
[
1fileIOstream/functions/wallHeatFlux from line 0 to line 0.
[1]
[
1]     From function const Foam::entryFoam::dictionary::lookupEntry(const Foam::word&, boolbool) const 
I think there is different way of defining 'wallHeatFlux' in OpenFOAM 10. And there is really one example in the tutorial which makes no sense to me.

I would really appreciate if you guys direct me in in the correct path.

Thanks
Dasith
dasith0001 is offline   Reply With Quote

Old   March 23, 2023, 22:25
Default ''wallHeatFlux'' for OpenFOAM version 10
  #2
Senior Member
 
abdikerim kurbanaliev
Join Date: Jun 2010
Location: Kyrgyzstan, Osh
Posts: 119
Rep Power: 15
kerim is on a distinguished road
<div>Dear Dasith, <br></div><div>In my case everything is OK with wallHeatFlux in OF 10. I have used wallHeatFlux which is worked fine in OF 7 too. Please, see the attached compressed files.


Kerim</div>
Attached Files
File Type: zip aaa.zip (1.9 KB, 21 views)
dasith0001 likes this.
kerim is offline   Reply With Quote

Old   March 24, 2023, 00:58
Smile
  #3
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 100
Rep Power: 4
dasith0001 is on a distinguished road
Hi Kerim,

Thank you for the quick respond, it works fine now!

However I had to make a slight change to the 'wallHeatFlux' file as I am running 'chtMultiRegionFoam' as follows.

Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
-------------------------------------------------------------------------------
Description
    Calculates the heat-flux at wall patches, outputting the data as a
    volScalarField.

\*---------------------------------------------------------------------------*/

type            wallHeatFlux;
libs            ("libfieldFunctionObjects.so");

    region           topSolid;

    // Optional entries (runtime modifiable)
    
    patches     (maxZ maxZ1); // (wall1 "(wall2|wall3)");


    // Optional (inherited) entries
    
    executeControl  timeStep;
    executeInterval 1;
    writeControl    writeTime;



// ************************************************************************* //
works just fine.

Thank you
Dasith
dasith0001 is offline   Reply With Quote

Old   March 24, 2023, 02:06
Default
  #4
Senior Member
 
abdikerim kurbanaliev
Join Date: Jun 2010
Location: Kyrgyzstan, Osh
Posts: 119
Rep Power: 15
kerim is on a distinguished road
Well done. Good luck!
dasith0001 likes this.
kerim is offline   Reply With Quote

Reply

Tags
openfoam 10, wallheatflux

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
reactingFoam crashes with no iterations uckmhnds OpenFOAM Running, Solving & CFD 3 July 17, 2022 19:41
OpenFOAM version switch from ESI to Foundation vronti OpenFOAM 1 May 2, 2022 04:48
OF 6 wallHeatFlux utility not working on chtMultiRegionFoam tutorial troparry OpenFOAM Post-Processing 1 January 10, 2022 07:12
Turbulent flow around a cylinder with pimpleFoam Nazim OpenFOAM Running, Solving & CFD 2 May 19, 2020 07:58
libz.so.1: no version information available dmaz OpenFOAM Running, Solving & CFD 3 January 4, 2015 17:54


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