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

CFX Post Session

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 11, 2013, 11:06
Default CFX Post Session
  #1
pps
New Member
 
Peter
Join Date: Mar 2013
Location: Austria
Posts: 22
Rep Power: 13
pps is on a distinguished road
Hello!

I need to read out a variable over the length of my blade. I did this with the turbo mode. I exported it to a .csv-file. Worked fine.

Now I need to do this for my last 100 timesteps. I don't want to open 100 .trn-files and initialize the turbo mode, so I recorded a session and attached a loop.
Until now everything works fine.

The only problem is, that the .csv file always gets overwritten. I need one .csv-file with 100 rows.
How can I manage, that the new data-row is attached and not overwrites the old one?

(I also don't want 100 .csv files.)

Does anybody know what to do?

I could post the code if needed, but it's very long!

Thx
pps is offline   Reply With Quote

Old   October 12, 2013, 06:33
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Easy way: Make the session file write 100 csv files and then use a batch file/python script/whatever to read the 100 csv files and combine it into one file.

Hard way: Use the perl interpreter inside CFD-Post session files to append a new line on the end of the csv file.

I would do it the easy way personally.
ghorrocks is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get reynolds stress values in POST CFX syler3321 CFX 6 January 1, 2017 07:54
CFX post legend modification mactech001 CFX 3 December 25, 2011 22:12
Need help: Symmetry in CFX Post Tran CFX 0 September 17, 2007 21:00
Chart Generation in CFX Post Vadim Baines-Jones CFX 2 August 28, 2007 09:14
Tecplot for CFX post processing pantangi goud CFX 2 August 24, 2005 16:42


All times are GMT -4. The time now is 02:07.