CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 25, 2015, 06:30
Default Obtain Scalar field data in a dat file.
  #1
Member
 
Ashish Vinayak
Join Date: Mar 2015
Location: Wuppertal, Germany
Posts: 50
Rep Power: 11
ashish.vinayak is on a distinguished road
Hi,
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, 08:52
Default
  #2
Member
 
Join Date: Jun 2011
Posts: 53
Rep Power: 15
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: (http://www.openfoam.org/docs/user/sample.php). 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.

Regards
Squirrel
blacksquirrel is offline   Reply With Quote

Reply

Tags
cfd, data, openfoam, plot, pressure


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 17:02
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


All times are GMT -4. The time now is 17:23.