CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [blockMesh] Creating an internal mesh within blockMesh? (https://www.cfd-online.com/Forums/openfoam-meshing/203087-creating-internal-mesh-within-blockmesh.html)

ashish.vinayak June 18, 2018 03:14

Creating an internal mesh within blockMesh?
 
Hi,

I would like to create an internal mesh (cylinder) within a blockMesh (cube).

The idea would be to import a cylinder into the cube geometry. The end result would merge both the geometries together. However, I require that the cylinder maintains its surface patch after the merging.

How should I go about doing this?

simrego June 18, 2018 09:32

Hi!

Try to use snappyHexMesh. I think that's the easiest way.

ashish.vinayak June 18, 2018 17:03

Any tips on how I would go about doing this?

sk11 June 22, 2018 03:21

Under refinement surfaces in snappyHexMesh, there is option to provide faceType as internal

Quote:

refinementSurfaces
{
shape_name
{
level (2 2);
faceType internal;
faceZone shape_name;
cellzone shape_name;
cellZoneInside inside;
}
}
Here shape_name is specified in the geometry section. For more information, read the snappyHexMesh dict file from the directory etc/caseDicts/annotated


Sarath

ashish.vinayak June 22, 2018 03:42

Thanks sk11 ! Turns out in 2 days I figured out the same thing as well and learnt how to use SHM as well :) Patience is key ;)

I'm using the baffle option though instead of internal it seems to do the job for my small test cases.

Quote:

Originally Posted by sk11 (Post 696843)
Under refinement surfaces in snappyHexMesh, there is option to provide faceType as internal



Here shape_name is specified in the geometry section. For more information, read the snappyHexMesh dict file from the directory etc/caseDicts/annotated


Sarath



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