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

Cannot find registered field matching Umean

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By CFDanielGER

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 27, 2019, 09:44
Default Cannot find registered field matching Umean
  #1
New Member
 
Delchini Marc-Olivier
Join Date: Dec 2016
Posts: 7
Rep Power: 9
delcmo is on a distinguished road
Hello,

I am trying to get the time-average velocity along a line plot using the singleGrap capability. When I postprocess the simulation, I get the following error message:
Code:
Cannot find registered field matching Umean
I am running the channel395 tutorial and typed the following at the command line:
Code:
pimpleFoam -postProcess
It works fine it I postprocess the velocity U or the pressure p. For derived/computed variables it does not work.

I found a thread or the workaround is to rename UMean file to U and postprocess U.

What would be the right syntax to postprocess UMean?

Thanks,

Marco
delcmo is offline   Reply With Quote

Old   August 27, 2019, 17:07
Default
  #2
New Member
 
Join Date: Jan 2013
Posts: 17
Rep Power: 13
Za-ck is on a distinguished road
Hi,

maybe this works:

Code:
pimpleFoam -postProcess -fields "(Umean)"
or

Code:
postProcess -fields "(Umean)"
Cheers,
Za-ck
Za-ck is offline   Reply With Quote

Old   August 27, 2019, 23:22
Default
  #3
New Member
 
Delchini Marc-Olivier
Join Date: Dec 2016
Posts: 7
Rep Power: 9
delcmo is on a distinguished road
Zach,

thanks for your help. I tried this combination as well but it does not work. The output of the command line
Code:
pimpleFoam -postProcess -fields "(UMean)"
is:

Code:
--> FOAM Warning :
    From function Foam::label Foam::sampledSets::classifyFields()
    in file sampledSet/sampledSets/sampledSetsGrouping.C at line 140
    Cannot find registered field matching UMean
yPlus yPlus write:
    writing object yPlus
    patch bottomWall y+ : min = 1.31693, max = 4.19688, average = 2.16715
    patch topWall y+ : min = 1.21137, max = 4.10959, average = 2.18857

wallShearStress wallShearStress write:
    writing object wallShearStress
    min/max(bottomWall) = (-0.000305541 -5.14375e-06 -5.34327e-05), (-2.97267e-05 8.33523e-06 8.07104e-05)
    min/max(topWall) = (-0.000293085 -6.82135e-06 -8.57931e-05), (-2.48279e-05 5.54267e-06 6.45946e-05)

    functionObjects::myTurbKineticNrg myTurbKineticNrg writing field: myTurbKineticNrg
    Reading/initialising field UMean
    Reading/initialising field pMean
    Reading/initialising field yPlusMean
    Reading/initialising field wallShearStressMean
    Reading/initialising field myTurbKineticNrgMean
    Reading/initialising field UPrime2Mean
    Reading/initialising field pPrime2Mean
fieldAverage fieldAverage1 write:
    Calculating averages

    Writing average fields
It seams the time-averaged variables are initialized after the call of the singleGraph file (see above). Again I am not sure how to fix it.

Marco
delcmo is offline   Reply With Quote

Old   August 28, 2019, 08:01
Default
  #4
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

I think the order of the functionObjects within the functions subDict of the controlDict is important. So you first need to have the fieldAveraging and after that the sampling.

If you would have had fieldAverage before wallShearStress (or yPlus) you would not be able to take the average of that either (or maybe with a delay of 1 iteration, if you are lucky)

Regards,
Tom
tomf is offline   Reply With Quote

Old   August 28, 2019, 08:34
Default
  #5
New Member
 
Delchini Marc-Olivier
Join Date: Dec 2016
Posts: 7
Rep Power: 9
delcmo is on a distinguished road
Tom,

thanks for you help. You are right, I moved
Code:
#includeFunc  singleGraph
after fieldAverage block in controlDict file and it runs fine.

Thanks for the help,

Marco
delcmo is offline   Reply With Quote

Old   December 20, 2019, 08:41
Default
  #6
New Member
 
Daniel
Join Date: Nov 2019
Location: Germany
Posts: 10
Rep Power: 6
Dmarcohe is on a distinguished road
Hi, ich have kind of the same problem. I calculated Umean and UPrime2Mean while calculating and now i want to sample them. I use the sampledict with the field entries U, Umean and UPrime2Mean but it only samples U. For the other the terminal told me:

--> FOAM Warning :
From function Foam::label Foam::sampledSets::classifyFields()
in file sampledSet/sampledSets/sampledSetsGrouping.C at line 140
Cannot find registered field matching UMean

same for UPrime2Mean
Dmarcohe is offline   Reply With Quote

Old   December 20, 2019, 09:07
Default
  #7
New Member
 
Delchini Marc-Olivier
Join Date: Dec 2016
Posts: 7
Rep Power: 9
delcmo is on a distinguished road
Could you please provide the command lines you used and the exact error message?
delcmo is offline   Reply With Quote

Old   December 20, 2019, 09:39
Default
  #8
New Member
 
Daniel
Join Date: Nov 2019
Location: Germany
Posts: 10
Rep Power: 6
Dmarcohe is on a distinguished road
here is my terminal output

....
Reading set description:
y=0H
y=40H
y=61H
y=82H
y=103H
y=124H
y=145H

