CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

How to specify an oval shape bubble?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2017, 16:09
Default How to specify an oval shape bubble?
  #1
New Member
 
Lieh
Join Date: Mar 2017
Posts: 26
Rep Power: 9
akesm is on a distinguished road
Hello

I am investigating stationary shape bubbles, I managed to set up a case for circular stationary gas bubble in water, now I want to have an oval/ellipsoidal shape bubble. How can I define such a shape?
The circular/spherical one I defined in my setFieldsDict by
sphereToCell
{
centre ( 0 0.01 0 );
radius 0.0033;
fieldValues
(
volScalarFieldValue alpha.water 0
);
}

How to do something similar to have initially an oval shape bubble?
akesm is offline   Reply With Quote

Old   March 27, 2017, 04:28
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

I think you should look for funkySetFields, part of swak4Foam.

Regards,
Tom
tomf is offline   Reply With Quote

Old   March 27, 2017, 07:00
Default
  #3
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20
floquation will become famous soon enough
Tom is right.

This is my spherical bubble quickly converted to an ellipsoid for you:
Code:
funkySetFields -latestTime -keepPatches -field alpha.water -expression "sqr(pos().x-$x_b)/sqr(a)+sqr(pos().y-$y_b)/sqr(b)+sqr(pos().z-$h_b)/sqr(c)<1?0:1"
floquation is offline   Reply With Quote

Reply


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
A rising bubble in a stagnant liquid with two-fluid-model fs82 OpenFOAM Running, Solving & CFD 30 August 18, 2016 12:27
[ANSYS Meshing] Bubble modelling to simulate shape oscillations akash ANSYS Meshing & Geometry 5 February 1, 2013 01:32
[GAMBIT] Bubble modelling to simulate shape oscillations akash ANSYS Meshing & Geometry 6 January 30, 2013 12:17
Problem of simulating shape oscillations of Bubble - Multiphase flow akash FLUENT 2 January 29, 2013 13:46
Query on VOF for Bubble rise Vamsi Main CFD Forum 0 December 22, 2005 00:02


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