|
[Sponsors] |
Exporting some specified data from trn files in CFD-Pst |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Ali Sarami
Join Date: Jun 2010
Posts: 34
Rep Power: 16 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Ali Sarami
Join Date: Jun 2010
Posts: 34
Rep Power: 16 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#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){} |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF issue | MASOUD | Fluent UDF and Scheme Programming | 14 | December 6, 2012 14:39 |
Complex .stl data for volume meshing in ICEM CFD | Nils_H | ANSYS Meshing & Geometry | 5 | September 2, 2011 09:39 |
Writing Case and Data Files Using Journal/Scheme Files | svp | Fluent UDF and Scheme Programming | 0 | April 5, 2011 12:04 |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 04:01 |
How to update polyPatchbs localPoints | liu | OpenFOAM Running, Solving & CFD | 6 | December 30, 2005 18:27 |