CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   About the cutcell approach (https://www.cfd-online.com/Forums/openfoam-solving/60492-about-cutcell-approach.html)

chen_jun September 1, 2005 23:38

Currently I am working on the
 
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.

chen_jun September 7, 2005 07:43

Is there any class that I can
 
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.

lucchini September 7, 2005 07:56

Hi Chen, you can cut cells an
 
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

mattijs September 8, 2005 05:46

Hi Chen, Cut cell by plane:
 
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

chen_jun September 8, 2005 07:09

Thank you! I have tried the c
 
Thank you!
I have tried the class cellCuts and it seems to work.

mattijs September 8, 2005 07:30

Would be quite interested to s
 
Would be quite interested to see some examples if you have something working.

chen_jun September 8, 2005 08:28

http://www.cfd-online.com/Open
 
http://www.cfd-online.com/OpenFOAM_D...ges/1/1084.jpg

chen_jun September 12, 2005 12:36

I have generated a uniform 2-D
 
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!

mattijs September 12, 2005 13:44

Are you sure the faces you're
 
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.


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