Trust me, you are not the first person to be burned by smart quotes. (Viva la
vim?)
I suggest putting each piece in its own vtu file and then create a vtm file
that points to the two of them. Here is a simple example of the contents of a
vtm file:
<VTKFile type="vtkMultiBlockDataSet" version="1.0" byte_order="LittleEndian"
header_type="UInt64">
<vtkMultiBlockDataSet>
<DataSet index="0" file="test/test_0_0.vtu">
</DataSet>
<DataSet index="1" file="test/test_1_0.vtu">
</DataSet>
</vtkMultiBlockDataSet>
</VTKFile>
-Ken
On 2/3/17, 6:37 AM, "Emrah Ersan Erdogan" <[email protected]> wrote:
You are a life-saver, literally. That would not have occurred to me for a
long time believe me.
As a final step, in the first piece I want to create only the geometry and
in the second piece some points (these are gauss points actually) and with some
data.
The problem is, paraview does not see “strain” when it is defined as given
below. However, if I swap the point dataset to the first piece it works: on the
wrong points of course.
And second, it is apparently not possible to show the geometry and point
values at the same time. Do you think I need to define two separate files and
"light them up" separately on main paraview screen?
Thank you a lot again. I think this will conclude my problem entirely.
Ersan
<?xml version="1.0"?>
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
<UnstructuredGrid>
<Piece NumberOfPoints="4" NumberOfCells="1">
<Points>
<DataArray type="Float64" NumberOfComponents="3" format="ascii">
0.00 0.00 0.00 1.00 0.00 0.00 1.00 1.00 0.00 0.00 1.00 0.00
</DataArray>
</Points>
<Cells>
<DataArray type="Int64" Name="connectivity" format="ascii">
0 1 2 3
</DataArray>
<DataArray type="Int64" Name="offsets" format="ascii">
4
</DataArray>
<DataArray type="UInt8" Name="types" format="ascii">
9
</DataArray>
</Cells>
<PointData Tensors="strain">
</PointData>
<CellData>
</CellData>
</Piece>
<Piece NumberOfPoints="4" NumberOfCells="0">
<Points>
<DataArray type="Float64" NumberOfComponents="3" format="ascii">
0.25 0.25 0.00 0.75 0.25 0.00 0.75 0.75 0.00 0.25 0.75 0.00
</DataArray>
</Points>
<Cells>
<DataArray type="Int64" Name="connectivity" format="ascii">
</DataArray>
<DataArray type="Int64" Name="offsets" format="ascii">
</DataArray>
<DataArray type="UInt8" Name="types" format="ascii">
</DataArray>
</Cells>
<PointData Tensors="strain">
<DataArray type="Float64" Name="strain" NumberOfComponents="9"
format="ascii">
2.0 3.0 0.0
3.0 2.0 0.0
0.0 0.0 0.0
1.0 2.0 0.0
2.0 1.0 0.0
0.0 0.0 0.0
5.0 4.0 0.0
4.0 1.0 0.0
0.0 0.0 0.0
3.0 6.0 0.0
6.0 7.0 0.0
0.0 0.0 0.0
</DataArray>
</PointData>
<CellData>
</CellData>
</Piece>
</UnstructuredGrid>
</VTKFile>
> On 3 Feb 2017, at 01:24, Moreland, Kenneth <[email protected]> wrote:
>
> Did you type this in a text editor? The first thing I notice is that many
of the quotes are the fancy open/close characters. Many text editors use a
“smart quotes” feature that replaces the straight quote to a bent open or
closed quote. The VTK reader only accepts the straight quotes (ASCII character
34).
>
> -Ken
>
>
> On 2/2/17, 5:58 PM, "ParaView on behalf of Emrah Ersan Erdogan"
<[email protected] on behalf of [email protected]> wrote:
>
> Hi,
>
> I am a new user of paraview and try to understand .vtu file format.
> Just as a simple test I wanted to create two pieces one solely defines
4 points and a cell with no attributes, hence forming geometry only. And the
second piece defines only points with point attributes.
>
> However, it seems I am doing something(s) wrong since paraview reader
does not recognize the information. It would be great if somebody tells me what
I am doing wrong. Afterwards I can take it off by myself I guess.
>
> Thanks a bunch!
>
> Ersan
>
>
> <?xml version="1.0"?>
> <VTKFile type="UnstructuredGrid" version="0.1"
byte_order="LittleEndian”>
> <UnstructuredGrid>
> <Piece NumberOfPoints=“4” NumberOfCells=“1”>
> <Points>
> <DataArray type=“Float64” NumberOfComponents=“3”
format=“ascii”>
> 0.00 0.00 0.00 1.00 0.00 0.00 1.00 1.00 0.00 0.00 1.00
0.00
> </DataArray>
> </Points>
> <Cells>
> <DataArray type=“Int64” Name=“connectivity” format=“ascii”>
> 0 1 2 3
> </DataArray>
> <DataArray type=“Int64” Name=“offsets” format=“ascii”>
> 4
> </DataArray>
> <DataArray type=“UInt8” Name=“types” format=“ascii”>
> 9
> </DataArray>
> </Cells>
> <PointData>
> </PointData>
> <CellData>
> </CellData>
> </Piece>
> <Piece NumberOfPoints=“4” NumberOfCells=“0”>
> <Points>
> <DataArray type=“Float64” NumberOfComponents=“3”
format=“ascii”>
> 0.25 0.25 0.00 0.75 0.25 0.00 0.75 0.75 0.00 0.25 0.75
0.00
> </DataArray>
> </Points>
> <Cells>
> </Cells>
> <PointData Scalars="strain">
> <DataArray type=“Float64” Name=“strain”
NumberOfComponents=“1” format=“ascii”>
> 2.0 2.0 3.0 1.0
> </DataArray>
> </PointData>
> <CellData>
> </CellData>
> </Piece>
> </UnstructuredGrid>
> </VTKFile>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Search the list archives at: http://markmail.org/search/?q=ParaView
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview