|
[Sponsors] |
Exporting velocity fileds data with node number and position |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 23, 2017, 14:00 |
Exporting velocity fileds data with node number and position
|
#1 |
Member
Bashar
Join Date: Jul 2015
Posts: 74
Rep Power: 11 |
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 |
|
April 4, 2017, 10:40 |
|
#2 |
Member
Joshua
Join Date: Dec 2016
Location: St. Louis, Missouri
Posts: 91
Rep Power: 10 |
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 |
|
April 4, 2017, 10:44 |
|
#3 | |
Member
Bashar
Join Date: Jul 2015
Posts: 74
Rep Power: 11 |
Quote:
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 |
||
April 4, 2017, 10:53 |
|
#4 |
Member
Joshua
Join Date: Dec 2016
Location: St. Louis, Missouri
Posts: 91
Rep Power: 10 |
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 |
|
April 4, 2017, 11:15 |
|
#5 | |
Member
Bashar
Join Date: Jul 2015
Posts: 74
Rep Power: 11 |
Quote:
Thank you very much Joshua. I will try this today . Bashar Sent from my iPhone using CFD Online Forum mobile app |
||
April 4, 2017, 14:34 |
|
#6 | |
Member
Bashar
Join Date: Jul 2015
Posts: 74
Rep Power: 11 |
Quote:
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 |
||
April 4, 2017, 14:37 |
|
#7 |
Member
Bashar
Join Date: Jul 2015
Posts: 74
Rep Power: 11 |
and here is the *.csv file . Also, just additional information, I made a slice inside my domain, and then open another view with spreadsheet.
|
|
April 4, 2017, 14:56 |
|
#8 |
Member
Joshua
Join Date: Dec 2016
Location: St. Louis, Missouri
Posts: 91
Rep Power: 10 |
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 |
|
April 4, 2017, 15:02 |
|
#9 | |
Member
Bashar
Join Date: Jul 2015
Posts: 74
Rep Power: 11 |
Quote:
Thank you again ! I will try this method. Regards, Bashar Sent from my iPhone using CFD Online Forum mobile app |
||
April 4, 2017, 17:32 |
|
#10 | |
Member
Bashar
Join Date: Jul 2015
Posts: 74
Rep Power: 11 |
Quote:
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 |
||
April 4, 2017, 17:35 |
|
#11 |
Member
Joshua
Join Date: Dec 2016
Location: St. Louis, Missouri
Posts: 91
Rep Power: 10 |
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 |
|
|
|
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 |