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

[General] Loop some steps

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 8, 2018, 10:36
Default Loop some steps
  #1
New Member
 
Peter
Join Date: Jun 2017
Posts: 1
Rep Power: 0
kpeter is on a distinguished road
Hi everyone!

I have a lot of measurement data in .DAT files. I wolud like to preprocess them in the same way, therefore I wanted to write a script, but it doesn't work.

First I load all of the files, then with GetSources() I can get the names.
After this, in a loop I would like threshold all of the files and then apply a calculator filter.

GetSources()

#Threshold
threshold1=Threshold(Input=name)
threshold1.Scalars=['POINTS', 'isValid']
threshold1.ThresholdRange=(1.0, 1.0)
#Calculator
calculator1=Calculator(Input=threshold1)
calculator1.Function='(Vx*iHat)+(Vy*jHat)+(Vz*kHat )'

For the threshold and calculator I need a specific name, on which file I would like to apply the filter.
And this is my problem. How can I set these files in a range, where the "for" command can work?

I hope, that somebody can help me out
kpeter 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
Conduction loop not converging in Conjugate Heat Transfer sohom070994 Main CFD Forum 0 December 2, 2016 14:45
Pressure distribution on a wall darazsbence CFX 17 October 6, 2015 10:38
Suggested unsteady, implicit solver stable with arbitrarily large time steps djbungee OpenFOAM Programming & Development 45 March 23, 2015 04:14
Pao spectrum. Steps? GG Main CFD Forum 4 April 29, 2003 11:29


All times are GMT -4. The time now is 01:06.