|
[Sponsors] |
postProcess functionality in openFOAM 4 and total(p) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 26, 2017, 07:39 |
postProcess functionality in openFOAM 4 and total(p)
|
#1 |
Member
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 16 |
Hi,
currently I am adapting some of my software to work with OF 4.1. The new post processing functionality is giving me a hard time though. If I for example run the motorBike tutorial and create a total pressure field using: Code:
mpirun -np 6 postProcess -func 'totalPressureIncompressible(U,p)' -parallel -latestTime If I now modify the cuttingPlane stuff to this to include the total pressure: Code:
cuttingPlane { type surfaces; libs ("libsampling.so"); writeControl writeTime; surfaceFormat vtk; fields ( p U total(p)); interpolationScheme cellPoint; ... Code:
--> FOAM Warning : From function Foam::label Foam::sampledSurfaces::classifyFields() in file sampledSurface/sampledSurfaces/sampledSurfacesGrouping.C at line 75 Cannot find registered field matching total(p) So as I prefer not to change anything in the OF code I am wondering what I can do. I tried casting the brackets with all kinds of tricks but it never helped. Does anyone have an idea?
__________________
www.MantiumCAE.com |
|
February 10, 2017, 06:50 |
|
#2 |
Member
Join Date: May 2015
Posts: 34
Rep Power: 11 |
I got the same classifyFields() error as you with OF4.1 with twoPhaseEulerFoam when trying to create surfaces of timeaveraged values ( named Mean after the variable, for example pMean for timeaverage of p).
I found that using command postProcess was able to handle the Mean files, while using the solver name ie. twoPhaseEulerFoam -postProcess returned the classifyFields() error. Another option is workaround: copy your unaccepted filename over an accepted filename. I copied my pMean to p and now it was also accepted both ways... I wouldn't use this without backing up the original files though... Last edited by mnikku; February 10, 2017 at 06:51. Reason: Fixing some silly typos |
|
February 15, 2017, 06:43 |
|
#3 | |
Member
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 16 |
Quote:
My solution was to simply calculate the pressure coefficient in the post-processing tool (VTK).
__________________
www.MantiumCAE.com |
||
August 9, 2017, 10:11 |
|
#4 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
This should work if you call postProcess -field "total(p)" with the function object you already posted. Renaming is not necessary.
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
a reconstructPar issue | immortality | OpenFOAM Post-Processing | 8 | June 16, 2013 12:25 |