postProcess functionality in openFOAM 4 and total(p)
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 Code:
--> FOAM Warning : 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? |
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... |
Quote:
My solution was to simply calculate the pressure coefficient in the post-processing tool (VTK). |
This should work if you call postProcess -field "total(p)" with the function object you already posted. Renaming is not necessary.
|
All times are GMT -4. The time now is 10:05. |