|
[Sponsors] |
Failed to store pointer: grad(U). Risk of memory leakage simpleFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 27, 2024, 02:41 |
Failed to store pointer: grad(U). Risk of memory leakage simpleFoam
|
#1 |
New Member
Alberto
Join Date: Jun 2024
Posts: 5
Rep Power: 2 |
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) } |
|
July 22, 2024, 17:55 |
|
#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. |
|
July 23, 2024, 02:17 |
|
#3 | |
New Member
Alberto
Join Date: Jun 2024
Posts: 5
Rep Power: 2 |
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. |
||
July 23, 2024, 12:17 |
|
#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 18:01. |
|
Tags |
bug, grad u, memory leakage, postprocessing, simplefoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
General recommendations for CFD hardware [WIP] | flotus1 | Hardware | 19 | June 23, 2024 19:02 |
Error with getting grad(U) at wall - failed to store pointer | quarkz | OpenFOAM Post-Processing | 2 | May 8, 2023 12:27 |
Workstation Suggestions For A Newbie | mrtcnsmgr | Hardware | 1 | February 22, 2023 02:13 |
CPU for Flow3d | mik_urb | Hardware | 4 | December 4, 2022 23:06 |
solver-dev : which variables to store in memory and which to compute on the fly? | aerosayan | Main CFD Forum | 16 | November 23, 2020 19:24 |