CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Exporting velocity fileds data with node number and position

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes
  • 4 Post By Joshua14
  • 1 Post By Joshua14
  • 1 Post By Joshua14
  • 1 Post By Joshua14

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2017, 14:00
Default Exporting velocity fileds data with node number and position
  #1
Member
 
Bashar
Join Date: Jul 2015
Posts: 74
Rep Power: 11
Bashar is on a distinguished road
Hi,

I have a question regarding the data export in para-view. I want to export my simulation velocity fields data for a matlab code that compute coherent structures of the turbulent flow. The code needs an input files that contains information regarding node location and respective x and y velocities at required time steps. As shown in the picture, which is taken from the web site :
https://auwaisblog.wordpress.com/author/auwaisblog/

How I can do that in paraview?
Regards,
Bashar

Bashar is offline   Reply With Quote

Old   April 4, 2017, 10:40
Default
  #2
Member
 
Joshua
Join Date: Dec 2016
Location: St. Louis, Missouri
Posts: 91
Rep Power: 10
Joshua14 is on a distinguished road
Bashar,

In paraview you can use a clip or slice to trim down your domain to the desired size you want for exporting. Then go to File -> Save Data. Paraview will then let you save the data you have selected as a *.csv. This will give you the x, y, and z components for location and velocity as well as any other fields.

Joshua
Joshua14 is offline   Reply With Quote

Old   April 4, 2017, 10:44
Default
  #3
Member
 
Bashar
Join Date: Jul 2015
Posts: 74
Rep Power: 11
Bashar is on a distinguished road
Quote:
Originally Posted by Joshua14 View Post
Bashar,



In paraview you can use a clip or slice to trim down your domain to the desired size you want for exporting. Then go to File -> Save Data. Paraview will then let you save the data you have selected as a *.csv. This will give you the x, y, and z components for location and velocity as well as any other fields.



Joshua


Thanks a lot for your help. I need also the node number , is there any way to get that also?



Sent from my iPhone using CFD Online Forum mobile app
Bashar is offline   Reply With Quote

Old   April 4, 2017, 10:53
Default
  #4
Member
 
Joshua
Join Date: Dec 2016
Location: St. Louis, Missouri
Posts: 91
Rep Power: 10
Joshua14 is on a distinguished road
Bashar,

It appears another post covers how to do this a few different ways at the following link.

How to display cell number in paraView

The steps I used to do this are as follows.
1. Load case into Paraview and make any cuts, clips, etc...
2. Click the split screen icon and select "spreadsheet view" for the new view

This should then display Point ID, Points (location) and the other fields.

Joshua
Bashar likes this.
Joshua14 is offline   Reply With Quote

Old   April 4, 2017, 11:15
Default
  #5
Member
 
Bashar
Join Date: Jul 2015
Posts: 74
Rep Power: 11
Bashar is on a distinguished road
Quote:
Originally Posted by Joshua14 View Post
Bashar,



It appears another post covers how to do this a few different ways at the following link.



How to display cell number in paraView



The steps I used to do this are as follows.

1. Load case into Paraview and make any cuts, clips, etc...

2. Click the split screen icon and select "spreadsheet view" for the new view



This should then display Point ID, Points (location) and the other fields.



Joshua


Thank you very much Joshua. I will try this today .
Bashar


Sent from my iPhone using CFD Online Forum mobile app
Bashar is offline   Reply With Quote

Old   April 4, 2017, 14:34
Default
  #6
Member
 
Bashar
Join Date: Jul 2015
Posts: 74
Rep Power: 11
Bashar is on a distinguished road
Quote:
Originally Posted by Joshua14 View Post
Bashar,

It appears another post covers how to do this a few different ways at the following link.

How to display cell number in paraView

The steps I used to do this are as follows.
1. Load case into Paraview and make any cuts, clips, etc...
2. Click the split screen icon and select "spreadsheet view" for the new view

This should then display Point ID, Points (location) and the other fields.

Joshua

Hi, Joshua,

