CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Result file Help (https://www.cfd-online.com/Forums/openfoam/91440-result-file-help.html)

kid August 11, 2011 01:29

Result file Help
 
Hello All,

How do i extract value from result files in time stamp from OpenFOAM??

a cylinder flow was solved now i want to plot pressure around cylinder at all angles
at a particular distance. But i do not know how to extract the pressure value from "p" file.

Cheers
CFDkid:o

kid August 11, 2011 07:41

OpenFOAM
 
Can you people help me please ?

marupio August 11, 2011 09:42

Hey kid,

You can used Paraview to visualize your data. I believe it has data extraction functionality, but I haven't used it. You can use OpenFOAM's "sample" application. I think you need to add a sampleDict file to your constant directory to use it. sample extracts data from a set of points, or a plane. You can also export OpenFOAM data to other post processors, such as Techplot.

I don't know much more... I'm more into solver development!

-Dave

flotob August 11, 2011 10:53

hi kid,

you could use the writeCellCentres utility to get the xyz coordinates of the points, your p data is calculated

tobi

kid August 12, 2011 02:20

@Dave

Thank you will try sampleDict option:)

Quote:

Originally Posted by marupio (Post 319748)
Hey kid,

You can used Paraview to visualize your data. I believe it has data extraction functionality, but I haven't used it. You can use OpenFOAM's "sample" application. I think you need to add a sampleDict file to your constant directory to use it. sample extracts data from a set of points, or a plane. You can also export OpenFOAM data to other post processors, such as Techplot.

I don't know much more... I'm more into solver development!

-Dave


kid August 12, 2011 02:22

@tobi,
Well tried it from case directory, but it generated data for all the time step and cx,ccy,ccz
what are these files ?
Can i use it for getting data for particular cell ?

Cheers
CFDkid:(

Quote:

Originally Posted by flotob (Post 319766)
hi kid,

you could use the writeCellCentres utility to get the xyz coordinates of the points, your p data is calculated

tobi


kid August 30, 2011 05:00

Para Inspector to spot values in given cell
 
Hello everyone,
Q: How to get values at particular location from result files of OpenFOAM?
A: ParaView comes with a python tool called Para Inspector. First open the OpenFOAM solved case in ParaView. Now to under View option and check the "para Inspector"
It asks for X,Y,Z co ordinates of the spot one wants to get or fetch values. One can also select between range of variables for which the values are computed. Next Zoom in at the spot and you will find the computed value.

Following links are useful in the above regard:

http://www.vtk.org/Wiki/Data_Selection

Cheers,
CFDkid:o:):rolleyes::confused::p;):D

joel.lehikoinen August 30, 2011 05:06

Quote:

Originally Posted by kid (Post 322223)
Hello everyone,
Q: How to get values at particular location from result files of OpenFOAM?
A: ParaView comes with a python tool called Para Inspector. First open the OpenFOAM solved case in ParaView. Now to under View option and check the "para Inspector"
It asks for X,Y,Z co ordinates of the spot one wants to get or fetch values. One can also select between range of variables for which the values are computed. Next Zoom in at the spot and you will find the computed value.

Following links are useful in the above regard:

http://www.vtk.org/Wiki/Data_Selection

Cheers,
CFDkid:o:):rolleyes::confused::p;):D

To obtain data values at single points, you can also use the probeLocations utility. For an example of probesDict, see $FOAM_TUTORIALS/postProcessing/sampling/probeLocations/probesDict.

kid August 30, 2011 07:11

Thanks
 
Hello,
Will try it soon.

Cheers,
CFDkid


All times are GMT -4. The time now is 11:41.