# Ensemble average for oscillatory flow in OpenFoam

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

 April 25, 2013, 11:13 Ensemble average for oscillatory flow in OpenFoam #1 New Member   Pietro Danilo Tomaselli Join Date: Oct 2012 Location: Lyngby, DTU Posts: 9 Rep Power: 7 Hi guys! This is my first post here. I googled my problem a lot of times but I didn't find anything about this topic neither here nor in other web sites. I'm simulating a turbulent oscillatory flow in a channel with my own modified solver based on channelFoam solver. The flow is driven by a periodic pressure gradient, therefore the velocity is also periodic for a given point in the domain. Now, I'd like to calculate the Umean field, but I cannot use the normal fieldAverage library: since the flow is oscillatory, averaging based on time is useless, and I should use an ensemble averaging. In substance, I want to calculate the arithmetic mean of the velocity for each phase of the periodic flow. For instance, if the duration of the simulation is 4*Period, U_mean for phase = 0° is: (U(1st Period, phase = 0°) + U(2nd Period, phase = 0°) + U(3rd Period, phase = 0°) + U(4th Period, phase = 0°))/4. I'm thinking to modify the fieldAverage code in order to calculate what I want, but I don't know how. I can look into the code, but I'm not able to modify it. Does anyone have a better idea? Did anyone try to do anything similar? Could you give to me any hints please? I'm using OpenFoam 2.0.1. Thanks in advance Danilo

 May 22, 2013, 04:59 #2 New Member   Pietro Danilo Tomaselli Join Date: Oct 2012 Location: Lyngby, DTU Posts: 9 Rep Power: 7 Hi guys! It seems that this problem is just mine! Anyway, I read that release 2.1.1 of OpenFoam can do an ensemble averaging in post-processing. Unfortunately I don't have the opportunity to test this new release now, so does anyone use this feature yet? Could it be the solution of my problem? Thanks in advance Danilo

 July 22, 2014, 06:33 #3 Member   Thangam Natarajan Join Date: Dec 2010 Location: Perth Posts: 63 Rep Power: 10 Hi Pietro, Did you manage to solve this issue? I am facing this as well! Thanks. Thangam.

 Tags ensemble, openfoam, oscillatory

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post chljl OpenFOAM Running, Solving & CFD 0 February 14, 2012 20:38 Matthias89 OpenFOAM 2 February 5, 2012 08:26 saksham.pachar FLUENT 3 December 23, 2011 05:30 jola OpenFOAM 2 October 19, 2011 06:55 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 06:25

All times are GMT -4. The time now is 10:08.