[Paraview] Saving integrated data on an animated slice
Adriano Gagliardi
agagliardi at ara.co.uk
Wed Dec 1 06:02:56 EST 2010
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: agagliardi at ara.co.uk
Url: www.ara.co.uk
-----Original Message-----
From: Richard GRENON [mailto:richard.grenon at onera.fr]
Sent: 01 December 2010 10:53
To: agagliardi at ara.co.uk
Cc: 'Biddiscombe, John A.'; paraview at 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.Grenon at 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
**********************************************************************
More information about the ParaView
mailing list