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

How to calculate the average temperature over an outlet patch in chtMultiRegionSimple

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 5, 2025, 15:11
Default How to calculate the average temperature over an outlet patch in chtMultiRegionSimple
  #1
New Member
 
Join Date: Jun 2009
Location: Belgium
Posts: 12
Rep Power: 17
Laika is on a distinguished road
Dear Fellow Foamers,


I have a ventilation simulation case using chtMultiRegionSimpleFoam. I want to postprocess the average temperature (preferably mass weighted) over a couple of outlets.


I created system/postProcessing/posttest01.txt:


/* foamheader */
functions
{
outlettemp
{
// Mandatory entries (unmodifiable)
type surfaceFieldValue;
libs (fieldFunctionObjects);

// Mandatory entries (runtime modifiable)
fields (T);
operation average;
regionType patch;
name he5a;

// Optional entries (runtime modifiable)
postOperation none;
weightField alpha1;
scaleFactor 1.0;
writeArea false;
surfaceFormat none;

// Optional (inherited) entries
writeFields false;
scalingFactor 1.0;
writePrecision 8;
writeToFile true;
useUserTime true;
region domain0;
enabled true;
log true;
timeStart 0;
timeEnd 10000;
executeControl timeStep;
executeInterval 1;
writeControl timeStep;
writeInterval 1;
}
}



but when running
postProcess.exe -dict system/postProcessing/posttest01.txt -latestTime -region domain0



I got:



Create time

Create mesh domain0 for time = 1130

surfaceFieldValue outlettemp:
operation = average


Time = 1130

Reading fields:

Executing functionObjects
surfaceFieldValue outlettemp write:
total faces = 1033
total area = 2.2502252

--> FOAM Warning :
From Foam::label Foam::functionObjects::fieldValues::surfaceFieldVa lue::writeAll(const vectorField&, const Foam::Field<Type>&, const pointField&, const faceList&) [with WeightType = double; Foam::label = int; Foam::vectorField = Foam::Field<Foam::Vector<double> >; Foam:ointField = Foam::Field<Foam::Vector<double> >; Foam::faceList = Foam::List<Foam::face>]
in file fieldValues/surfaceFieldValue/surfaceFieldValueTemplates.C at line 384
Requested field T not found in database and not processed


End





But the T field is there...

Any clues or ideas to get the desired value?


thanks,
Laika,
still orbiting
Laika is offline   Reply With Quote

Reply

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
Windkessel boundary implementation Filippo70 OpenFOAM Programming & Development 0 November 7, 2024 11:04
PIMPLE Stability CallumG OpenFOAM Running, Solving & CFD 3 July 16, 2022 04:17
Near wall treatment in k-omega SST Arnoldinho OpenFOAM Running, Solving & CFD 38 March 8, 2017 13:48
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 08:19


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