It isn't easy to get the the values, because the client only accesses proxies for the filters and data objects, which often exist on remote distributed memory parallel machines.
Three strategies: 1) write a python programmable filter. That runs in parallel on remote machines and has access to the actual data. 2) use servermanager.Fetch to copy the data to the client 3) if you are never going to run in parallel, you can use proxy.GetClientSideObject() Personally I recommend #1. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Tue, Dec 15, 2015 at 5:22 PM, David Larsson <[email protected]> wrote: > Dear all, > > > I am working with imported temporal velocity fields (from pvd/vtu) files. > > > Does anyone know how I in pvpython can access point or cell data as a > specified variable (array)? > I easily find out how to load data into paraview using the Python tracer > ('solutoinpvd = PVDReader(FielName='myfile.pvd')) but can't seem to know > how to access the velocity field in pvpython after that. > > > I want the point or cell data loaded in specified variables in order > to modify e.g. the velocity or calculated vorticity field through scripting > (as an example, set all values >0 to a given value), but I can't seem to > find these variables (or set variables to them). > > > Thanks for the help. > > > /David > > > > > <https://webmail.kth.se/owa/redir.aspx?C=IxWYxXymHES_fQvc4qU3B9BOtBARstEIlfcjHJ6nx0MeBY57EwkoSX2SdYQPib-GqeXHouLYnDA.&URL=mailto%3adavid.larsson%40sth.kth.se> > > _______________________________________________ > 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 > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/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 Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
