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

CFX Post Session

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

Reply
 
LinkBack Thread Tools 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: 4
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: 10,796
Rep Power: 84
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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

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
CFX post legend modification mactech001 CFX 3 December 25, 2011 23:12
How to get reynolds stress values in POST CFX syler3321 CFX 5 March 17, 2011 01:23
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:48.