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

How Transient Statistics Works in CFX

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 6, 2015, 11:45
Default How Transient Statistics Works in CFX
  #1
New Member
 
Ali Sarami
Join Date: Jan 2015
Posts: 10
Rep Power: 11
a.sarami@yahoo.com is on a distinguished road
Hi,
Sorry for the naive question. Are transient statistics functions like Trnavg or Trnmax computed at the end of the specified "Iteration End" or Trnavg is a kind of moving average that already exists during the run, but does not have the value that we want/expect it to have?

I am computing a unit vector which is the direction of time-averaged WSS vector say (q). Then I compute the time-averaged value of the q component of the WSS vector (WSS.q). However, q itself is only available at the end of the simulation. How then can CFX record for each time step the value of WSS.q, which it needs to be able to compute the time-averaged value of WSS.q.

Thanks in advance.
a.sarami@yahoo.com is offline   Reply With Quote

Old   March 6, 2015, 13:01
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,800
Rep Power: 32
Opaque will become famous soon enough
It computes them from Start to End as specified in the setup. That is, it is not a running average with a width equal to End - Start.

Once the software passes over End, the statistics remain frozen until they are written to the results file (or backup file).

A moving window running average requires storage of the variable from Start to End, and removal of 1 storage level and addition of another storage level at the calculation progresses.
Opaque is offline   Reply With Quote

Old   March 6, 2015, 13:13
Default
  #3
New Member
 
Ali Sarami
Join Date: Jan 2015
Posts: 10
Rep Power: 11
a.sarami@yahoo.com is on a distinguished road
Hi Opaque, Thanks for your message. Does it mean that CFX will ignore all those variables which are somehow related to trnavg/trnmax/trnmin (directly or indirectly) and computes them as soon as it reaches the end of solution (End), just before writing the results?
Thanks
a.sarami@yahoo.com is offline   Reply With Quote

Old   March 6, 2015, 16:58
Default
  #4
Senior Member
 
Join Date: Jun 2009
Posts: 1,800
Rep Power: 32
Opaque will become famous soon enough
It computes them as it goes but only within the Start->End window. Once the End of the window is reached (the solution may still continue) the transient statistics are frozen.

It cannot wait to compute any transient statistics later because the data from previous timesteps/iterations is not stored anywhere in memory.
Opaque is offline   Reply With Quote

Old   March 6, 2015, 17:13
Default
  #5
New Member
 
Ali Sarami
Join Date: Jan 2015
Posts: 10
Rep Power: 11
a.sarami@yahoo.com is on a distinguished road
Quote:
Originally Posted by Opaque View Post
It computes them as it goes but only within the Start->End window. Once the End of the window is reached (the solution may still continue) the transient statistics are frozen.

It cannot wait to compute any transient statistics later because the data from previous timesteps/iterations is not stored anywhere in memory.

Thanks a lot Opaque, So it seems that it cannot give me what I expect to compute, yes? I am computing a unit vector which is the direction of time-averaged WSS vector say (q). Then I compute the time-averaged value of the q component of the WSS vector (WSS.q). However, q itself is only available at the end of the simulation. How then can CFX record for each time step the value of WSS.q, which it needs to be able to compute the time-averaged value of WSS.q.
a.sarami@yahoo.com is offline   Reply With Quote

Old   March 6, 2015, 20:00
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,696
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Do you want WSS.q at a single point or the distribution across the entire surface?
ghorrocks is offline   Reply With Quote

Old   March 6, 2015, 20:55
Default
  #7
New Member
 
Ali Sarami
Join Date: Jan 2015
Posts: 10
Rep Power: 11
a.sarami@yahoo.com is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Do you want WSS.q at a single point or the distribution across the entire surface?
Thanks for your attention. Basically, it is a distribution over a surface. Thanks.
a.sarami@yahoo.com is offline   Reply With Quote

Old   March 6, 2015, 21:56
Default
  #8
Senior Member
 
Join Date: Jun 2009
Posts: 1,800
Rep Power: 32
Opaque will become famous soon enough
Quote:
Originally Posted by a.sarami@yahoo.com View Post
Thanks a lot Opaque, So it seems that it cannot give me what I expect to compute, yes? I am computing a unit vector which is the direction of time-averaged WSS vector say (q). Then I compute the time-averaged value of the q component of the WSS vector (WSS.q). However, q itself is only available at the end of the simulation.
Why is not q available during the run ? If you request the statistics of Wall Shear Stress (assuming is available for transient stats), the solver will compute it at each time step within the statistics window and average it as request.

Try and see if it works. It should.
Opaque is offline   Reply With Quote

Old   March 6, 2015, 22:03
Default
  #9
New Member
 
Ali Sarami
Join Date: Jan 2015
Posts: 10
Rep Power: 11
a.sarami@yahoo.com is on a distinguished road
Quote:
Originally Posted by Opaque View Post
Why is not q available during the run ? If you request the statistics of Wall Shear Stress (assuming is available for transient stats), the solver will compute it at each time step within the statistics window and average it as request.

Try and see if it works. It should.
Hi Opaque, thanks so much. Of course q is available during the run, but it does not have the right value. q must average of one Start-End period, and then be used to compute WSS.q. So the right value of q is only available at the end of the Start-End period. Now how can it be used to compute WSS.q during the run, including Start-End period?
Thanks
a.sarami@yahoo.com is offline   Reply With Quote

Old   March 9, 2015, 07:44
Default
  #10
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 14
monkey1 is on a distinguished road
Hmm...even if I'n not 100% sure to have understood the problem, I might provide you with a solution.
If you need something like a transient average over a time period of a variable that is avalaible at each time step, you can do this in cfxpost by using script files.(In CFXPost Session -> Play Session)
There is the Ansys power syntax (a programming language based on pearl) that allowas you to write script files that will evaluate variable and functions at each time step and write the results to .csv file.

E.g. You want the value of q as areaAverage over Plane P1 for each time step: then it would work like in the attached .cse file (just remove the .txt ending to play it in post. Had to add .txt to be able to upload it)
You can write there any expression for post process evaluation you want. And the time average can then be determined in excel by post processing the .csv file.

Is this maybe what you were looking for?
Attached Files
File Type: txt AreaAverage_Example.cse.txt (3.1 KB, 69 views)
monkey1 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
Iteration List in Transient Statistics ashtonJ CFX 2 November 8, 2017 01:04
Problem with restart of transient statistics Mazze[ITA] CFX 1 September 5, 2014 10:48
Transient Structural Coupleی CFX transient Pressure sajad_ENG Structural Mechanics 0 December 7, 2013 14:28
Transient Structural from CFX transient thermal bhavik139 Structural Mechanics 1 August 12, 2013 01:40
Start and restart transient statistics Lance CFX 0 December 21, 2011 11:46


All times are GMT -4. The time now is 23:17.