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

Time average results in Transient CFX Simulation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 1, 2015, 13:50
Default
  #21
Member
 
Mina
Join Date: Apr 2011
Posts: 88
Rep Power: 15
Mina_Shahi is on a distinguished road
Quote:
Originally Posted by alinik View Post
Mina,

I dont think that is possible. I had same problem and I ended up resolving the case.
By the way is there anyway to define the model in a way that it does the transient averaging only over a portion of the total simulation time?

Thanks,
Ali
The Only way that i know is to set it in pre:

Outline>Output Control>Trn stats

then define the start iteration list.(for example from iteration number 2500 or so).

but if you don't do it in pre i suppose you have to do it with matlab.
Mina_Shahi is offline   Reply With Quote

Old   September 17, 2015, 22:37
Default
  #22
New Member
 
wanglingjun
Join Date: Jan 2015
Posts: 5
Rep Power: 11
WANGFIRE is on a distinguished road
Quote:
Originally Posted by Thomas MADELEINE View Post
well if you start and end the averaging in transient result it should average over the time specified, isn't it ?

You can always create an expression with the step function to get a non-zero result only during the time you want. then try an integration
it is a gross solution, but a solution anyway
hello,Thomas,
I want to know how to use cfx cel and expression to get averaging in transient result ,can you help me!

thank you very much
WANGFIRE is offline   Reply With Quote

Old   September 30, 2015, 09:34
Default
  #23
Member
 
beyonder
Join Date: May 2015
Posts: 67
Rep Power: 11
beyonder1 is on a distinguished road
Quote:
Originally Posted by monkey1 View Post
You just select in CFX Post the "Velocity.TrnAvg" Variable to be displayed (on a Plane for example). Then you will see the time averaged Velocity.
All time averaged Variables are named like this "Variablename.TrnAvg"
This is an old post that i came across while searching for how to get time averaged statistics. I can't find how/where to do this. Can anyone help.
Also I haven't created transient statistics in cfx-pre.
beyonder1 is offline   Reply With Quote

Old   September 26, 2016, 21:55
Default
  #24
Member
 
Roberto
Join Date: Feb 2015
Posts: 33
Rep Power: 11
RobBanks is on a distinguished road
Quote:
Originally Posted by monkey1 View Post
Just activate "Transient Statistics" under the "output control->TrnStats" in CFX Pre.
@monkey1 Hello, I'm trying to plot the time average for a simulation in CFX but I didn't activate the "Transient Statistics" at the Pre stage, as you explained here. Is there any other way to get this activated in order obtain the plot after the simulation has already ended, i.e. at the Post stage? I need the whole time average of some variables... All I need to get is the plot, so if there is any way to do it, I'll just do with it.

Thanks in advance to any helpful reply you may provide!
RobBanks is offline   Reply With Quote

Old   September 27, 2016, 03:52
Default
  #25
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.
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:09
Default
  #26
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 15
monkey1 is on a distinguished road
when your run is finished you can extract the values for each time step (as long as you have the .trn files) by using a perl script as -Maxim- said, to import the values to e.g. excel and calculated there the time averages.
An example for a script file can be found under
http://www.cfd-online.com/Forums/cfx...tml#post385850
monkey1 is offline   Reply With Quote

Old   September 27, 2016, 21:29
Default
  #27
Member
 
Roberto
Join Date: Feb 2015
Posts: 33
Rep Power: 11
RobBanks is on a distinguished road
Quote:
Originally Posted by -Maxim- View Post
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.
Thank you both -Maxim- & monkey1. I will try and apply your recommendations.

How can I do what you recommended in your answer, -Maxim-? In which stage do I create the monitor? In Pre setup, in the Solver or at the Post stage?

How can I activate the cfx5mondata command and in which stage do I do that?

How about this... I have the last .res files and some .trn but not all of them. If I run another simulation, just varying the Reynolds number of the flow, in transient regime, saving all .trn files and activating the .TrnAvg statistics in Pre, using as the entry values of the new run the last .res file created, that would provide a continuity to the simulation process with just a different reynolds number and, hence, provide more data. If I do all that, will the new .res only contain the info related to this new run or will it use the previous run extra-polating through it to use this data? All that to make sure I could get to that previous info.

I don't know if the last paragraph makes sense to you...
RobBanks is offline   Reply With Quote

