|
[Sponsors] |
May 8, 2018, 10:36 |
Loop some steps
|
#1 |
New Member
Peter
Join Date: Jun 2017
Posts: 1
Rep Power: 0 |
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 |
|
|
|
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 |