CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Bubble rising, specification of the interface (https://www.cfd-online.com/Forums/openfoam-pre-processing/130914-bubble-rising-specification-interface.html)

Prosper March 5, 2014 20:29

Bubble rising, specification of the interface
 
Hi All,

I just started using OpenFoam and now I'm trying to do a bubble rising problem. Since I'm new, I could have make some seriously stupid mistakes. So I'll be grateful if you can guide me to the right direction.

So I used interDyMFoam. (because I may need to add a solid object later to see the deformation of the bubble.) I think the right place to specify the initial shape of the bubble is in system/setFieldsDict, by defining a 'box' in boxToCell.

My first question is, is it possible to give a circular shape to the interface? What I'm doing now is
box (0.4 0.4 -1.0) (0.5 0.5 1.0)
which gives me a rectangle initial shape.

Second question, if I want to add a fixed(or maybe free falling) solid object to the fluid domain, so that when the bubble rises it deforms due to the presence of the solid, where should I specify the position and shape of the object. Should I add that in the boundary conditions? How about mesh refinement? I am using 'dynamicMeshDict', does it also work with presence of solid object?

Thanks for any piece of advice!

Best,

ybapat March 6, 2014 03:56

Hello ,

You can use sphereToCell to patch bubble. Also for fixed solid wall you can keep it as wall inside the domain.

-Yogesh

Prosper March 6, 2014 11:38

Yogesh,

Thanks for your reply!

I am using cylinderToCell in my 2D case and it seems to be working. I'm sure I'll need sphereToCell in a 3D case.

So if I have a fixed solid wall, do I need to manually divide the single domain into hexagons? Do I need to treat the fixed solid as a hole in the domain? What if I have a solid with complicated shapes like a star? Can I just insert some solid into the domain instead of treating it as a hole?

Best,


Quote:

Originally Posted by ybapat (Post 478465)
Hello ,

You can use sphereToCell to patch bubble. Also for fixed solid wall you can keep it as wall inside the domain.

-Yogesh


Annier March 11, 2014 11:05

From Salome Preprocessor to OpenFoam
 
Hi,
How can we draw a geometry in Salome and export it to OpenFOAM?
Yours
Anil Kunwar


All times are GMT -4. The time now is 02:56.