|
[Sponsors] |
Exporting some specified data from trn files in CFD-Pst |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 19, 2013, 01:13 |
Exporting some specified data from trn files in CFD-Pst
|
#1 |
Member
Ali Sarami
Join Date: Jun 2010
Posts: 34
Rep Power: 15 |
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 |
|
December 19, 2013, 02:08 |
note
|
#2 |
Member
Ali Sarami
Join Date: Jun 2010
Posts: 34
Rep Power: 15 |
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 |
|
December 19, 2013, 07:19 |
|
#3 |
Senior Member
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20 |
try smth. like
@TRNLIST= ("0", "1", "4", "5", "57") foreach $item (@TRNLIST){ ... } OR adjust the stepping to !for($i=4,$i<=$finish,$i+=2){} |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF issue | MASOUD | Fluent UDF and Scheme Programming | 14 | December 6, 2012 13:39 |
Complex .stl data for volume meshing in ICEM CFD | Nils_H | ANSYS Meshing & Geometry | 5 | September 2, 2011 08:39 |
Writing Case and Data Files Using Journal/Scheme Files | svp | Fluent UDF and Scheme Programming | 0 | April 5, 2011 11:04 |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 03:01 |
How to update polyPatchbs localPoints | liu | OpenFOAM Running, Solving & CFD | 6 | December 30, 2005 17:27 |