|
[Sponsors] |
How to calculate the average temperature over an outlet patch in chtMultiRegionSimple |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Join Date: Jun 2009
Location: Belgium
Posts: 12
Rep Power: 17 ![]() |
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: ![]() 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 |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |