I tried to wrap the Visit Tecplot binary reader into a FileSeriesReader to make it time-aware (see attached files).

I succeeded in getting time information and data properties (I got one or the other, not both...). But when I hit the "Apply changes" button, I got the following error, which seems linked to a known bug : http://vtk.org/Bug/view.php?id=13343 :

-----------------
ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx, line 816 vtkPVPostFilterExecutive (0x3d34dd0): Input for connection index 0 on input port index 0 for algorithm vtkPVPostFilter(0x3d91ab0) is of type vtkDataObject, but a vtkPolyData is required.


ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx, line 816 vtkPVPostFilterExecutive (0x3d34dd0): Input for connection index 0 on input port index 0 for algorithm vtkPVPostFilter(0x3d91ab0) is of type vtkDataObject, but a vtkPolyData is required.
-----------------

(I am working with Paraview 3.98 Linux x86_64)

So is this really an incompatibility between the binary reader and the FileSeriesReader, or am I doing something wrong ?


Regards,


Jerome










Le 04/02/2013 17:50, Jérôme CARDOLACCIA a écrit :
Hi,

I am trying to visualize the results of a time-varying simulation. These are contained in separate Tecplot binary files. The Tecplot ASCII reader imports my temporal datasets flawlessly, however the binary reader does not seem so accomodating... So I was (naively) wondering whether there is some easy fix to have this binary reader handle a multi-time set of files ?

Regards,

Jerome


_______________________________________________
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview



--
Jérôme CARDOLACCIA
CEA Saclay
DM2S/SEMT/DYN
01.69.08.15.77

<ParaViewReaders>
    <Reader name="VisItTecplotBinaryReader2tmp" extensions="plt" file_description="My Tec Files">
    </Reader>
