|
[Sponsors] |
September 5, 2017, 10:12 |
postProcessing "grad(U")
|
#1 |
New Member
Livia Adinolfi
Join Date: May 2017
Posts: 15
Rep Power: 8 |
Dear Foamers,
I would like to calculate the shear stresses in a laminar simulation of an open channel flow. I am using the interFoam solver with OF 4.1 I was trying to postProcess and calculate grad(U). But I have this error: Executing functionObjects --> FOAM Warning : From function bool Foam::functionObjects::regionFunctionObject::store (Foam::word&, const Foam::tmp<T>&, bool) [with ObjectType = Foam::GeometricField<Foam::Tensor<double>, Foam::fvPatchField, Foam::volMesh>] in file /home/ubuntu/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude/regionFunctionObjectTemplates.C at line 61 Cannot store cache-able field with the named used in the cache. Either choose a different name or cache the field and use the 'writeObjects' functionObject. --> FOAM Warning : functionObject grad: Cannot find required field U ------------------------------------------------------------------------------------------------------------------- I know that there are many threads on this topic and I have read something, but still I did not solve this problem. Can anyone help me ? Thanks in advance. |
|
September 5, 2017, 11:30 |
|
#2 |
Senior Member
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20 |
Which command exactly did you type?
Did you include something like "-field U" or "-fields (U)" in the argument list, such that the utility knows that it should read U from file? |
|
September 5, 2017, 12:35 |
|
#3 |
New Member
Livia Adinolfi
Join Date: May 2017
Posts: 15
Rep Power: 8 |
Hi,
after the simulation: interFoam -postProcess -func "grad(U)". I tried also to do it in runtime by typing in the ControlDict file: functions { grad { type grad(U); libs ("libFVFunctionObjects.so"); fieldName "U"; resultName "gU"; } } but I have always the same error. What would you suggest ? Thanks a lot! |
|
April 6, 2020, 07:06 |
|
#4 |
New Member
Gazi Yavuz
Join Date: Apr 2018
Posts: 17
Rep Power: 8 |
this is too late answer. though it would be helpful for others. the function should be like;
Code:
functions { gradient /could be anything you name { type grad; libs ("libfieldFunctionObjects.so"); field U; writeControl writeTime; } } |
|
October 11, 2021, 04:20 |
answer
|
#5 |
New Member
Masoumeh
Join Date: Oct 2019
Posts: 21
Rep Power: 6 |
just type:
postProcess -func "grad(U)" |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
using fieldAverage library to average postprocessing | eelcovv | OpenFOAM Programming & Development | 32 | May 17, 2022 09:55 |
How to export the specific heat and viscosity for postprocessing (compressible) ? | david39 | OpenFOAM Post-Processing | 2 | January 4, 2019 07:04 |
PostProcessing of particle source | boesendorfer | FLOW-3D | 3 | October 26, 2017 16:22 |
Postprocessing in 3d - Creating part of a surface | shankara.2 | FLUENT | 0 | July 13, 2009 17:33 |
Question about Postprocessing Using UDF(in tutoria | sarah_ron2002 | FLUENT | 1 | April 10, 2007 16:17 |