Post processing an internal plane/surface
Hi Foamers,
I know there are a few threads on this but I am incredibly confused with them all and I know some of the information is outdated so I'm going to ask again. I'm generating very large case files on our server and I want to postProcess single planes of data for export. I have a very simple rectangular domain and I would like to "slice/cut plane/internal surface" (whatever you want to call it!) so I am taking the field data from central y-normal and x-normal planes and later view them in ParaView. Could anyone clarify (for dummies!) how to do this? I should mention I'm on v1912. Cheers, Callum |
Hi Callum,
There is a tutorial that uses the surfaces functionObject for this. Please have a look at: $FOAM_TUTORIALS/incompressible/pimpleFoam/RAS/propeller/ The relevant files are the controlDict and the surfaces files in the system folder. As you see, the surfaces file is read in the functions subDict of the controlDict. The example usage of the surfaces functionObject is described in the surfaces file. You would need to modify it towards your needs, but I think you should get it from there. Cheers, Tom |
Hi Tom,
thanks very much for your reply and the advice! For the benefit of others I ended up adding the following to my controlDict: Code:
functions Code:
import os Callum |
Hi Callum,
Glad you got it working. Just a final hint (also for others) as there is a utility in OpenFOAM that can do the 'series' for you. It is called foamSequenceVTKFiles. If you have the .vtp extension it is invoked as: Code:
foamSequenceVTKFiles -vtp Cheers, Tom |
Excellent Tom!
I only wrote my own script because when I tried the command foamSequenceVTKFiles it didn't work, which I'm assuming is because I didn't use the flag '-vtp'. Brilliant! Merry Christmas Foamers!! |
Quote:
BTW: all of the machinery for generating vtk.series files is already in there (src/fileFormats) and it is most certainly being used for foamToVTK, for example. |
Thanks a lot for your explanation, it was helpful.
Farzad Quote:
|
All times are GMT -4. The time now is 19:56. |