CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

mergeMeshes hex + tet

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 22, 2011, 10:10
Default mergeMeshes hex + tet
  #1
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 6
flowris is on a distinguished road
Hello,

I want to do mergeMeshes on a hex and a tet mesh, see picture. Is this possible? When I run
mergeMeshes . grid1 .grid2
I get
Code:
Master:      "." "grid1"  region region0
mesh to add: "." "grid2"  region region0

Create Times
Reading master mesh for time = 0
Create mesh

--> FOAM Warning : 
    From function directTopoChange::addMesh(const polyMesh&, const labelList&,const labelList&, const labelList&,const labelList&)
    in file directTopoChange/directTopoChange/directTopoChange.C at line 2281
Segmentation fault
Attached Images
File Type: jpg Screenshot.jpg (40.4 KB, 56 views)
flowris is offline   Reply With Quote

Old   June 22, 2011, 10:24
Default
  #2
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 6
stevenvanharen is on a distinguished road
You need to have a conformal interface as far as I know.

This is not the case for you. I don't know how you made the mesh, but maybe you can retry with a conformal interface. I think it will work than.
stevenvanharen is offline   Reply With Quote

Old   June 22, 2011, 16:16
Default
  #3
Member
 
Logan Page
Join Date: Sep 2010
Posts: 38
Rep Power: 6
Logan Page is on a distinguished road
You can create nice hybrid structured / unstructured meshes with gmsh (tho it can take a while to setup for more complex geometries). This also imports into OpenFOAM quite nicely.
Logan Page is offline   Reply With Quote

Old   June 23, 2011, 03:45
Default
  #4
Senior Member
 
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 8
Arnoldinho is on a distinguished road
Quote:
I want to do mergeMeshes on a hex and a tet mesh, see picture. Is this possible?
I don't know the source of your error message, but it is generally possible to merge tet + hex meshes and use them in OF, see attached picture. I made this using blockMesh, salome, engrid, mergeMeshes and stitchMesh.
Generally I would not recommend it, as you can get a lot of trouble using tet meshes (at least when using the interFoam solver). You could try snappyHexMesh instead.



Arne
Arnoldinho is offline   Reply With Quote

Old   June 23, 2011, 10:14
Default
  #5
Member
 
kshitij neroorkar
Join Date: Mar 2009
Location: Michigan, USA
Posts: 32
Rep Power: 7
kdneroorkar is on a distinguished road
I know you can have non-conformal interfaces using ggi patches, but I am not sure if it is alright to have one side hex and another side tet. Does anyone know about this?
kdneroorkar is offline   Reply With Quote

Old   June 23, 2011, 11:10
Default
  #6
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 369
Rep Power: 14
deepsterblue will become famous soon enough
GGI doesn't really care about cell-topology on either side. The only limitation is that patch faces be convex, because of a limitation in the intersection algorithms.
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   June 23, 2011, 11:53
Default A little explanation
  #7
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 6
flowris is on a distinguished road
Thanks for the many replies.

A little explanation: I made a tet mesh around a foil inside a circle with gmsh. Now I want to add layers on the foil surface. As far as I know, this cannot be done in gmsh, because the foil is an extrude spline profile.

If I use
refineWallLayer -overwrite airfoil 0.3
I get a bad layer with skew cells, see picture.

So any suggestions on how to ad these layers?
Attached Images
File Type: jpg Screenshot.jpg (75.7 KB, 50 views)
flowris is offline   Reply With Quote

Old   June 23, 2011, 12:03
Default
  #8
Senior Member
 
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 8
Arnoldinho is on a distinguished road
Quote:
A little explanation: I made a tet mesh around a foil inside a circle with gmsh. Now I want to add layers on the foil surface
If you just want to add layers, you might become happy with engrid! On simple structures, I achieved good results with this tool (which is not part of OF!). But it only seems to work for 3D cases - I don't know what your case is.

RefineWallLayers might not be a good choice in your case, as it just splits your surrounding cells.
Arnoldinho is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Blockmesh error - 2D scramjet - please help ishaninair OpenFOAM Native Meshers: blockMesh 7 March 18, 2011 02:14
[ICEM] how can i create a consistent transitions between tet and hex? specifically my model? snailstb ANSYS Meshing & Geometry 3 March 15, 2010 22:26
Hex versus Tet Jade M CFX 1 March 12, 2010 00:41
CheckMeshbs errors ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 04:34
poly, hex dom, hex, tet azmir CD-adapco 0 October 31, 2007 21:24


All times are GMT -4. The time now is 20:46.