|
[Sponsors] |
March 6, 2015, 12:45 |
How Transient Statistics Works in CFX
|
#1 |
New Member
Ali Sarami
Join Date: Jan 2015
Posts: 10
Rep Power: 11 |
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. |
|
March 6, 2015, 14:01 |
|
#2 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
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. |
|
March 6, 2015, 14:13 |
|
#3 |
New Member
Ali Sarami
Join Date: Jan 2015
Posts: 10
Rep Power: 11 |
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 |
|
March 6, 2015, 17:58 |
|
#4 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
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. |
|
March 6, 2015, 18:13 |
|
#5 | |
New Member
Ali Sarami
Join Date: Jan 2015
Posts: 10
Rep Power: 11 |
Quote:
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. |
||
March 6, 2015, 21:00 |
|
#6 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144 |
Do you want WSS.q at a single point or the distribution across the entire surface?
|
|
March 6, 2015, 21:55 |
|
#7 |
New Member
Ali Sarami
Join Date: Jan 2015
Posts: 10
Rep Power: 11 |
||
March 6, 2015, 22:56 |
|
#8 | |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
Quote:
Try and see if it works. It should. |
||
March 6, 2015, 23:03 |
|
#9 | |
New Member
Ali Sarami
Join Date: Jan 2015
Posts: 10
Rep Power: 11 |
Quote:
Thanks |
||
March 9, 2015, 08:44 |
|
#10 |
Senior Member
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 15 |
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? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Iteration List in Transient Statistics | ashtonJ | CFX | 2 | November 8, 2017 02:04 |
Problem with restart of transient statistics | Mazze[ITA] | CFX | 1 | September 5, 2014 11:48 |
Transient Structural Coupleی CFX transient Pressure | sajad_ENG | Structural Mechanics | 0 | December 7, 2013 15:28 |
Transient Structural from CFX transient thermal | bhavik139 | Structural Mechanics | 1 | August 12, 2013 02:40 |
Start and restart transient statistics | Lance | CFX | 0 | December 21, 2011 12:46 |