Johan,

The procedure will actually only work if you apply the attached patch first and
recompile PV from CVS. (Because in current CVS the Tecplot reader is not called
as a subproxy of vtkFileSeriesReader, but directly.)

Sven



----- Original Message -----
From: Hom Nath Gharti <[email protected]>
To: Johan de Koning <[email protected]>
CC: [email protected]
Sent: 11/11/09 15:46:43
Subject: [Paraview] loading multiple files in one go
> you might try:
> 
> let say you have file names test01.tec, test02.tec ....etc.
> 
> when you open the file in paraview you will see something like:
> 
> test..tec
> 
> just click that (not within the + sign) to load all the files at once.
> Then hit the play button to play animation. You can also look -> View
> -> Animation View for more detail.
> 
> Does this work?
> 
> 
> On Wed, Nov 11, 2009 at 2:22 PM, Johan de Koning
> <[email protected]> wrote:
>> Hi,
>>
>> I have 40 *.tec Tecplot files containing a grid that represents a
>> temperature state that changes over time. I want to visualize the
>> temperature change.
>> How can I load all the files in one go and the make a movie of the
>> temperture change?
>>
>> Thanks,
>>
>> Johan
>> _______________________________________________
>> 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
>>
> _______________________________________________
> 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

diff --git a/Qt/Components/Resources/XML/ParaViewReaders.xml b/Qt/Components/Resources/XML/ParaViewReaders.xml
index 0daaadb..8156d98 100644
--- a/Qt/Components/Resources/XML/ParaViewReaders.xml
+++ b/Qt/Components/Resources/XML/ParaViewReaders.xml
@@ -76,7 +76,7 @@
           extensions="sos SOS"
           file_description="EnSight Master Server Files">
   </Reader>
-  <Reader name="tecplotreader"
+  <Reader name="tecplotseriesreader"
           extensions="tec TEC Tec tp TP"
           file_description="Tecplot Files">
   </Reader>
diff --git a/Servers/ServerManager/Resources/readers.xml b/Servers/ServerManager/Resources/readers.xml
index b21fe22..e250dbb 100644
--- a/Servers/ServerManager/Resources/readers.xml
+++ b/Servers/ServerManager/Resources/readers.xml
@@ -1812,6 +1812,54 @@
    <!-- End ExodusIIReaderCore -->
    </SourceProxy>
 
+   <SourceProxy name="tecplotreader" class="vtkTecplotReader"
+                label="Tecplot Reader">
+     <Documentation
+	short_help="Read files in the Tecplot ASCII file format."
+	long_help="Read files in the Tecplot ASCII file format.">
+       The Tecplot reader extracts multiple zones (blocks) of data from a Tecplot ASCII file, in which a zone is stored in either point packing mode (i.e., tuple-based, with only point data supported) or block packing mode (i.e., component-based, with point data and cell data supported). The output of the reader is a vtkMultiBlockDataset, of which each block is either a vtkStructuredGrid or a vtkUnstructuredGrid. 
+     </Documentation>
+     
+     <StringVectorProperty
+        name="FileName"
+        command="SetFileName"
+        animateable="0"
+        number_of_elements="1">
+       <FileListDomain name="files"/>
+       <Documentation>
+         This property specifies the file name for the Tecplot reader.
+       </Documentation>
+     </StringVectorProperty>
+
+     <StringVectorProperty 
+        name="DataArrayInfo"
+        information_only="1">
+       <ArraySelectionInformationHelper attribute_name="Data"/>
+     </StringVectorProperty>
+
+     <StringVectorProperty
+        name="DataArrayStatus"
+        command="SetDataArrayStatus"
+        number_of_elements="0" 
+        repeat_command="1"
+        number_of_elements_per_command="2"
+        element_types="2 0"
+        information_property="DataArrayInfo"
+        label="Data Arrays">
+       
+       <ArraySelectionDomain name="array_list">
+         <RequiredProperties>
+           <Property name="DataArrayInfo" function="ArrayList"/>
+         </RequiredProperties>
+       </ArraySelectionDomain>
+       
+       <Documentation>
+         This property lists what dataset attribute arrays (point data and cell data) to read.
+       </Documentation>
+     </StringVectorProperty>
+     <!-- End tecplotreader-->
+   </SourceProxy>
+
     <!-- End of "internal_sources" -->
   </ProxyGroup>
 
@@ -2927,54 +2975,6 @@
    <!-- End spcthreader-->
    </SourceProxy>
       
