CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] Pass data through programmable filter

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 14, 2018, 19:06
Default Pass data through programmable filter
  #1
Member
 
Tate
Join Date: Feb 2015
Posts: 31
Rep Power: 11
t8fanning is on a distinguished road
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?
t8fanning is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF value to large for defined data type Anna73 Fluent UDF and Scheme Programming 9 September 30, 2018 22:18
[General] selected cells in python programmable filter ufocfd ParaView 3 May 30, 2017 10:05
Run OpenFoam in 2 nodes of a cluster WhiteW OpenFOAM Running, Solving & CFD 16 December 20, 2016 00:51
How to setup a simple OpenFOAM cluster? TommiPLaiho OpenFOAM Installation 3 October 27, 2013 15:15
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 17:27


All times are GMT -4. The time now is 00:14.