[Paraview] First trial file does not work-help!

Moreland, Kenneth kmorel at sandia.gov
Tue Feb 7 13:16:45 EST 2017


I'm not sure I understand what you are asking. I think you want to show the two blocks with different representations (outline and surface, respectively). If you take a look at the Multi-block Inspector (View → Multi-block Inspector) you can find controls to add different display properties to different blocks. Unfortunately, you are not able to set different representations on different blocks. Here is a way around the problem though:

1. Add the Outline filter to the reader (Filters → Alphabetical → Outline). You will now see geometry, gauss points, and outlines around both.
2. Select the reader in the pipeline browser, go to the Multi-block Inspector, right click on the block for geometry, and select Hide Block.
3. Select the Outline filter in the pipeline browser, go to the Multi-block Inspector, right click on the block for gauss points, and select Hide Block.

-Ken

-----Original Message-----
From: Emrah Ersan Erdogan [mailto:emrahersanerdogan at gmail.com] 
Sent: Friday, February 3, 2017 3:02 PM
To: Moreland, Kenneth <kmorel at sandia.gov>
Cc: paraview at paraview.org
Subject: [EXTERNAL] Re: [Paraview] First trial file does not work-help!

Thanks, that works very well. Since I just learn at the moment I prefer to work on text editor. I guess when I integrate it to my FE solver in c++, it will be ok from now on.

The only thing is that I think it is not possible to make one show the outline (geometry) and the other gaussian points at the same time in paraview.

Do you know any way to do it? Because otherwise I will be forced to work on separate files unfortunately.

Best

Ersan



> On 3 Feb 2017, at 18:57, Moreland, Kenneth <kmorel at sandia.gov> wrote:
> 
> 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" <emrahersanerdogan at gmail.com> 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 <kmorel at sandia.gov> 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" <paraview-bounces at paraview.org on behalf of emrahersanerdogan at gmail.com> 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
>> 
>> 
> 
> 
> 



More information about the ParaView mailing list