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/)
-   -   [Gmsh] creating an exit volume mesh (https://www.cfd-online.com/Forums/openfoam-meshing/128939-creating-exit-volume-mesh.html)

dmck January 24, 2014 10:17

creating an exit volume mesh
 
1 Attachment(s)
hi

I'm trying to create an exit volume for a pipe simulation, I want to simulate the outflow from the pipe into an exit volume.

what would be the best way to do this for OpenFoam?

i would like to create a structured mesh for both the pipe and the exit volume

i'm new to meshing and would like some advice on the correct way to do this,


i've attached an image of the sorta mesh i would like,

thanks for helping

David

alexeym January 27, 2014 11:28

Hi,

The best way is the way you are familiar with ;)

1. Use blockMesh. Create mesh for tube (just like for any cylinder), create mesh for exit volume (in one blockMeshDict). You will have two patches of different sizes which are in the same plane - exit patch of the tube and adjacent exit volume wall. Use mergePatchPairs to remove tube exit patch from adjacent wall patch.

2. Use external mesher (gmsh, Salome etc) and convert mesh.

dmck January 27, 2014 12:59

2 Attachment(s)
hi Alexey

thanks for your reply, I was able to use the mergePatchPairs within blockMeshDict to create an exit volume at the end of the pipe and it passed checkMesh, see image

however, I have now released that I would need to terminate the pipe in the centre of the exit volume - see second image, I never thought of this before, I'm simulating a pressure wave exiting the pipe.

can anyone point me in the right direction to do this, I'm guessing the I would need to do something to the pipe cells within the exit volume

any advice would be helpful

David

dmck February 17, 2014 14:19

problem sorted, by using face matching and structuring the mesh around the pipe i was able to solve the problem and get some good results

face matching as described in section 5.3 mesh generation with blockMesh utility -

face matching the set of faces that comprise a patch from one block are formed from the same set of vertices as a set of faces patch that comprise a patch from another block;


All times are GMT -4. The time now is 13:34.