CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Post-Processing (
-   -   Problem in sampling data (

MOHAMMAD67 April 30, 2012 13:04

Problem in sampling data
1 Attachment(s)
Dear Foamers
I simulated a multiphase flow. After simulation completed I sampled data for drawing velocity profile. Unfortunately the sampled data are very different from what I saw in paraview.
Is there anyone know what happened to sampling?

Here you can see their comparison:

alberto April 30, 2012 13:50

How do you define the paraview line and the sampling line for the sample utility?


MOHAMMAD67 April 30, 2012 14:03

Line Defining
1 Attachment(s)
Dear ALberto

I defined a line in paraview (start and end point) and then copy them to sample dict.

alberto April 30, 2012 14:18

You will obtain the same result with sample, if you set

interpolationScheme pointMVC;


MOHAMMAD67 May 1, 2012 02:16

Problem solved!
1 Attachment(s)
Dear Alberto
thanks for your help. My problem was solved by your point.

the correct answer is attached here.

All times are GMT -4. The time now is 19:22.