# Calculate Bubbles Centre position and Velocity

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

 May 3, 2016, 04:18 Calculate Bubbles Centre position and Velocity #1 Member   Arsalan Join Date: Jul 2014 Posts: 74 Rep Power: 10 Hi Foamers, I'm doing a 3D simulation of two and three bubble rising using a modified interFoam solver and I need to bubbles centre position, velocity and surface area. For a single bubble rising I used swak4Foam expressions for example for bubble centre position in Y as follows : Code: ``` bubbleCentreY { type swakExpression; valueType internalField; verbose true; variables ( "Vol= sum (alpha1 < 0.5 ? vol() : 0);" "VolY= sum (alpha1 < 0.5 ? pos().y*vol() : 0);" ); expression "VolY/Vol"; accumulations ( min ); }``` Is there a way to compute two or three bubble properties in this manner? Thanks in advance, Best Regards, Arsalan.

 May 4, 2016, 02:46 #2 Member   Arsalan Join Date: Jul 2014 Posts: 74 Rep Power: 10 Does anybody have an idea? Any help and comment will be greatly appreciated. Regards, Arsalan.

 May 21, 2016, 05:28 #3 Member   Arsalan Join Date: Jul 2014 Posts: 74 Rep Power: 10 I still didn't solve this problem, does anyone have an idea?! Thanks in advance, Regards.

 Tags bubble centre, bubble velocity, swak4foam, swakexpression