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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 27, 2019, 10:44
Default Cannot find registered field matching Umean
  #1
New Member
 
Delchini Marc-Olivier
Join Date: Dec 2016
Posts: 7
Rep Power: 5
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, 18:07
Default
  #2
New Member
 
Join Date: Jan 2013
Posts: 17
Rep Power: 9
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 28, 2019, 00:22
Default
  #3
New Member
 
Delchini Marc-Olivier
Join Date: Dec 2016
Posts: 7
Rep Power: 5
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, 09:01
Default
  #4
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 529
Rep Power: 18
tomf 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, 09:34
Default
  #5
New Member
 
Delchini Marc-Olivier
Join Date: Dec 2016
Posts: 7
Rep Power: 5
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, 09:41
Default
  #6
New Member
 
Daniel
Join Date: Nov 2019
Location: Germany
Posts: 5
Rep Power: 2
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, 10:07
Default
  #7
New Member
 
Delchini Marc-Olivier
Join Date: Dec 2016
Posts: 7
Rep Power: 5
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, 10:39
Default
  #8
New Member
 
Daniel
Join Date: Nov 2019
Location: Germany
Posts: 5
Rep Power: 2
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, 10:40
Default
  #9
New Member
 
Daniel
Join Date: Nov 2019
Location: Germany
Posts: 5
Rep Power: 2
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

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


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