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 Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 7, 2015, 21:27
Default Exporting expression data from *.trn timesteps
  #1
New Member
 
Join Date: Jun 2014
Posts: 7
Rep Power: 12
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, 02:52
Default
  #2
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 15
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, 10:15
Default
  #3
New Member
 
Join Date: Jun 2014
Posts: 7
Rep Power: 12
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


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 15:06
Exporting Data to Fluent Especially P_Mean Alhasan OpenFOAM Post-Processing 0 September 23, 2013 22:26
exporting a data file. haihek FLUENT 1 January 31, 2011 20:20
Exporting shear stress data Severo Neto CFX 4 February 5, 2004 10:47
Exporting data... Gustaf Mårtensson CFX 2 September 16, 2003 09:37


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