CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   How can I output slices of the flowField via sampledPlanes (https://www.cfd-online.com/Forums/openfoam-programming-development/102213-how-can-i-output-slices-flowfield-via-sampledplanes.html)

wernsen May 25, 2012 03:29

How can I output slices of the flowField via sampledPlanes
 
Hey guys,

here is my problem. I am using sampledPlanes to gather informtions of the calculated field. I can also write the mesh of these planes via "sampledPlanes().write(file_name)" after an update.

The question is now, how can I export for example the velocity distribution on this plane. I can use the vealues via "sP.sample(U.component(1))" for example to get the y-component. But I want to have the slice like it is in paraview.

I had a look to the sample utility but unfortunately I can not help myself.

Would be nice to get help.
MARTIN

JimKnopf May 29, 2012 04:07

Hi

as far as i know there is a function object to sample plane lines and probes during calculation. I'm not sure about the syntax, but maybe you can have a look at it.

The function object needs to be defined in the control dict.

HTH
Jim


All times are GMT -4. The time now is 08:48.