CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Rising velocity - 3D single bubble

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2019, 04:03
Unhappy Rising velocity - 3D single bubble
  #1
New Member
 
John
Join Date: Mar 2019
Posts: 26
Rep Power: 7
thintn222 is on a distinguished road
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
thintn222 is offline   Reply With Quote

Old   December 14, 2019, 16:13
Default
  #2
New Member
 
Wenjun Tuan
Join Date: Feb 2018
Posts: 5
Rep Power: 8
wenjuny is on a distinguished road
Have you solved this problem ? How you use the cell-centre velocity ?

Quote:
Originally Posted by thintn222 View Post
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
wenjuny is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simulation of a single bubble with a VOF-method Suzzn CFX 21 January 29, 2018 01:58
How to compute rising velocity of rising buubles Nazanin OpenFOAM Post-Processing 1 August 6, 2014 14:19
VOF single bubble rising velocity! Lincoln Main CFD Forum 3 April 10, 2012 11:04
bubble rising in a column swamysrikanth Main CFD Forum 2 September 27, 2010 09:59
Query on VOF for Bubble rise Vamsi Main CFD Forum 0 December 22, 2005 01:02


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