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

OF 6 wallHeatFlux utility not working on chtMultiRegionFoam tutorial

Register Blogs Community New Posts Updated Threads Search

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

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: https://openfoam.org/release/6/

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):

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


--> FOAM FATAL ERROR: 

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

14
(
thermo:mu
thermo:psi
K
h
rho
p_rgh
Qdot
qr
dpdt
gh
p
T
thermo:rho
thermo:alpha
)


    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/libc.so.6"
#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?

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

Old   January 10, 2022, 07:12
Default
  #2
New Member
 
Lorenzo
Join Date: Feb 2021
Posts: 3
Rep Power: 5
JesusJoker is on a distinguished road
Check this thread

WallHeatFlux and chtMultiregion

It is not specified, but once moved all files into a sperate folder you should load a higher version of OF (like 8), after having unloaded the 6.

Then just type INTO THE NEW CREATED FOLDER

PHP Code:
rhoPimpleFoam -postProcess -func wallHeatFlux 
JesusJoker is offline   Reply With Quote

Reply

Tags
cht, chtmultiregionfoam, multiregionheater, openfoam 6, wallheatflux


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 67 April 6, 2023 04:25
PostChannel utility not working in OpenFoam 15 nishant_hull OpenFOAM Running, Solving & CFD 15 January 18, 2012 06:26
FoamToEnsight/EnsightParts/VTK not working with motorbike tutorial madad2005 OpenFOAM Bugs 5 October 18, 2009 05:48
PostChannel Utility in openfoam15 not working nishant_hull OpenFOAM Bugs 0 August 14, 2008 16:49
Creating new utility Lorentz force calculation adekian OpenFOAM Running, Solving & CFD 0 May 24, 2007 06:16


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