</ParaViewReaders>
<ServerManagerConfiguration>

    <ProxyGroup name="internal_sources">
 
         <SourceProxy name="VisItTecplotBinaryReader2" class="vtkVisItTecplotBinaryReader" label="VisitTec">
              <Documentation
                long_help="Reads a subset of the Tecplot binary file format">
                Note this reader is automatically generated from wrapping a third party reader. For more information on the reader see https://wci.llnl.gov/codes/visit
                The default file extension is .plt
              </Documentation>
              <StringVectorProperty name="FileName"
                                    animateable="0"
                                    command="SetFileName"
                                    number_of_elements="1">
                  <FileListDomain name="files"/>
                  <Documentation>
                      blablabla
                  </Documentation>
              </StringVectorProperty>
              <Hints>
                  <ReaderFactory extensions="plt"
                                 file_description="My Tecplot Binary Files (VisIt)" />
              </Hints>
              
   
              <StringVectorProperty name="FileName"
                                    command="SetFileName"
                                    number_of_elements="1"
                                    panel_visibility="never">
                  <FileListDomain name="files"/>
                  <Documentation>
                  This property specifies the file name for the reader
                  </Documentation>
              </StringVectorProperty>

              <StringVectorProperty name="MeshInfo"
                                    information_only="1">
                  <ArraySelectionInformationHelper attribute_name="Mesh"/>
              </StringVectorProperty>

              <StringVectorProperty name="MeshStatus"
                                    label="Meshes"
                                    command="SetMeshArrayStatus"
                                    number_of_elements="2"
                                    repeat_command="1"
                                    number_of_elements_per_command="2"
                                    element_types="2 0"
                                    information_property="MeshInfo">
                  <ArraySelectionDomain name="array_list">
                      <RequiredProperties>
                          <Property name="MeshInfo" function="ArrayList"/>
                      </RequiredProperties>
                  </ArraySelectionDomain>
                  <Documentation>
                      Select the meshes to be loaded from the dataset, if any.
                  </Documentation>
              </StringVectorProperty>

              <StringVectorProperty name="MaterialInfo"
                                    information_only="1">
                  <ArraySelectionInformationHelper attribute_name="Material"/>
              </StringVectorProperty>

              <StringVectorProperty name="MaterialStatus"
                                    label="Materials"
                                    command="SetMaterialArrayStatus"
                                    number_of_elements="2"
                                    repeat_command="1"
                                    number_of_elements_per_command="2"
                                    element_types="2 0"
                                    information_property="MaterialInfo">
                  <ArraySelectionDomain name="array_list">
                      <RequiredProperties>
                        <Property name="MaterialInfo" function="ArrayList"/>
                      </RequiredProperties>
                  </ArraySelectionDomain>
                  <Documentation>
                    Select the materials to be loaded from the dataset, if any.
                  </Documentation>
              </StringVectorProperty>

              <StringVectorProperty name="CellArrayInfo"
                                    information_only="1">
                  <ArraySelectionInformationHelper attribute_name="Cell"/>
              </StringVectorProperty>

              <StringVectorProperty name="CellArrayStatus"
                                    command="SetCellArrayStatus"
                                    number_of_elements="0"
                                    repeat_command="1"
                                    number_of_elements_per_command="2"
                                    element_types="2 0"
                                    information_property="CellArrayInfo"
                                    label="Cell Arrays">
                  <ArraySelectionDomain name="array_list">
                      <RequiredProperties>
                        <Property name="CellArrayInfo" function="ArrayList"/>
                      </RequiredProperties>
                  </ArraySelectionDomain>
                  <Documentation>
                    This property lists which cell-centered arrays to read.
                  </Documentation>
              </StringVectorProperty>

              <StringVectorProperty name="PointArrayInfo"
                                    information_only="1">
                  <ArraySelectionInformationHelper attribute_name="Point"/>
              </StringVectorProperty>

              <StringVectorProperty name="PointArrayStatus"
                                    command="SetPointArrayStatus"
                                    number_of_elements="0"
                                    repeat_command="1"
                                    number_of_elements_per_command="2"
                                    element_types="2 0"
                                    information_property="PointArrayInfo"
                                    label="Point Arrays">
                    <ArraySelectionDomain name="array_list">
                        <RequiredProperties>
                          <Property name="PointArrayInfo" function="ArrayList"/>
                        </RequiredProperties>
                    </ArraySelectionDomain>
                    <Documentation>
                      This property lists which point-centered arrays to read.
                    </Documentation>
              </StringVectorProperty>

              <!-- The following two properties magically send time information -->
              <!-- to the animation panel. -->
              <DoubleVectorProperty name="TimestepValues"
                                    repeatable="1"
                                    information_only="1">
                    <TimeStepsInformationHelper/>
              </DoubleVectorProperty>
              <DoubleVectorProperty name="TimeRange" information_only="1">
                    <TimeRangeInformationHelper/>
              </DoubleVectorProperty>
                
         </SourceProxy>
  
    </ProxyGroup>

  
    <ProxyGroup name="sources">
 
        <SourceProxy name="VisItTecplotBinaryReader2tmp"
                      class="vtkFileSeriesReader"
                      si_class="vtkSIFileSeriesReaderProxy"
                      label="VisitTecTmp"
                      file_name_method="SetFileName">
            <Documentation>
                OSEF vraiment
            </Documentation>
    
            <SubProxy>
            <Proxy name="Reader"
                  proxygroup="internal_sources"
                  proxyname="VisItTecplotBinaryReader2"></Proxy>
                  <ExposedProperties>
                    <Property name="PointArrayStatus" />
                    <Property name="PointArrayInfo" />
                    <Property name="CellArrayStatus" />
                    <Property name="CellArrayInfo" />
                    <Property name="MaterialStatus" />
                    <Property name="MaterialInfo" />
                    <Property name="MeshStatus" />
                    <Property name="MeshInfo" />
                    <Property name="TimeRange" />
                    <Property name="TimestepValues" />
                  </ExposedProperties>
            </SubProxy>
    
            <StringVectorProperty name="FileNames"
                                  clean_command="RemoveAllFileNames"
                                  command="AddFileName"
                                  animateable="0"
                                  number_of_elements="0" 
                                  repeat_command="1">
                <FileListDomain name="files" />
                <Documentation>
                    The file or list of files to be read by the reader.
                    A list of files will be sequenced over time.
                </Documentation>
            </StringVectorProperty>
    
            <DoubleVectorProperty name="TimestepValues"
                                  repeatable="1"
                                  information_only="1">
                <TimeStepsInformationHelper />
                <Documentation>
                    Available timestep values.
                </Documentation>
            </DoubleVectorProperty>
            
                <Hints>
                  <ReaderFactory extensions="plt"
                                  file_description="My Tecplot Binary Files (VisIt)" />
                </Hints>
                
        </SourceProxy>

    </ProxyGroup>

</ServerManagerConfiguration>

_______________________________________________
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to