# Rising velocity - 3D single bubble

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

 June 19, 2019, 04:03 Rising velocity - 3D single bubble #1 New Member   John Join Date: Mar 2019 Posts: 24 Rep Power: 2 Hi all Foamers, I've done a simulation about 3D single bubble rising , now i want to compute rising velocity over time of bubble . Can you suggest me someway i can do it. I make some simple code but it seems like the "center position of bubble" always equal in each time step . Any help is really appreciated. Thank you so much for reading Code: ``` y = 0.0; sumM = 0.0; sumMY = 0.0; forAll(alpha1, cellI){ // Integration of {mass} sumM += (1-alpha1[cellI])*mesh.V()[cellI]*rho2.value(); // Integration of (mass*height) sumMY += (1-alpha1[cellI])*mesh.V()[cellI]*rho2.value() *mesh.C()[cellI][1]; } y = sumMY/max(sumM, SMALL); // Center of bubble but it always the same at each timestep```

December 14, 2019, 16:13
#2
New Member

Wenjun Tuan
Join Date: Feb 2018
Posts: 2
Rep Power: 0
Have you solved this problem ? How you use the cell-centre velocity ?

Quote:
 Originally Posted by thintn222 Hi all Foamers, I've done a simulation about 3D single bubble rising , now i want to compute rising velocity over time of bubble . Can you suggest me someway i can do it. I make some simple code but it seems like the "center position of bubble" always equal in each time step . Any help is really appreciated. Thank you so much for reading Code: ``` y = 0.0; sumM = 0.0; sumMY = 0.0; forAll(alpha1, cellI){ // Integration of {mass} sumM += (1-alpha1[cellI])*mesh.V()[cellI]*rho2.value(); // Integration of (mass*height) sumMY += (1-alpha1[cellI])*mesh.V()[cellI]*rho2.value() *mesh.C()[cellI][1]; } y = sumMY/max(sumM, SMALL); // Center of bubble but it always the same at each timestep```

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

 Similar Threads Thread Thread Starter Forum Replies Last Post Suzzn CFX 21 January 29, 2018 01:58 Nazanin OpenFOAM Post-Processing 1 August 6, 2014 14:19 Lincoln Main CFD Forum 3 April 10, 2012 11:04 swamysrikanth Main CFD Forum 2 September 27, 2010 09:59 Vamsi Main CFD Forum 0 December 22, 2005 01:02

All times are GMT -4. The time now is 16:40.