|
[Sponsors] | |||||
|
|
|
#1 |
|
Guest
Posts: n/a
|
Currently I am working on the bubble dynamics with OpenFoam. I want to use a fixed-grid, sharp-interface method for it. Is it difficult to implement a cut-cell approach for moving boundary in OpenFoam? Please give me some suggestion, thanks very much.
|
|
|
||
|
|
|
#2 |
|
Guest
Posts: n/a
|
Is there any class that I can deal with just one or two cells? For example, I want to cut a cell by a plane or merge two adjoining cells.
|
|
|
||
|
|
|
#3 |
|
Member
Tommaso Lucchini
Join Date: Mar 2009
Posts: 87
Rep Power: 18 ![]() |
Hi Chen,
you can cut cells and deal with moving boundary by means of the mesh modifiers implemented in OpenFoam. Have a look at the $FOAM_SRC/topoFvMeshes, $FOAM_TUTORIALS/icoTopoFoam and $FOAM_APP/incompressible/icoTopoFoam If you want only to move boundaries without changing the mesh topology you can have a look at how the mesh is moved in the movePiston.H file in the $FOAM_SRC/engine/include You can also find something useful in the discussion group, have a look to the "Dynamic Mesh Changes" topic in the tree view. bye tommaso |
|
|
|
|
|
|
|
|
#4 |
|
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 27 ![]() |
Hi Chen,
Cut cell by plane: the closest example is the mesh/advanced/refineWallLayer. Defines cut through cells by the cut through the edges and/or vertices. Merge two adjoining cells: mesh/advanced/removeFaces |
|
|
|
|
|
|
|
|
#5 |
|
Guest
Posts: n/a
|
Thank you!
I have tried the class cellCuts and it seems to work. |
|
|
||
|
|
|
#6 |
|
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 27 ![]() |
Would be quite interested to see some examples if you have something working.
|
|
|
|
|
|
|
|
|
#7 |
|
Guest
Posts: n/a
|
![]() |
|
|
||
|
|
|
#8 |
|
Guest
Posts: n/a
|
I have generated a uniform 2-D mesh using blockMesh. Then I used the removeFaces to merge two adjoining cells by adding the adjoining face into the faceSet. But I got an error message "XXXX face is not internal". Can you tell me why?
Thank you very much for your kind reply! |
|
|
||
|
|
|
#9 |
|
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 27 ![]() |
Are you sure the faces you're trying to remove are internal (i.e. inbetween two cells)? Use foamToVTK with the -faceSet option to display them.
|
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Lagrangian Approach | Biswajit Sarkar | Main CFD Forum | 9 | January 25, 2013 09:31 |
| Lagrangian Approach | Biswajit Sarkar | Main CFD Forum | 3 | August 4, 2005 14:42 |
| Equilibrium approach. | Fire Man. | Main CFD Forum | 9 | September 7, 2004 12:32 |
| Tell me better approach? | zahid | FLUENT | 0 | March 10, 2003 05:55 |
| novel approach | David | Main CFD Forum | 0 | October 31, 2000 23:24 |