CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Exporting some specified data from trn files in CFD-Pst (https://www.cfd-online.com/Forums/cfx/127749-exporting-some-specified-data-trn-files-cfd-pst.html)

a.sarami December 19, 2013 01:13

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

a.sarami December 19, 2013 02:08

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

mvoss December 19, 2013 07:19

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.