CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Extract a vertical profile in volScalarField (https://www.cfd-online.com/Forums/openfoam/65093-extract-vertical-profile-volscalarfield.html)

begou June 3, 2009 11:35

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

ngj June 3, 2009 13:31

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.