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

Exporting expression data from *.trn timesteps

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 7, 2015, 20:27
Default Exporting expression data from *.trn timesteps
  #1
New Member
 
Join Date: Jun 2014
Posts: 7
Rep Power: 11
smallzilla is on a distinguished road
Hi,

I have a few transient simulations running an airfoil at various angles of attack. I have created expressions to determine the Coefficients of Lift, Drag, and Quarter Chord Moment (Cl, Cd, Cm). I have roughly 300 *.trn files that I would like to extract my user defined expressions to do a time dependent average of those coefficients.

One approach I have taken is to create a table and then put my expressions in a table cell.
ex: A1 =Cl, B1 = Cd, C1 = Cm

when changing time steps I see that it the coefficients change slightly. So this is why I want to average them out. Is there a straight forward way that I could have it print all three of these expressions from each *.trn timestep in there respective columns to export? Or is there a much easier process of doing this that I am missing that will automatically average the coefficients for me at the end of a simulation? would averaging the pressure at the airfoil wall then using only that give me the same result I am trying to find, that is; skipping the need to extract each coefficient timestep then average them out?

I am using CFX 15.0
smallzilla is offline   Reply With Quote

Old   January 8, 2015, 01:52
Default
  #2
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 14
monkey1 is on a distinguished road
Maybe just have a look at that thread
http://www.cfd-online.com/Forums/cfx...tml#post385850
I posted there a script file that loads every time step and reads out desired values and prints them in a csv file. In the uploaded example those are the min and max values for x and y. But you could implement any desired cel function
monkey1 is offline   Reply With Quote

Old   January 8, 2015, 09:15
Default
  #3
New Member
 
Join Date: Jun 2014
Posts: 7
Rep Power: 11
smallzilla is on a distinguished road
I just realized you can create a chart using transient data as a series/sequence. This allows you to select user created expression and plot them vs time. Then extract it to a *.csv file.

So, my other question if anyone could clarify for me for future transient cases. If I wanted to save hard drive space, and limit the data that I wanted to save in my *.trn files in CFX-Pre, or even elimnate having any. Would saving the absolute average pressure give me the same result for my Cl, Cd, Cm average of all the timesteps I have been working with?

Basically I would like to save as much hard drive space as I will have many cases to run. Do I even need to output that many *.trn files for my coefficient average.
smallzilla is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[General] 2 datas on one plot Akuji ParaView 46 December 1, 2013 14:06
Exporting Data to Fluent Especially P_Mean Alhasan OpenFOAM Post-Processing 0 September 23, 2013 21:26
exporting a data file. haihek FLUENT 1 January 31, 2011 19:20
Exporting shear stress data Severo Neto CFX 4 February 5, 2004 09:47
Exporting data... Gustaf Mårtensson CFX 2 September 16, 2003 08:37


All times are GMT -4. The time now is 12:46.