Try this: vtkUnsGrid.GetPointData().GetArray("SurfaceFlow").GetTuple1(0)
Should work. =================================== Adriano Gagliardi MEng PhD Business Sector Leader Computational Aerodynamics Aircraft Research Association Ltd. Manton Lane Bedford Tel: 01234 32 4644 E-mail: agaglia...@ara.co.uk Url: www.ara.co.uk -----Original Message----- From: Richard GRENON [mailto:richard.gre...@onera.fr] Sent: 01 December 2010 10:53 To: agaglia...@ara.co.uk Cc: 'Biddiscombe, John A.'; paraview@paraview.org Subject: Re: [Paraview] Saving integrated data on an animated slice 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.gre...@onera.fr http://www.onera.fr ********************************************************************** This email contains information that is private and confidential and is intended only for the addressee. If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender. Note: All email sent to or from this address may be accessed by someone other than the recipient, for system management and security reasons. Aircraft Research Association Ltd. Registered in England, Registration No 503668 Registered Office: Manton Lane, Bedford MK41 7PF England VAT No GB 196351245 ********************************************************************** _______________________________________________ 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