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

Error with getting grad(U) at wall - failed to store pointer

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2022, 12:59
Default Error with getting grad(U) at wall - failed to store pointer
  #1
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19
quarkz is on a distinguished road
Hi,

I've got a flow past flat plate problem using simpleFoam.

After the simulation, I tried to obtain the grad(U) at wall.

I run:

Code:
postProcess -func "grad(U)" -latestTime
But I got the error:

Code:
Reading fields:
    volVectorField: U

Executing functionObjects
--> FOAM Warning :
    From bool Foam::regIOobject::store()
    in file /home/user/OpenFOAM/OpenFOAM-v2206/src/OpenFOAM/lnInclude/regIOobjectI.H at line 51
    Refuse to store unregistered object: grad(U)


--> FOAM FATAL ERROR: (openfoam-2206)
Failed to store pointer: grad(U). Risk of memory leakage


    From static Type& Foam::regIOobject::store(Type*) [with Type = Foam::GeometricField<Foam::Tensor<float>, Foam::fvPatchField, Foam::volMesh>]
    in file /home/user/OpenFOAM/OpenFOAM-v2206/src/OpenFOAM/lnInclude/regIOobjectI.H at line 73.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::simpleExit(int, bool) at ??:?
#2  Foam::error::exiting(int, bool) at ??:?
#3  bool Foam::functionObjects::regionFunctionObject::store<Foam::GeometricField<Foam::Tensor<float>, Foam::fvPatchField, Foam::volMesh> >(Foam::word&, Foam::tmp<Foam::GeometricField<Foam::Tensor<float>, Foam::fvPatchField, Foam::volMesh> > const&, bool) at ??:?
#4  bool Foam::functionObjects::grad::calcGrad<Foam::Vector<float> >() at ??:?
#5  Foam::functionObjects::fieldExpression::execute() at ??:?
#6  Foam::functionObjects::timeControl::execute() at ??:?
#7  Foam::functionObjectList::execute() at ??:?
#8  ? in ~/OpenFOAM/OpenFOAM-v2206/platforms/linux64Gcc940SPDPInt32Opt/bin/postProcess
#9  ? in ~/OpenFOAM/OpenFOAM-v2206/platforms/linux64Gcc940SPDPInt32Opt/bin/postProcess
#10  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
#11  ? in ~/OpenFOAM/OpenFOAM-v2206/platforms/linux64Gcc940SPDPInt32Opt/bin/postProcess
Aborted
May I know what's the problem? I managed to get the wall shear stress though.

Hope someone can help. Thanks!
quarkz is offline   Reply With Quote

Old   May 4, 2023, 06:31
Default
  #2
New Member
 
shiyu
Join Date: Mar 2018
Location: london
Posts: 9
Rep Power: 8
shiyu is on a distinguished road
Hi Quarkz, I am wondering if you have fixed this issue:
Code:
Failed to store pointer: XXX. Risk of memory leakage
I am currently facing exactly the same one, thanks.
shiyu is offline   Reply With Quote

Old   May 8, 2023, 12:27
Default
  #3
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19
quarkz is on a distinguished road
Hi Shiyu, I tried on some other problems and it worked. Hence, I'm not sure why too.
quarkz 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
Divergence in AMG solver! marina FLUENT 20 August 1, 2020 12:30
GAMG crash fxzf OpenFOAM Running, Solving & CFD 6 June 5, 2018 06:09
Enhanced Wall Treatment paduchev FLUENT 24 January 8, 2018 12:55
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 09:44
Difficulty In Setting Boundary Conditions Moinul Haque CFX 4 November 25, 2014 18:30


All times are GMT -4. The time now is 14:17.