|
[Sponsors] |
June 25, 2015, 04:22 |
Convert VTK Multiblock to VTK?
|
#1 |
Member
William Tougeron
Join Date: Jan 2011
Location: Czech Republic
Posts: 70
Rep Power: 15 |
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 |
|
June 25, 2015, 09:53 |
|
#2 |
Member
William Tougeron
Join Date: Jan 2011
Location: Czech Republic
Posts: 70
Rep Power: 15 |
The solution:
Filters > Alphabetical > Merge Blocks Best regards, William |
|
June 25, 2015, 10:48 |
|
#3 |
Member
William Tougeron
Join Date: Jan 2011
Location: Czech Republic
Posts: 70
Rep Power: 15 |
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) |
|
Tags |
paraview, vtk |
|
|
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 |