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, 09:44
Default Cannot find registered field matching Umean
  #1
New Member
 
Delchini Marc-Olivier
Join Date: Dec 2016
Posts: 6
Rep Power: 4
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: 16
Rep Power: 8
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: 6
Rep Power: 4
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: 523
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, 08:34
Default
  #5
New Member
 
Delchini Marc-Olivier
Join Date: Dec 2016
Posts: 6
Rep Power: 4
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

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 On
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 16:54.