Dear Paraview Users,

I am plotting contour and finding the maximum value of a variable. I am doing this with the help of a script(attached) and I run it in python shell in Paraview-GUI.

When I animate it, contour animation works but the maximum value of the variable is not updated with time.

Can anyone please shed some light over this? Or how to show the maximum value of an variable along with the contour?


Thanks in advance!!
Manu
#Read Time series file
reader = OpenDataFile("main.xmf")
readerRep = GetRepresentation(reader)
readerRep.Representation = 'Outline'
Show()

#Convert Cell Data to Point Data
pread = CellDatatoPointData(reader)
Show()
Hide(pread)

#Find Max value of Swirl and Show it on screen
vor = pread.PointData['Swirl'].GetRange()
txt = Text()
txt.Text = "Vortex = " + str(vor[1])
Show()
Render()

#Draw isosurface of a variable "Swirl"
new = Contour(pread)
new.ContourBy='Swirl'
new.Isosurfaces = 100
Show()
Render()

#Animate
AnimateReader(reader,filename="anime.avi")
_______________________________________________
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