Old   September 28, 2016, 02:30
Default
  #28
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 15
monkey1 is on a distinguished road
Monitorpoints are set in cfx-pre under output control and evaluated during the run. You can only see the results in the solver manager and from there they can be exported to a csv file.

If you start a new simulation...then why trying to "provide continuity"?...especially when you change basic flow settings. A new simulation run is a new simulation run and when you activate the transient statistics there, you will get them for this run.
An extrapolation as you thought of would only be possible if you don't have any big changes in your solution during the simulation.
I think it would then be better to use your results and few trn files to extract the required values with a perl script and calculate the statistics from there, even if the statisical basis is not fully given.
monkey1 is offline   Reply With Quote

Old   September 28, 2016, 03:11
Default
  #29
Senior Member
 
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 413
Rep Power: 13
-Maxim- is on a distinguished road
1) create monitor points incl. averaging etc in Pre. You can set monitor points on expressions. Consult the manual or search this forum if you don't know how.

2) regarding cfx5mondata, the manual is explaining is pretty well. Or search this forum. Here I wrote some sample syntax:
http://www.cfd-online.com/Forums/cfx...tml#post603695

3) I don't think CFX interpolates/creates averaged variables if you continue with a new setup. I think the best way would be to set up a new run with all the monitor points etc, let it run for a few iterations until you get a couple of *.trn files and then stop to get the *.res file. Then test your scripts/monitor points. If result is good, do you long calculation.

Good luck
-Maxim- is offline   Reply With Quote

Old   September 30, 2021, 03:52
Smile
  #30
New Member
 
Lanting li
Join Date: Nov 2019
Posts: 10
Rep Power: 7
by1704116 is on a distinguished road
Quote:
Originally Posted by BalanceChen View Post
I have just found the trouble spot~

As for the transient turbomachinery simulation, a time-average results is time averaged over passage but not over the whole machine. I made a mistake to average over the whole machine to destroy the circumferential distortion.
dear BalanceChen,I am also doing a transient simulation of turbomachinery with inflow total pressure distortion circumferentially, and I also meet the problem that the arithmetic average total pressure contour doesn't vary circumferentially.Have you solved this problem?
what do you mean by the time averaged over passage or the whole machine? And where could I set up the averaged domain?
It's a post long time ago, wish you could see my confusion
by1704116 is offline   Reply With Quote

Old   September 30, 2021, 10:26
Default
  #31
Senior Member
 
Join Date: Jun 2009
Posts: 1,873
Rep Power: 33
Opaque will become famous soon enough
You have not completely described your problem.

You have a total pressure distortion in front (as an inlet) of a turbomachinery component, correct?

On which frame is the distortion, and on which frame is the component? If both are in the stationary frame, you should see the circumferential variation. However, if the distortion is moving relative to the component frame, you will only see the variation in one frame, but not in the other.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   September 30, 2021, 11:01
Default
  #32
New Member
 
Lanting li
Join Date: Nov 2019
Posts: 10
Rep Power: 7
by1704116 is on a distinguished road
Quote:
Originally Posted by Opaque View Post
You have not completely described your problem.

You have a total pressure distortion in front (as an inlet) of a turbomachinery component, correct?

On which frame is the distortion, and on which frame is the component? If both are in the stationary frame, you should see the circumferential variation. However, if the distortion is moving relative to the component frame, you will only see the variation in one frame, but not in the other.
Thanks first, Opaque!
There are 3 domain in my simulation.First, it is a stationary domain which consists of inlet boundary condition,and steady total pressure distortion is in this domain.Second ,it is a rotating domain which has rotor, and I check the countor whether total pressure changes or not circumferentially. Third, it is stationary domain which has stator.
domain which stator is in it.
by1704116 is offline   Reply With Quote

Old   September 30, 2021, 14:59
Default
  #33
Senior Member
 
Join Date: Jun 2009
Posts: 1,873
Rep Power: 33
Opaque will become famous soon enough
Are you looking at the contour on the stationary side of the sliding interface, or the rotating side?

Are you looking at the "Stationary Frame Total Pressure" or "Total Pressure" variable?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque 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
Transient Simulation Taking Very Long TIME!!!! Help 88phil88 CFX 17 November 3, 2017 05:07
Transient Simulation in ANSYS CFX ylm054 CFX 7 April 25, 2016 21:05
How obtain the average of lift over time for a transient simulation? aero ANSYS 0 November 11, 2009 03:00
air bubble is disappear increasing time using vof xujjun CFX 9 June 9, 2009 08:59
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58


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