Bubble rising, specification of the interface
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!
You can use sphereToCell to patch bubble. Also for fixed solid wall you can keep it as wall inside the domain.
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?
From Salome Preprocessor to OpenFoam
How can we draw a geometry in Salome and export it to OpenFOAM?
|All times are GMT -4. The time now is 04:50.|