|
[Sponsors] |
Failed to store pointer: grad(U). Risk of memory leakage simpleFoam |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Alberto
Join Date: Jun 2024
Posts: 5
Rep Power: 3 ![]() |
Hello everyone!
I'm new to OpenFOAM. I'm trying to calculate the gradient of the velocity in a simulation using simpleFoam with the command Code:
postProcess -func "grad(U)" Code:
simpleFoam -postProcess -func "grad(U)" Code:
functions { #includeFunc grad(U) } |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Nafiz Ahmed Khan
Join Date: Nov 2023
Location: Canada
Posts: 27
Rep Power: 3 ![]() |
Hello Gyros,
Did you solve this issue? I'm also facing a similar problem. |
|
![]() |
![]() |
![]() |
![]() |
#3 | |
New Member
Alberto
Join Date: Jun 2024
Posts: 5
Rep Power: 3 ![]() |
Quote:
I didn't solve this problem, but I circumvented it by calculating the velocity gradient in my program using the code Code:
volTensorField gradU = fvc::grad(U); I hope this helps. |
||
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
Nafiz Ahmed Khan
Join Date: Nov 2023
Location: Canada
Posts: 27
Rep Power: 3 ![]() |
Hello Gyros, thanks for your reply.
The above problem was solved. I just deleted some lines from system/fvSolution: Code:
cache { grad(U); } Nafiz Last edited by Nafiz375; July 23, 2024 at 17:01. |
|
![]() |
![]() |
![]() |
Tags |
bug, grad u, memory leakage, postprocessing, simplefoam |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
General recommendations for CFD hardware [WIP] | flotus1 | Hardware | 21 | April 9, 2025 13:55 |
Error with getting grad(U) at wall - failed to store pointer | quarkz | OpenFOAM Post-Processing | 2 | May 8, 2023 11:27 |
Workstation Suggestions For A Newbie | mrtcnsmgr | Hardware | 1 | February 22, 2023 01:13 |
CPU for Flow3d | mik_urb | Hardware | 4 | December 4, 2022 22:06 |
solver-dev : which variables to store in memory and which to compute on the fly? | aerosayan | Main CFD Forum | 16 | November 23, 2020 18:24 |