Exporting some specified data from trn files in CFD-Pst
Dear Friends,
I have about 100 transient files (.trn) resulted from a CFD simulation in CFX. I would like to write a script in session to circulate between all the trn files and gives me the AvePressure on a location at each step, for example export it to a txt file. Would you please help me on this. I almost know nothing about such coding. Best Regards |
note
One more thing to be noted is that the name of my trn files are not in this form, eg, 1 2 3 4 ... they are 1 4 5 7 ...
so I cannot use commands such: !for($i=$start,$i<=$finish,$i++){} Thanks |
try smth. like
@TRNLIST= ("0", "1", "4", "5", "57") foreach $item (@TRNLIST){ ... } OR adjust the stepping to !for($i=4,$i<=$finish,$i+=2){} |
All times are GMT -4. The time now is 11:41. |