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

[General] Convert VTK Multiblock to VTK?

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By taalf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 25, 2015, 04:22
Question Convert VTK Multiblock to VTK?
  #1
Member
 
William Tougeron
Join Date: Jan 2011
Location: Czech Republic
Posts: 70
Rep Power: 15
taalf is on a distinguished road
Hi all,

I would like to export data imported from the Ensight Gold format into VTK (.vtk).

When I go to File > Save Data, Paraview proposes only to export via the VTK Multiblock format (.vtm).

Unfortunatelly, I need to import the exported data into a program which recognizes only .vtk files.

Any help would be very appreciated.

Best regards,

William
taalf is offline   Reply With Quote

Old   June 25, 2015, 09:53
Default
  #2
Member
 
William Tougeron
Join Date: Jan 2011
Location: Czech Republic
Posts: 70
Rep Power: 15
taalf is on a distinguished road
The solution:

Filters > Alphabetical > Merge Blocks



Best regards,

William
arvindpj, ashish.svm and ginop like this.
taalf is offline   Reply With Quote

Old   June 25, 2015, 10:48
Default
  #3
Member
 
William Tougeron
Join Date: Jan 2011
Location: Czech Republic
Posts: 70
Rep Power: 15
taalf is on a distinguished road
The "cherry on the cake" would be to export each blocks in a script without losing their name.

For the moment, I have the following code. I would like to adapt the output file name (here 'file-1.vtk') to the block name as visible in Paraview.

# Import the case
case = EnSightReader(CaseFileName=
'/path/to/file.case')

# Extract the first block
extractBlock1 = ExtractBlock(Input=case)
extractBlock1.BlockIndices = [1]

# Get the name of this block
# ????

# Make it exportable in VTK format
mergeBlocks1 = MergeBlocks(Input=extractBlock1)

# Export it
SaveData('/path/to/file-1.vtk', proxy=mergeBlocks1)
taalf is offline   Reply With Quote

Reply

Tags
paraview, vtk


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] Creating VTK image compatible to Paraview Visualizer het ParaView 0 January 7, 2016 09:20
convert a structured multiblock grid to an one unstructured: modification of cells Mirage ANSYS 0 July 18, 2012 10:14
[ICEM] convert a structured multiblock grid to an one unstructured Mirage ANSYS Meshing & Geometry 4 July 11, 2012 11:36
convert vtk to tecplot dshawul Main CFD Forum 1 November 14, 2011 16:36


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