It may be easiest just to link to the VTK libraries and create vtkDataObjects and then use the vtkXMLMultiBlockDataWriter.<br><br>Andy<br><br><div class="gmail_quote">On Tue, Jul 26, 2011 at 11:21 AM, j s <span dir="ltr">&lt;<a href="mailto:j.s4403@gmail.com">j.s4403@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thank you that worked.  Is there a document available for the<br>
multi-block format?  I remember when I implemented in this on the<br>
past, I relied exclusively on email correspondence in order to get my<br>
output writer correct.<br>
<br>
Thanks<br>
<br>
<br>
<br>
<br>
On Mon, Jul 25, 2011 at 1:15 PM, Andy Bauer &lt;<a href="mailto:andy.bauer@kitware.com">andy.bauer@kitware.com</a>&gt; wrote:<br>
&gt; I think the best way to proceed would be to use the extract blocks filter to<br>
&gt; extract all of the blocks that have the desired fields for your calculator.<br>
&gt; You may want to group the unstructured grids with the same field data into a<br>
&gt; vtkMultiPieceDataSet to make it easier to extract the blocks that you want.<br>
&gt;<br>
&gt; Andy<br>
&gt;<br>
&gt; On Mon, Jul 25, 2011 at 2:10 PM, j s &lt;<a href="mailto:j.s4403@gmail.com">j.s4403@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I am currently using the multiblock dataset (vtm file) format to have<br>
&gt;&gt; multiple unstructured regions (vtu files).  Not all of the fields are<br>
&gt;&gt; available in all of the regions.  When I try to use a calculator to<br>
&gt;&gt; calculate a field, I am getting errors for fields which don&#39;t exist in<br>
&gt;&gt; each region.<br>
&gt;&gt;<br>
&gt;&gt; So when I try to calculate E = Electric_Field_x * iHat +<br>
&gt;&gt; Electric_Field_y *jHat, it complains about missing Acceptors.<br>
&gt;&gt;<br>
&gt;&gt; What is the best possible way to avoid these problems?  Is there a<br>
&gt;&gt; preferred file format?  The whole reason I selected the multiblock<br>
&gt;&gt; format, was so that I don&#39;t have to store all the fields on all<br>
&gt;&gt; regions.<br>
&gt;&gt;<br>
&gt;&gt; This is paraview 3.3. for Ubuntu Linux<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt;&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br>