[Paraview] best strategy for multi-block data?

2011-07-25 Thread j s
Hi, I am currently using the multiblock dataset (vtm file) format to have multiple unstructured regions (vtu files). Not all of the fields are available in all of the regions. When I try to use a calculator to calculate a field, I am getting errors for fields which don't exist in each region. S

Re: [Paraview] best strategy for multi-block data?

2011-07-25 Thread Andy Bauer
I think the best way to proceed would be to use the extract blocks filter to extract all of the blocks that have the desired fields for your calculator. You may want to group the unstructured grids with the same field data into a vtkMultiPieceDataSet to make it easier to extract the blocks that you

Re: [Paraview] best strategy for multi-block data?

2011-07-26 Thread j s
Thank you that worked. Is there a document available for the multi-block format? I remember when I implemented in this on the past, I relied exclusively on email correspondence in order to get my output writer correct. Thanks On Mon, Jul 25, 2011 at 1:15 PM, Andy Bauer wrote: > I think the

Re: [Paraview] best strategy for multi-block data?

2011-07-26 Thread Andy Bauer
It may be easiest just to link to the VTK libraries and create vtkDataObjects and then use the vtkXMLMultiBlockDataWriter. Andy On Tue, Jul 26, 2011 at 11:21 AM, j s wrote: > Thank you that worked. Is there a document available for the > multi-block format? I remember when I implemented in th

Re: [Paraview] best strategy for multi-block data?

2011-07-27 Thread j s
My data writer is already written. It writes binary data to an unstructured mesh file using zlib compression and base64 encoded data. It would not be very easy to rewrite it using the vtk libraries. My writers would be a lot easier to maintain with documentation of the file format. Regards, Ju