Sorry to bother you again. I attached a pictures for what I got. First the spreadsheet gave me the cell ID but with out the coordinate, may be I am doing something wrong?
Also , when I saved the data as *.csv it only give me part of the data not like the informations contained inside the spreadsheet view!
Thank you.
Bashar
Attached Images
File Type: jpg Screenshot from 2017-04-04 13-29-03.jpg (98.4 KB, 82 views)
Bashar is offline   Reply With Quote

Old   April 4, 2017, 14:37
Default
  #7
Member
 
Bashar
Join Date: Jul 2015
Posts: 74
Rep Power: 11
Bashar is on a distinguished road
and here is the *.csv file . Also, just additional information, I made a slice inside my domain, and then open another view with spreadsheet.
Attached Files
File Type: xlsx velocity0.xlsx (176.9 KB, 22 views)
Bashar is offline   Reply With Quote

Old   April 4, 2017, 14:56
Default
  #8
Member
 
Joshua
Join Date: Dec 2016
Location: St. Louis, Missouri
Posts: 91
Rep Power: 10
Joshua14 is on a distinguished road
Bashar,

First change your attribute from Cell Data to Point Data. Point Data should give you the additional fields.

As far as exporting the data, it appears that save data only saves the geometry and not the spread sheet. At least that was how it is working for me.

I am using Paraview 5.2 and there is a button at the top of the spread sheet that says "export spreadsheet." I use this to export the data. However, after exporting Paraview moves my columns around mid column. II'm not really sure why Paraview is changing these numbers for me. If you know a work around please share.

Hope this helps,
Joshua
Bashar likes this.
Joshua14 is offline   Reply With Quote

Old   April 4, 2017, 15:02
Default
  #9
Member
 
Bashar
Join Date: Jul 2015
Posts: 74
Rep Power: 11
Bashar is on a distinguished road
Quote:
Originally Posted by Joshua14 View Post
Bashar,

First change your attribute from Cell Data to Point Data. Point Data should give you the additional fields.

As far as exporting the data, it appears that save data only saves the geometry and not the spread sheet. At least that was how it is working for me.

I am using Paraview 5.2 and there is a button at the top of the spread sheet that says "export spreadsheet." I use this to export the data. However, after exporting Paraview moves my columns around mid column. II'm not really sure why Paraview is changing these numbers for me. If you know a work around please share.

Hope this helps,
Joshua


Thank you again ! I will try this method.
Regards,
Bashar


Sent from my iPhone using CFD Online Forum mobile app
Bashar is offline   Reply With Quote

Old   April 4, 2017, 17:32
Default
  #10
Member
 
Bashar
Join Date: Jul 2015
Posts: 74
Rep Power: 11
Bashar is on a distinguished road
Quote:
Originally Posted by Joshua14 View Post
Bashar,

First change your attribute from Cell Data to Point Data. Point Data should give you the additional fields.

As far as exporting the data, it appears that save data only saves the geometry and not the spread sheet. At least that was how it is working for me.

I am using Paraview 5.2 and there is a button at the top of the spread sheet that says "export spreadsheet." I use this to export the data. However, after exporting Paraview moves my columns around mid column. II'm not really sure why Paraview is changing these numbers for me. If you know a work around please share.

Hope this helps,
Joshua
Joshua , thanks again . I managed to do the export of the whole spreadsheet using :File>export scene..
However, I couldn't get the coordinate (x,y,z) with the points and the velocity filed. I will look for this in this forum.

Many thanks
Bashar
Bashar is offline   Reply With Quote

Old   April 4, 2017, 17:35
Default
  #11
Member
 
Joshua
Join Date: Dec 2016
Location: St. Louis, Missouri
Posts: 91
Rep Power: 10
Joshua14 is on a distinguished road
Bashar,

I am sorry I couldn't have been of more help. When you figure it out can you please share what the solution was or where you found it?

Joshua
Bashar likes this.
Joshua14 is offline   Reply With Quote

Reply


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
[General] Extracting ParaView Data into Python Arrays Jeffzda ParaView 30 November 6, 2023 22:00
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 7 December 15, 2020 14:06
Obtaining the Nearest Node number to point Krzychu (Chris) CFX 7 December 14, 2014 21:03
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 02:29
Combustion Convergence problems Art Stretton Phoenics 5 April 2, 2002 06:59


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