<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2800.1126" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=761572918-19022003><FONT face=Arial 
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial size=2>I am attempting to 
write out a .vtu file, and I can't seem to get ParaView to read in the file. I'm 
assuming I'm doing something wrong, so please tell me where the problem 
is.</FONT></SPAN></DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial size=2>The vtk file (which 
works) and the .vtu file (in ascii- which doesn't work) are given below.&nbsp; 
Please tell me where the mistake is.</FONT></SPAN></DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial size=2>I want to eventually 
write binary .pvtu files, but hopefully this will be easy to write assuming I 
can write an ascii .vtu file first.</FONT></SPAN></DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial 
size=2>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial 
size=2>Scott</FONT></SPAN></DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial size=2># vtk DataFile 
Version 2.0</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial size=2>ASCII<BR>DATASET 
UNSTRUCTURED_GRID</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial size=2>POINTS 6 
float<BR>0.000&nbsp;&nbsp; 2.000&nbsp;&nbsp; 0.000<BR>1.000&nbsp;&nbsp; 
2.000&nbsp;&nbsp; 2.000<BR>2.000&nbsp;&nbsp; 2.000&nbsp;&nbsp; 
0.000<BR>0.000&nbsp;&nbsp; 0.000&nbsp;&nbsp; 0.000<BR>1.000&nbsp;&nbsp; 
0.000&nbsp;&nbsp; 2.000<BR>2.000&nbsp;&nbsp; 0.000&nbsp;&nbsp; 
0.000</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial size=2>CELLS 1 7<BR>6 0 1 2 
3 4 5 </FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial size=2>CELL_TYPES 1 
<BR>13</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial size=2>POINT_DATA 
6</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial size=2>FIELD FieldData 
1</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial size=2>stress 1 6 
float<BR>4999.9999 <BR>18749.9999 <BR>37500.0000 <BR>56250.0000 <BR>74999.9999 
<BR>93750.0001 <BR></FONT></SPAN></DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial size=2>The .vtu file looks 
like</FONT></SPAN></DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=761572918-19022003><FONT face=Arial size=2>&lt;VTKFile 
type="UnstructuredGrid" version="0.1" byte_order="LittleEndian"&gt;<BR>&nbsp; 
&lt;UnstructuredGrid&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;Piece NumberOfPoints="6" 
NumberOfCells="1"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;Points&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;DataArray type 
= "float" NumberOfComponents="3" 
format="ascii"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
0.000000 2.000000 0.000000 1.000000 2.000000 2.000000 2.000000 2.000000 0.000000 
0.000000 0.000000 0.000000 1.000000 0.000000 2.000000 2.000000 0.000000 0.000000 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/DataArray&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/Points&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;Cells&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;DataArray 
type="Int32" Name="connectivity" 
format="ascii"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 1 
2 3 4 5 <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/DataArray&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;DataArray 
type="Int32" Name="offsets" 
format="ascii"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/DataArray&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;DataArray 
type="UInt8" Name="types" 
format="ascii"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/DataArray&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/Cells&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;PointData&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;DataArray 
type="float" Name="stress" 
format="ascii"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
5000.000000 18750.000000 37500.000000 56250.000000 75000.000000 93750.000000 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/DataArray&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/PointData&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/Piece&gt;<BR>&nbsp; 
&lt;/UnstructuredGrid&gt;<BR>&lt;/VTKFile&gt;</DIV></FONT></SPAN></BODY></HTML>