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.
Look into the "sample" utility. You will be able to find the required sampleDict in:
Reading the above should be quite self-explanatory.
|All times are GMT -4. The time now is 08:22.|