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

HELP PLEASE! How to plot Time-Averaged variables in CFX???

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 26, 2016, 23:56
Default HELP PLEASE! How to plot Time-Averaged variables in CFX???
  #1
Member
 
Roberto
Join Date: Feb 2015
Posts: 33
Rep Power: 11
RobBanks is on a distinguished road
Having read the "Time average results in Transient CFX Simulation" thread aroused a simple matter, a doubt, which I don't know if I got it right or wrong...

I need to calculate and plot some time averaged variables in CFX but I didn't activate the "Transient Statistics" under the "output control->TrnStats" in CFX Pre, just because I did not know what was this setting for (as you might guess, I'm pretty new in the use of ANSYS CFX).

The simulations are in transient regime.

Is it still possible to get these calculations on the variables I need, along with their correspondent plots or have I gone all wrong on it and have to re-run the simulations?

The simulations are quite extense and I would want badly to avoid doing them again...

Thanks in advance to any of your helpful replies!!!!
RobBanks is offline   Reply With Quote

Old   September 27, 2016, 03:38
Default
  #2
Senior Member
 
Join Date: Aug 2014
Location: UK
Posts: 213
Rep Power: 13
fresty is on a distinguished road
If i understood your question well, you need plots of CFX variables with respect to your simulation time..?
You would not have to rerun the simulation and CFX-Post could do that for you.. just explore the 'plot' section of the module..
fresty is offline   Reply With Quote

Old   September 27, 2016, 03:53
Default
  #3
Senior Member
 
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 413
Rep Power: 13
-Maxim- is on a distinguished road
As far as I can see, there are 2 ways for time averaged results:
1) Create a Monitor point with time averaging (Max, Min, Avg, etc) - this will be saved to the *.res file for every time step and can be extracted via monitor in solver manager or cfx5mondata command.
2) Create a *.trn file every n iteration with the desired variables.

In case you have saved some *.trn files, you can loop through them with a script and extract the desired data. The averaging has to be done manually in Matlab for example. Or use "Velocity.TrnAvg" etc. variables.
Alternate way: create a plot in Post with the time on one axis. Caution: Hitting apply let's Post loop through all *.trn files, which might take long.

If you don't have any *.trn files and have no monitor points set up accordingly, you only have the results of the last time step in your *.res file.
-Maxim- is offline   Reply With Quote

Old   September 27, 2016, 10:15
Default
  #4
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 15
monkey1 is on a distinguished road
Seems as if this thread
http://www.cfd-online.com/Forums/cfx...imulation.html
could contain all answers needed
monkey1 is offline   Reply With Quote

Old   September 27, 2016, 21:40
Default
  #5
Member
 
Roberto
Join Date: Feb 2015
Posts: 33
Rep Power: 11
RobBanks is on a distinguished road
@fresty, I explored the plot section, but I deleted some .trn files because of storage spacing issues, so I don't know if that is the reason why I cannot get the plot, cause it might be looking for the other .trn files but is only finding the latest one...

And, yes... I need the time average of temperature and pressure. I need those variables averaged through the simulation time, on some specific planes
RobBanks is offline   Reply With Quote

Old   September 28, 2016, 02:33
Default
  #6
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 15
monkey1 is on a distinguished road
As I said in my previous post...have a look at script files.
And for your storage space issues...you know that you can reduce the size of the trn files by writing out only "selected variables" instead of the "standard" setting?!?
And if you chosse a bigger, but still reasonable, time interval to write out the trn you will easily reach a reduction by a factor of 10 to 100 in storage space.
monkey1 is offline   Reply With Quote

Old   September 28, 2016, 13:09
Default
  #7
Member
 
Roberto
Join Date: Feb 2015
Posts: 33
Rep Power: 11
RobBanks is on a distinguished road
Quote:
Originally Posted by monkey1 View Post
As I said in my previous post...have a look at script files.
And for your storage space issues...you know that you can reduce the size of the trn files by writing out only "selected variables" instead of the "standard" setting?!?
And if you chosse a bigger, but still reasonable, time interval to write out the trn you will easily reach a reduction by a factor of 10 to 100 in storage space.
I suspected it but wasn't sure that would reduce the size and by some reason (I cannot remember it now ) I didn't do it nor did I research that topic, but now that you mention it, I realise it!!! That is quite helpful!!!!!!

The scripts method you say, sounds very good, the problem is that I don't know any programming languages like Perl. That is why I'm always asking for another way to do it.

I wouldn't know how to write down a script to loop through the very few .trn files I have, that's why I asked (don't remember if it was in this thread or another) if just running another simulation having previously set in Pre all the Monitorpoints and .TrnAvg files you and -Maxim- have been replying me about, would be easier for me...

Being that said, what do you think, monkey1? would there be a simpler way to do it or should I go through it with one more simulation?

Btw, thanks for your replies... they have given me many hints on all the topics on which I have doubts. I just have to organize all the hints, ideas and info together to figure out how to proceed.
RobBanks is offline   Reply With Quote

Old   September 29, 2016, 02:32
Default
  #8
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 15
monkey1 is on a distinguished road
The "easier way" is the one you're refraining from: using a perl script
Maybe you should have a look at it. t is already in a form, that you would only have to replace some variable names...but it is up to you.
If you don't want to do so, then your only practicable solution is to set up a new run where you activate all the outputs needed.

Quote:
Btw, thanks for your replies
You're welcome. That's what such a forum should be there for.
monkey1 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
Elastic or Plastic Deformations in OpenFOAM NickolasPl OpenFOAM Pre-Processing 36 September 23, 2023 09:22
How to export time series of variables for one point? mary mor OpenFOAM Post-Processing 8 July 19, 2017 11:54
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 03:50
How can i plot variables over time? maysmech OpenFOAM 8 September 22, 2010 23:20
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58


All times are GMT -4. The time now is 00:18.