CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

OF 6 wallHeatFlux utility not working on chtMultiRegionFoam tutorial

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

LinkBack Thread Tools Search this Thread Display Modes
Old   July 31, 2018, 19:17
Default OF 6 wallHeatFlux utility not working on chtMultiRegionFoam tutorial
New Member
Tim Parry
Join Date: Nov 2017
Posts: 1
Rep Power: 0
troparry is on a distinguished road

I'm working on a CFD Direct Amazon Web Services (AWS) EC2 instance, that has OF 6 installed on ubuntu 18.04 LTS. CFD Direct recently migrated to OF 6 on AWS.

I was adapting one of my chtMultiRegionSimpleFoam cases from OF 5 to chtMultiRegionFoam on OF 6, the "simple" version of this solver has been deprecated since chtMultiRegionFoam can now run both steady and transient solutions. See this link:

I ran into an error with the wallHeatFlux post process utility, so I moved to the multiRegionHeaterRadiation tutorial (which is similar to my case) and the error persisted. To replicate it, simply run the Allrun script in this tutorial, and then run the wallHeatFlux utility on one of the fluid regions like this (error output shown as well):

~/OpenFOAM/ubuntu-6/run/multiRegionHeaterRadiation(69) chtMultiRegionFoam -postProcess -func wallHeatFlux -region bottomAir > log_Fluid_Heat_Flux_Energy_Balance


    request for volScalarField wallHeatFlux from objectRegistry bottomAir failed
    available objects of type volScalarField are


    From function const Type& Foam::objectRegistry::lookupObject(const Foam::word&) const [with Type = Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>]
    in file /home/ubuntu/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 193.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::abort() at ??:?
#2  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const& Foam::objectRegistry::lookupObject<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >(Foam::word const&) const at ??:?
#3  Foam::functionObjects::wallHeatFlux::execute() at ??:?
#4  Foam::functionObjects::timeControl::execute() at ??:?
#5  Foam::functionObjectList::execute() at ??:?
#6  ? in "/opt/openfoam6/platforms/linux64GccDPInt32Opt/bin/chtMultiRegionFoam"
#7  __libc_start_main in "/lib/x86_64-linux-gnu/"
#8  ? in "/opt/openfoam6/platforms/linux64GccDPInt32Opt/bin/chtMultiRegionFoam"
Aborted (core dumped)
It seems that volScalarField wallHeatFlux needs to be added to the object registry. My log file is attached. Looking at the log file it seems the the heatflux utility works for timestep 0, but not for any subsequent timesteps.

I've been able to use the wallheatflux utility like this in multiple OF versions, including OF 5. In the OF 6 release, there was some modifications done on the wallHeatFlux utility and I'm wondering if this caused the issue. Is this a bug?

Attached Files
File Type: txt log_Fluid_Heat_Flux_Energy_Balance.txt (9.1 KB, 7 views)
troparry is offline   Reply With Quote


cht, chtmultiregionfoam, multiregionheater, openfoam 6, 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
wallHeatFlux utility for an incompressible case Mr.Jingles OpenFOAM Post-Processing 62 December 22, 2018 11:07
PostChannel utility not working in OpenFoam 15 nishant_hull OpenFOAM Running, Solving & CFD 15 January 18, 2012 05:26
FoamToEnsight/EnsightParts/VTK not working with motorbike tutorial madad2005 OpenFOAM Bugs 5 October 18, 2009 04:48
PostChannel Utility in openfoam15 not working nishant_hull OpenFOAM Bugs 0 August 14, 2008 15:49
Creating new utility Lorentz force calculation adekian OpenFOAM Running, Solving & CFD 0 May 24, 2007 05:16

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