CFD Online Logo CFD Online URL
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Obtain Scalar field data in a dat file.

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   March 25, 2015, 05:30
Default Obtain Scalar field data in a dat file.
Ashish Vinayak
Join Date: Mar 2015
Location: Wuppertal, Germany
Posts: 50
Rep Power: 10
ashish.vinayak is on a distinguished road
I'm trying to find a way to get all the plot data from the plot over line function into a .dat file.
Here's what I've done in detail.

At a location in the pipe, I have used the plot over line function to get a plot of pressure vs pipe length. I've attached a screenshot of the line. I would like to get the values of pressure on this line in a .dat file or any file which can be manipulated. Is there a way to this? I've been looking all over!

Thank you
Screenshot from 2015-03-25 11:27:33.jpg
ashish.vinayak is offline   Reply With Quote

Old   March 25, 2015, 07:52
Join Date: Jun 2011
Posts: 53
Rep Power: 14
blacksquirrel is on a distinguished road
Hi Ashish,

There are different ways to obtain your .dat file.
E.g. in paraview: You make your plot over line. Now take a look in the menu File/Save Data (or Ctrl S) that will save you selected data (the line) in a .csv file., which you can open with a text-editor or spreadsheet.
Note, this will probably give you interpolated data.

Another possibility would be the sample utility from OpenFoam: ( Here you can define your line as well, and write the desired fields into a dat file. It is a good tool, so you should take a look into this. It allows especially to get the "real" cell values and not interpolated data.

blacksquirrel is offline   Reply With Quote


cfd, data, openfoam, plot, pressure

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 16:02
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 12:41
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 13:59
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08

All times are GMT -4. The time now is 00:09.