-   <SourceProxy name="tecplotreader" class="vtkTecplotReader"
-                label="Tecplot Reader">
-     <Documentation
-       short_help="Read files in the Tecplot ASCII file format."
-       long_help="Read files in the Tecplot ASCII file format.">
-       The Tecplot reader extracts multiple zones (blocks) of data from a Tecplot ASCII file, in which a zone is stored in either point packing mode (i.e., tuple-based, with only point data supported) or block packing mode (i.e., component-based, with point data and cell data supported). The output of the reader is a vtkMultiBlockDataset, of which each block is either a vtkStructuredGrid or a vtkUnstructuredGrid. 
-     </Documentation>
-      
-     <StringVectorProperty
-        name="FileName"
-        command="SetFileName"
-        animateable="0"
-        number_of_elements="1">
-        <FileListDomain name="files"/>
-        <Documentation>
-          This property specifies the file name for the Tecplot reader.
-        </Documentation>
-     </StringVectorProperty>
-
-     <StringVectorProperty 
-        name="DataArrayInfo"
-        information_only="1">
-        <ArraySelectionInformationHelper attribute_name="Data"/>
-     </StringVectorProperty>
-
-     <StringVectorProperty
-        name="DataArrayStatus"
-        command="SetDataArrayStatus"
-        number_of_elements="0" 
-        repeat_command="1"
-        number_of_elements_per_command="2"
-        element_types="2 0"
-        information_property="DataArrayInfo"
-        label="Data Arrays">
-      
-       <ArraySelectionDomain name="array_list">
-          <RequiredProperties>
-             <Property name="DataArrayInfo" function="ArrayList"/>
-          </RequiredProperties>
-       </ArraySelectionDomain>
-       
-       <Documentation>
-         This property lists what dataset attribute arrays (point data and cell data) to read.
-       </Documentation>
-     </StringVectorProperty>
-   <!-- End tecplotreader-->
-   </SourceProxy>
-
   <FileSeriesReaderProxy name="SPCTHRestartReader"
                          class="vtkFileSeriesReader"
                          label="Restarted Sim Spy Plot Reader"
@@ -5239,6 +5239,60 @@
       <!-- End of CSVReader -->
    </FileSeriesReaderProxy>
 
+   <FileSeriesReaderProxy name="tecplotseriesreader"
+                          class="vtkFileSeriesReader"
+                          label="Tecplot Reader"
+                          file_name_method="SetFileName">
+     <Documentation
+       short_help="Read files in the Tecplot ASCII file format."
+       long_help="Read files in the Tecplot ASCII file format.">
+       The Tecplot reader extracts multiple zones (blocks) of data from a Tecplot ASCII file, in which a zone is stored in either point packing mode (i.e., tuple-based, with only point data supported) or block packing mode (i.e., component-based, with point data and cell data supported). The output of the reader is a vtkMultiBlockDataset, of which each block is either a vtkStructuredGrid or a vtkUnstructuredGrid. This supports reading a file series.
+     </Documentation>
+
+     <SubProxy>
+       <Proxy name="Reader"
+         proxygroup="internal_sources" proxyname="tecplotreader">
+       </Proxy>
+       <ExposedProperties>
+          <Property name="DataArrayInfo" />
+          <Property name="DataArrayStatus" />
+       </ExposedProperties>
+     </SubProxy>
+
+     <StringVectorProperty name="FileNameInfo"
+        command="GetCurrentFileName"
+        information_only="1" >
+        <SimpleStringInformationHelper />
+     </StringVectorProperty>
+
+
+     <StringVectorProperty
+        name="FileNames"
+        clean_command="RemoveAllFileNames"
+        command="AddFileName"
+        animateable="0"
+        number_of_elements="0" 
+        repeat_command="1"
+        information_property="FileNameInfo" >
+        <FileListDomain name="files"/>
+       <Documentation>
+         The list of files to be read by the reader. If more than 1 file is
+         specified, the reader will switch to file series mode in which it will
+         pretend that it can support time and provide 1 file per time step.
+       </Documentation>
+     </StringVectorProperty>
+
+     <DoubleVectorProperty 
+        name="TimestepValues"
+        repeatable="1"
+        information_only="1">
+        <TimeStepsInformationHelper/>
+        <Documentation>
+          Available timestep values.
+        </Documentation>
+     </DoubleVectorProperty>
+   <!-- End of tecplotseriesreader -->
+   </FileSeriesReaderProxy>
 
   </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