Discussion ClosedThis discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one,click here.

Finding volume of bubbles

Please login with a confirmed email address before reporting spam

Hello everyone, I am simulating a problem which has two bubbles aligned vertically seperated by some distance. They both rise vertically up due to buoyancy. The domain isaxi-symmetricand level-set method is used for solving the two-phase problem.

I want to calculate volume of the two bubbles (per radian) seperately.

Please help me doing so. Thank you in advance.

Niraj


1 Reply Last Post 2021年8月1日 GMT+2 11:34

Please login with a confirmed email address before reporting spam

Posted: 3 years ago 2021年8月1日 GMT+2 11:34
Updated: 3 years ago 2021年8月1日 GMT+2 18:18

Hello Niraj,

In the model builder, for each bubble :

  • define a named selection
  • define a domain integration operator and sets its domain of application to the named selection you just created. Default names will beintop1andintop2but you may change it to something more explicit
  • create a variablevolume_1 = intop1(2*pi*r)

Hence, you are integrating the function2*pi*rwhererdenotes the radial coordinate of your axi-symmetric problem. Without the axial symmetry, you should integrate the constant function1instead. I would not be surprised to learn that COMSOL already takes care of the2*pi*rfactor for you, so you should check with a simple geometry (such as a cylinder) which of these two integrands gives the correct result.

Hello Niraj, In the model builder, for each bubble : * define a named selection * define a domain integration operator and sets its domain of application to the named selection you just created. Default names will be `intop1` and `intop2` but you may change it to something more explicit * create a variable `volume_1 = intop1(2*pi*r)` Hence, you are integrating the function `2*pi*r` where `r` denotes the radial coordinate of your axi-symmetric problem. Without the axial symmetry, you should integrate the constant function `1` instead. I would not be surprised to learn that COMSOL already takes care of the `2*pi*r` factor for you, so you should check with a simple geometry (such as a cylinder) which of these two integrands gives the correct result.

Note that while COMSOL employees may participate in the discussion forum, COMSOL®software users who are on-subscription should submit their questions via theSupport Centerfor a more comprehensive response from the Technical Support team.

Baidu
map