CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] Pass data through programmable filter (https://www.cfd-online.com/Forums/paraview/211385-pass-data-through-programmable-filter.html)

t8fanning November 14, 2018 19:06

Pass data through programmable filter
 
I'm very new to Python and this is probably very easy for someone who understands the syntax, so I apologize for my ignorance. I perform a transformation with a programmable filter, but I'd also like to pass all my original data through the filter as well. I can do it variable by variable with the following:

Code:

input0 = inputs[0]
P = input0.PointData["P"]
output.PointData.append(P,"P")

I have 18 scalars I'd like to pass through, and three vectors. Repeating the above code for each one is not ideal. Is there a more elegant way to pass through all my original input data?


All times are GMT -4. The time now is 08:53.