--> FOAM Warning :
From function Foam::label Foam::sampledSets::classifyFields()
in file sampledSet/sampledSets/sampledSetsGrouping.C at line 140
Cannot find registered field matching UMean
--> FOAM Warning :
From function Foam::label Foam::sampledSets::classifyFields()
in file sampledSet/sampledSets/sampledSetsGrouping.C at line 140
Cannot find registered field matching UPrime2Mean

End

command line: pimpleFoam -postProcess -func sampleDict -latestTime
Dmarcohe is offline   Reply With Quote

Old   December 20, 2019, 09:40
Default
  #9
New Member
 
Daniel
Join Date: Nov 2019
Location: Germany
Posts: 10
Rep Power: 6
Dmarcohe is on a distinguished road
and here my sampleDict:

FoamFile
{
version 2.0;
format ascii;
class dictionary;
object sampleDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

type sets;
libs ("libsampling.so")
writeControl latestTime;

// Set output format : choice of
// xmgr
// jplot
// gnuplot
// raw
setFormat raw;

// Surface output format. Choice of
// null : suppress output
// foamFile : separate points, faces and values file
// dx : DX scalar or vector format
// vtk : VTK ascii format
// raw : x y z value format for use with e.g. gnuplot 'splot'.
// stl : ascii stl. Does not contain values!
surfaceFormat foamFile;

// interpolationScheme. choice of
// cell : use cell-centre value only; constant over cells (default)
// cellPoint : use cell-centre and vertex values
// cellPointFace : use cell-centre, vertex and face values.
// 1] vertex values determined from neighbouring cell-centre values
// 2] face values determined using the current face interpolation scheme
// for the field (linear, gamma, etc.)
//interpolationScheme cell;
//interpolationScheme cellPoint;
interpolationScheme cellPointFace;

// Fields to sample.
fields
(
U
UMean
UPrime2Mean
);

// Set sampling definition: choice of
// uniform evenly distributed points on line
// face one point per face intersection
// midPoint one point per cell, inbetween two face intersections
// midPointAndFace combination of face and midPoint
//
// curve specified points, not nessecary on line, uses
// tracking
// cloud specified points, uses findCell
//
// axis: how to write point coordinate. Choice of
// - x/y/z: x/y/z coordinate only
// - xyz: three columns
// (probably does not make sense for anything but raw)
// - distance: distance from start of sampling line (if uses line) or
// distance from first specified sampling point
//
// type specific:
// uniform, face, midPoint, midPointAndFace : start and end coordinate
// uniform: extra number of sampling points
// curve, cloud: list of coordinates
sets
(
y=0H
{
type lineCell;
axis x;
start (-0.036 0.09 0);
end (0.036 0.09 0);
}
y=40H
{
type lineCell;
axis x;
start (-0.036 0.05 0);
end (0.036 0.05 0);
}
y=61H
{
type lineCell;
axis x;
start (-0.036 0.029 0);
end (0.036 0.029 0);
}
y=82H
{
type lineCell;
axis x;
start (-0.036 0.008 0);
end (0.036 0.008 0);
}
y=103H
{
type lineCell;
axis x;
start (-0.036 -0.013 0);
end (0.036 -0.013 0);
}
y=124H
{
type lineCell;
axis x;
start (-0.036 -0.034 0);
end (0.036 -0.034 0);
}
y=145H
{
type lineCell;
axis x;
start (-0.036 -0.055 0);
end (0.036 -0.055 0);
}
);

// Surface sampling definition: choice of
// plane : values on plane defined by point, normal.
// patch : values on patch.
//
// 1] planes are triangulated by default
// 2] patches are not triangulated by default
//surfaces
//(
//);



// ************************************************** ********************* //

U works perfect...
Dmarcohe is offline   Reply With Quote

Old   May 24, 2021, 08:05
Default
  #10
Member
 
Daniel
Join Date: May 2018
Posts: 43
Rep Power: 7
CFDanielGER is on a distinguished road
I have the same problem.

When I include singleGraph for UMean in the controlDict file the postProcessing works perfectly. But at some lines there is missing data and I want to postProcess it after the simulation with:
Code:
pisoFoam -postProcess -func singleGraph -latestTime
I get the following error:

No finite volume options present
--> FOAM Warning :
From Foam::label Foam::sampledSets::classifyFields()
in file sampledSet/sampledSets/sampledSetsGrouping.C at line 83

Cannot find registered field matching 1(UMean)

Does anybody know how to fix this problem?

EDIT:

Using

Code:
postProcess -func singleGraph -latestTime
instead of

Code:
pisoFoam -postProcess -func singleGraph -latestTime
works for me. But I cannot tell why it works for on but not the other. Maybe someone can explain what the difference is when using the solver in front of the postProcess call, I am curious.
nishant.kumar likes this.
CFDanielGER is offline   Reply With Quote

Reply


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
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
FFT on flow field to find peaks? CFDtoy Main CFD Forum 17 June 7, 2011 06:34
How can I find maximum of a field Q FLUENT 2 November 9, 2005 04:00
where to find velocity field for square pipes??? enrico Main CFD Forum 2 February 4, 2005 11:32
I wish to find the proper model to validate the temperature field. G.H.Lee Main CFD Forum 1 May 6, 1999 02:05


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