Compute mean vorticity field
I'd like to compute the time averaged vorticity and stream function fields for a case I'm running. If I just wanted the time averaged velocity field, for example, I could put something like:
Code:
fieldAverage1 Either a way of forcing openFoam to compute the vorticity and stream function fields during solving and calculating the mean at the same time, or waiting till the end to use the utilities to compute those fields and then computing the time average would be fine. Thanks! |
Hi,
Both these utilities can be included as function objects. So they can at least be created during the run. Something like this should be added to the "functions" part of the controlDict, probably a bit more information is needed: Code:
vorticity Regards, Tom |
Thanks Tom, I'm trying this at the moment, but I'm not convinced it's going to work, as streamFunction doesn't appear to be a function you can use in controlDict.. It looks to only work as a post-processing utility.
So still looking for a way of time-averaging fields AFTER I've finished solving if anyone has any ideas... Thanks |
Maybe you can use swak4foam to generate the vorticity field and then use the field average function object to average vorticity.
I might have some code that does what you are searching for, if you are not able of average the vorticity let me know and I will search for the code |
Thanks
Quote:
|
So you create a vorticty field with swak4foam, and the average it with a fieldAverage functionObject
Code:
functions |
Excellent this looks most helpful, thanks a lot.
N.B. I think the dimension should read [0 0 -1 0 0 0 0], no? Vorticity's units are s^{-1}? |
Quote:
|
Quote:
|
All times are GMT -4. The time now is 19:10. |