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

[General] Merge data from multiple slices

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 10, 2017, 17:10
Default Merge data from multiple slices
  #1
New Member
 
leotsixri's Avatar
 
Leonidas
Join Date: Oct 2016
Location: UK
Posts: 5
Rep Power: 9
leotsixri is on a distinguished road
Hi,

I am trying to merge cell/point data from multiple slices in ParaView so as to find the average values of each cell/point (over the same geometry and for a particular timestep).

Any ideas?

Many thanks, Leonidas
leotsixri is offline   Reply With Quote

Old   December 21, 2017, 09:01
Default
  #2
Senior Member
 
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 12
Flowkersma is on a distinguished road
Hi Leonidas,

if the slices have exactly same mesh then you can just use the "Temporal Statistics" filter. Firstly, you have to load all the slices so that ParaView recognizes that the files are indeed different time steps. You can either load the files from the GUI by giving them a name with index such as filename001.vtk, filename002.vtk,filename003.vtk, etc. Or you can load just one file from the GUI and use Python to load all the files:

Code:
r = GetActiveSource()
r.FileNames = ['filename001.vtk, 'filename002.vtk','filename003.vtk']
See also How can I use python script to generate animation from 2000 frames of vtk datasets

Regards,
Mikko
Flowkersma is offline   Reply With Quote

Reply

Tags
data, merge, openfoam, paraview, slice


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 21:00
Merge multiple regions to use simpleFoam arnaud6 OpenFOAM Pre-Processing 6 June 24, 2015 02:48
[OpenFOAM] Script go through range of slices - export data hxaxtma ParaView 1 February 16, 2014 14:44
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51
[OpenFOAM] Multiple independant data sets in paraFoam christian ParaView 1 August 27, 2007 12:30


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