|
[Sponsors] |
Error computing wallShearStress with simpleFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 4, 2018, 11:58 |
Error computing wallShearStress with simpleFoam
|
#1 |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
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 Code:
request for volVectorField wallShearStress from objectRegistry region0 failed available objects of type volVectorField are 1(U) 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 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 05:59. Reason: Forgot to mention which OpenFOAM version I'm using. Second edit: tried different OpenFOAM version |
|
October 5, 2018, 06:47 |
Solved! Sort of...
|
#2 |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
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
|
|
November 3, 2018, 18:04 |
|
#3 |
Member
W. Schuyler Hinman
Join Date: Apr 2013
Location: Calgary, Alberta, Canada
Posts: 38
Rep Power: 13 |
Did you submit a bug report for this? I have had the exact same problem.
|
|
November 3, 2018, 21:56 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick question: Which OpenFOAM version/fork are you using?
__________________
|
|
November 4, 2018, 03:51 |
|
#5 |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
||
November 4, 2018, 08:05 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
@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 |
|
November 4, 2018, 16:02 |
|
#7 |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
Thanks, that's good to know!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
interFoam vs. simpleFoam channel flow comparison | DanM | OpenFOAM Running, Solving & CFD | 12 | January 31, 2020 16:26 |
simpleFoam parallel solver & Fluent polyhedral mesh | Zlatko | OpenFOAM Running, Solving & CFD | 3 | September 26, 2014 07:53 |
why does 'sample' do this? wallShearStress question | CHARLES | OpenFOAM Post-Processing | 0 | August 7, 2013 20:30 |
Trying to run a benchmark case with simpleFoam | spsb | OpenFOAM | 3 | February 24, 2012 10:07 |
Wallshearstress simplefoam | rengu | OpenFOAM Pre-Processing | 0 | December 14, 2007 05:18 |