CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[mesh manipulation] Best way to merge meshes?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 27, 2016, 08:07
Smile Best way to merge meshes?
  #1
Senior Member
 
James
Join Date: May 2013
Posts: 116
Rep Power: 12
Tensian is on a distinguished road
Dear all,

I have my geometry in a stl file (sorry, I cannot share it). I have meshed it succesfully with snappyHexMesh. For example, let us imagine abifurcated pipe, with two inlets and one outlet. My triSurface folder constains then in_left.stl, in_right.stl, out.stl and wall.stl). These are the final patches I need for my flow analysys.

Now I need to add a sphere to my mesh. This sphere has to enclose my two inlets, but not the whole stl geometry.

From my point of view I can try three things:

1. Create the sphere .stl (MeshLab for example), move it until it is placed where I want and later manually try to adjunst each vertex and delete the parts of the sphere that are inside the pipe (I would like to impose one BC at the sphere surface, but some parts of the sphere are now inside the pipe. If for example sphere is provided with a wall BC, I don't want that the part of the sphere that is inside my pipe to be a wall, so I have to removed the triangles on this zone or in some manner change it to interior cells later). When this is done, come back to snappy and mesh.

2. Use OF utilities to merge meshes. First create the stl of the sphere, move it to the desired place and mesh original geometry and sphere independently. When I have the two foam meshes, then try to merge them

3. Use searchableSphere in the snappyHExMeshDIct. I have tried this but I am not able to mesh the sphere and thhe original geometry. If the sphere is meshed, the original geometry dissapears, and if I change the locationInMesh, then the original geometry is meshed, but the sphere dissapears, and also the part of the original geometry that intersects the sphere (it is something like a substract tool!)

So I am not sure which strategy is better. From my point of view the best should be the use of searchableSphere, but I don't know how to mesh my geometry and the spehere togeteher.

Any help will be much appreciated. If you need more details please let me know. It seems not to be a complicated task, but I have not solved it so far.

Thanks in advance.
Tensian is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] Merge volume meshes Hexa-tetra with ICEM ConteGhibel ANSYS Meshing & Geometry 6 April 20, 2018 07:00
Merge and Stitch meshes using pyFoam libraries shaileshbg OpenFOAM Programming & Development 1 February 19, 2018 02:30
Merge Meshes in parallel DominicTNC OpenFOAM 0 September 4, 2017 23:39
[ICEM] Smoothing before merge meshes FJSJ ANSYS Meshing & Geometry 0 May 20, 2013 12:30
[ICEM] merge two hexa meshes gajemon ANSYS Meshing & Geometry 1 January 29, 2011 20:49


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