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

Error computing wallShearStress with simpleFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 4, 2018, 10:58
Default Error computing wallShearStress with simpleFoam
  #1
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Hi all,


I just ran a case using simpleFoam, and now I'd like to compute the wall shear stress in my geometry. I tried this using

Code:
simpleFoam -postProcess -func wallShearStress
which seems to work fine for time 0, but when it starts on the next time step, I get a fatal error saying
Code:
request for volVectorField wallShearStress from objectRegistry region0 failed
available objects of type volVectorField are
1(U)
It looks like OpenFOAM is telling me it can't find the wallShearStress field, but that's exactly what it's supposed to be computing, so no wonder it isn't there yet, right? Or not? Does anyone know what's going on here, and how I should avoid this error?


Thanks in advance!
Sita


P.S. I'm using OpenFOAM 6 on Ubuntu 18.04


Edit:

-other functions seem to work fine, I tried postProcess -func "components(U)" and that didn't give any problems
- when I try using the function wallShearStress under Foam Extend 4.0 I get the following error:
Code:
--> FOAM FATAL IO ERROR: 

    Cannot find 'value' entry on patch symmetry of field U in file "/home/administrator/foam/administrator-4.0/run/cases/of6/FJ26C_turbulent/0/U"
    which is required to set the values of the generic patch field.
    (Actual type symmetry)

    Please add the 'value' entry to the write function of the user-defined boundary-condition
    or link the boundary-condition into libfoamUtil.so

file: /home/administrator/foam/administrator-4.0/run/cases/of6/FJ26C_turbulent/0/U::boundaryField::symmetry from line 4514636 to line 4514636.

    From function genericFvPatchField<Type>::genericFvPatchField(const fvPatch&, const Field<Type>&, const dictionary&)
    in file fields/fvPatchFields/basic/generic/genericFvPatchField.C at line 71.

FOAM exiting
So apparently something's wrong with my symmetry boundary patch. I already noticed before that I seem to have two of these in the same location. Does anyone know how to fix that? I used snappyHexMesh to create my mesh


Edit 2: I fixed the mesh now, but still get the same fatal error in OF6 upon running
Code:
simpleFoam -postProcess -func wallShearStress
Code:
--> FOAM FATAL ERROR: 

    request for volVectorField wallShearStress from objectRegistry region0 failed
    available objects of type volVectorField are
1(U)

    From function const Type& Foam::objectRegistry::lookupObject(const Foam::word&) const [with Type = Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>]
    in file /home/ubuntu/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 193.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::abort() at ??:?
#2  Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const& Foam::objectRegistry::lookupObject<Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> >(Foam::word const&) const in "/opt/openfoam6/platforms/linux64GccDPInt32Opt/bin/simpleFoam"
#3  Foam::functionObjects::wallShearStress::execute() at ??:?
#4  Foam::functionObjects::timeControl::execute() at ??:?
#5  Foam::functionObjectList::execute() at ??:?
#6  ? in "/opt/openfoam6/platforms/linux64GccDPInt32Opt/bin/simpleFoam"
#7  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#8  ? in "/opt/openfoam6/platforms/linux64GccDPInt32Opt/bin/simpleFoam"
Aborted (core dumped)

Last edited by sita; October 5, 2018 at 04:59. Reason: Forgot to mention which OpenFOAM version I'm using. Second edit: tried different OpenFOAM version
sita is offline   Reply With Quote

Old   October 5, 2018, 05:47
Default Solved! Sort of...
  #2
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Alright, apparently this is some sort of bug: when I use the -time option and process the time folders one by one, it runs without trouble. So at least I have the results I wanted now
sita is offline   Reply With Quote

Old   November 3, 2018, 17:04
Default
  #3
Member
 
W. Schuyler Hinman
Join Date: Apr 2013
Location: Calgary, Alberta, Canada
Posts: 38
Rep Power: 13
schuyler is on a distinguished road
Did you submit a bug report for this? I have had the exact same problem.
schuyler is offline   Reply With Quote

Old   November 3, 2018, 20:56
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by schuyler View Post
Did you submit a bug report for this? I have had the exact same problem.
Quick question: Which OpenFOAM version/fork are you using?
__________________
wyldckat is offline   Reply With Quote

Old   November 4, 2018, 02:51
Default
  #5
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
@Wyldcat: as I mentioned in my first post in this thread, I'm using OpenFOAM 6 on Ubuntu 18.04

Quote:
Originally Posted by schuyler View Post
Did you submit a bug report for this? I have had the exact same problem.
No, I didn't. Good idea, I will do that.
sita is offline   Reply With Quote

Old   November 4, 2018, 07:05
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
@Sita: My apologies, I was in a hurry and only asked schuyler, because I wanted to look into both situations at the same time...

Regarding OpenFOAM 6, the bug is known and has already been fixed in the git version: https://github.com/OpenFOAM/OpenFOAM-6/commit/0f14683c - but the cumulative fixes haven't been release as Deb packages yet: https://bugs.openfoam.org/view.php?id=3055
Therefore, you will have to rebuild OpenFOAM 6 from source code, in order to fix this issue.

Or as an alternative, you can use the workaround detailed on this post: request for volScalarField k from objectRegistry region0 failed+(DPMFoam) - post #25
wyldckat is offline   Reply With Quote

Old   November 4, 2018, 15:02
Default
  #7
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Thanks, that's good to know!
sita 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
interFoam vs. simpleFoam channel flow comparison DanM OpenFOAM Running, Solving & CFD 12 January 31, 2020 15:26
simpleFoam parallel solver & Fluent polyhedral mesh Zlatko OpenFOAM Running, Solving & CFD 3 September 26, 2014 06:53
why does 'sample' do this? wallShearStress question CHARLES OpenFOAM Post-Processing 0 August 7, 2013 19:30
Trying to run a benchmark case with simpleFoam spsb OpenFOAM 3 February 24, 2012 09:07
Wallshearstress simplefoam rengu OpenFOAM Pre-Processing 0 December 14, 2007 04:18


All times are GMT -4. The time now is 21:26.