CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   sample on a plane during the runtime (https://www.cfd-online.com/Forums/openfoam-post-processing/150489-sample-plane-during-runtime.html)

openfoammaofnepo March 23, 2015 16:40

sample on a plane during the runtime
 
Hi All,

I was wondering if OF have a function to sample the data on the plane (which is located in the interior of the computational domain) during the runtime. For example, we would like to extract the pressure values on the plane x=5 mm?
It seems that surfaceSampling is only for patch, not for an interiro plane.

Anybody knows something about problems?

Thank you. OFFO

jhoepken March 24, 2015 03:16

Please have a look at the sampling utility.

Kossivi April 4, 2015 00:27

Quote:

Originally Posted by jhoepken (Post 537936)
Please have a look at the sampling utility.

I would like to ask a similar question.

For sampling on surface we have vtk, raw, foamFile format. I want to do some modification in the raw file to have a suitable format to my output. So base on the example of the how to implement an application, i cpoy the raw file in src/sampling/sampledsurface/writers/raw to my User directory and perform the modification. Now my question is :

How can link this modification to the sampleDict in the utility so that my modification can be taken to write my format when I use the utility sample fater run simulation.

any help will be appreciated.

Thanks


All times are GMT -4. The time now is 20:49.