[Paraview] Saving integrated data on an animated slice

Richard GRENON richard.grenon at onera.fr
Wed Dec 1 05:53:10 EST 2010


Adriano

Thank you for this help. I gan get the output file appended at each 
animation step. I tested it with a string.

But I can't get the integrated value from the Surface Flow filter.

This filter produces an unstructured grid having one cell an one point 
with two arrays:  the first array with name SurfaceFlow is the 
integrated value that I want, the other array is the vector array that I 
have integrated. I will try further with the Python help on the Surface 
Flow filter, but if someone has an idea.

Best regards


Richard

Adriano Gagliardi wrote:
> Richard,
>
> I don't thionk you'll need the first programmable filter. The following
> should be a start:
>
> vtkUnsData = self.GetInputDataObject(0,0)
> fout = open(filename,'a')
> #then you can use the write function to write data to file ie
> fout.write("%s" % (vtkUnsData.GetPointData().GetTuple1(0))
> fout.close()
>
> I've never used Surface Flow so don't know what type of data-set you will be
> working with.
>
> Good luck!
>
> Adriano
-- 
 Richard GRENON
 ONERA
 Departement d'Aerodynamique Appliquee - DAAP/ACI
 8 rue des Vertugadins
 92190 MEUDON - FRANCE
 phone : +33 1 46 73 42 17
 fax   : +33 1 46 73 41 46
 mailto:Richard.Grenon at onera.fr
 http://www.onera.fr



More information about the ParaView mailing list