Extract a vertical profile in volScalarField
I'm quite new with OpenFOAM and I have to help a student who want to extract vertical profiles in his calculation domain.
I've find all that I need in volScalarField class (mesh and scalar values): I can print the cell center position and scalar value for each cell. But I do not understand how to find (select) the cells along a vertical axis located at the (X,Y) position where I wont to extract the vertical profile. I think this is a common thing when working with openFoam. Any help or starting point to read is welcome. Thanks Patrick |
Hi Patrick
Look into the "sample" utility. You will be able to find the required sampleDict in: ~/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/postProcessing/sampling/sample Reading the above should be quite self-explanatory. Best regards, Niels |
All times are GMT -4. The time now is 18:49. |