CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   Cumulative average (https://www.cfd-online.com/Forums/star-ccm/231431-cumulative-average.html)

Nikpap November 5, 2020 11:02

Cumulative average
 
Hello,

I using the implicit unsteady method to model the flow field of a burner (including the swirler).

I get 3 different velocity profiles that correspond to 3 different timesteps (10^-3, 5x10^-5 and 10^-4). It has been suggested to me to do cumulative average and see if it reaches an asymptotic value.

In star I have only seen the regular and the moving average, do you know how I could do a cumulative one?

fluid23 November 5, 2020 13:44

I don't think that makes sense to do inside of star-ccm. You have to do this across simulations, so its not a field function or report that any one model can return.

I had never even heard of a cumulative average outside of a GPA so I did some reading, I think what is suggested is to do this...

Y2(1) = Y(1)
Y2(2) = (Y(1) + Y(2))/2
Y2(3) = (Y(1) + Y(2) + Y(3))/3

https://www.itl.nist.gov/div898/soft...hat%20element.

Nikpap November 6, 2020 06:16

First off, thanks for the prompt reply.

In hindsight my original question was a bit unclear, I do apologise.

Because these 3 timesteps produce different velocity fields, I would like to see how the cumulative average evolves over the course of the simulation, say for the 10^-3 s case.

Could I do that by using a report and plot from star-ccm?

fluid23 November 6, 2020 08:18

That makes more sense, thanks for clarifying. I think you will probably want to check out solution histories. You can use these to store data from previous time steps. It shouldn't be too complicated of an exercise to create a field function to do a cumulative average.

Having not tried it myself, all I can do is point you in the right direction.

Check out the help files under Post-Processing>Analysis Workflow>Transient Solution Data>Transient Solution Data Workflow>Retrieving Transient Solution Data.

Perhaps someone else can give you a more specific answer.

Nikpap February 2, 2021 05:16

Hello!

So the way I finally did it was by creating the points I wanted to monitor in my domain. Then I created an XYZ internal table and auto extracted it based on timestep.

Using solution histories maybe could have been an option but I didnt manage to make it work and I also guess it would be way more demanding. The only downside in what I used is that I get a lot of .csv files that I have to combine in one place.

Thanks for the help!


All times are GMT -4. The time now is 13:12.