CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CFX

Exporting some specified data from trn files in CFD-Pst

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 19, 2013, 02:13
Default Exporting some specified data from trn files in CFD-Pst
  #1
Member
 
Ali Sarami
Join Date: Jun 2010
Posts: 34
Rep Power: 7
a.sarami is on a distinguished road
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 is offline   Reply With Quote

Old   December 19, 2013, 03:08
Default note
  #2
Member
 
Ali Sarami
Join Date: Jun 2010
Posts: 34
Rep Power: 7
a.sarami is on a distinguished road
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
a.sarami is offline   Reply With Quote

Old   December 19, 2013, 08:19
Default
  #3
Senior Member
 
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 446
Rep Power: 11
mvoss is on a distinguished road
try smth. like

@TRNLIST= ("0", "1", "4", "5", "57")

foreach $item (@TRNLIST){
...
}

OR adjust the stepping to

!for($i=4,$i<=$finish,$i+=2){}
mvoss is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
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 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 18:27


All times are GMT -4. The time now is 16:54.