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

[ICEM] merge meshes between hexa and prism

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 14, 2013, 03:20
Default
  #21
Far
Senior Member
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,558
Blog Entries: 6
Rep Power: 54
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
can we avoid penta-5 elements?
Far is offline   Reply With Quote

Old   November 15, 2013, 07:16
Default
  #22
Senior Member
 
Andrea
Join Date: Feb 2012
Location: Leeds, UK
Posts: 179
Rep Power: 16
Andrea1984 is on a distinguished road
Hi Stuart,

I am following your approach (many thanks for the tips!) and actually I feel that I am close to obtain my goal
I have created the conformal patch mesh on my unstructured region, but when I inflate the prisms from this surface mesh (enabling "using existing quad layers") the mesh is no more conformal at the interface, since the inflation of the prisms do modify the surface mesh at the interface (see attached pictures).

Any suggestion on how overcome this problem?

Thank you
Andrea
Attached Images
File Type: jpg conf_interf.JPG (88.3 KB, 133 views)
File Type: jpg interf_prism.JPG (89.4 KB, 134 views)
Andrea1984 is offline   Reply With Quote

Old   November 21, 2013, 06:43
Default
  #23
Senior Member
 
Andrea
Join Date: Feb 2012
Location: Leeds, UK
Posts: 179
Rep Power: 16
Andrea1984 is on a distinguished road
Hi Scribby,

I am trying to use this approach in a simple test case with the aim of using it for my "real" complex geometry.
I am able to correctly create the prism layer both in the tetra and in the hexa regions and a conformal interface between them, but the hexa mesh is highly distorted by the creation of the prisms layer (as you can see in the attached pictures). This is the same problem that I am experiencing on my real geometry, but in the latter case the deformation is even more dramatic because the blocking is far more complex with respect to a simple pipe.

Do you or someone else have any idea on what is wrong with that?

I am also attaching my case geometry, blocking and settings if someone wants to reproduce it.

Thanks

Andrea

Quote:
Originally Posted by scribby182 View Post
Hello FJSJ and all,

I have been trying to battle with hybrid meshing the past few days myself. I've definitely been a little unhappy with the capabilities of ICEM vs. other hybrid meshing I've seen.

From what I can tell, you can easily do a hybrid tet+hex mesh if you have no inflation/prism layers. In this case, you can make the two meshes separately, load them both together (selecting merge rather than replace), and then use the merge mesh tool at the interface. I think this is something that has some tutorials on the customer portal and has also been discussed here.

Where it gets tricky is when prism layers are included. Like some of the above posts, I have not yet been able to merge meshes when the tet already includes prism layers. The one place I have had a little success though is by:
1) building the hex and tet (no prism)
2) loading both together and merging
3) adding a prism layer to both the tet and hex blocks

I believe this works as long as the total height of the prism layer is less than the first cell height in the hex mesh. I have only done this with really simple test geometries so far, but it seems to just replace a portion of the first hex cell and leave the rest unchanged. I just put a two node (1 element) o-grid right next to the surface I wanted the prism layer on, that way I easily make sure I had the right element size. One problem I see in the future for this method might be that, for complex geometry, it isn't always possible to really closely control the height of an ogrid. This might mean it either grows a lot compared to the desired first cell height (so you have a strange intermediate cell between prism and rest of mesh), or it might shrink and the prism layer may fail entirely.

If anyone tries any of this or has any success including inflation layers/prism layers in hybrid meshes, I'd really appreciate your thoughts.

Scribby182
Attached Images
File Type: jpg before_prisms.jpg (91.3 KB, 116 views)
File Type: jpg after_prisms.jpg (88.5 KB, 130 views)
Attached Files
File Type: zip test.zip (8.9 KB, 6 views)
Andrea1984 is offline   Reply With Quote

Old   November 21, 2013, 07:31
Default
  #24
Senior Member
 
Stuart Buckingham
Join Date: May 2010
Location: United Kingdom
Posts: 267
Rep Power: 26
stuart23 will become famous soon enoughstuart23 will become famous soon enough
Hi Far,

No you cannot avoid pentas at the interface. However the pentas that we are used to are the high aspect ratio pentas that are generated at the terminating faces of stairstepped prisms. These pentas are not the same as they are connected to (hopefully) a very high quality quad on one side, and 4 very high quality tris on the other sides. You should also smooth the pentas while freezing the prisms and hexas. There is no other way to join quads (from hexas) to tris (from tets) except using pentas.

Stu
stuart23 is offline   Reply With Quote

Old   November 21, 2013, 07:34
Default
  #25
Senior Member
 
Stuart Buckingham
Join Date: May 2010
Location: United Kingdom
Posts: 267
Rep Power: 26
stuart23 will become famous soon enoughstuart23 will become famous soon enough
Hi Andrea,

Make sure you set your prism parameters to match the quad faces. The sizes do not have to be exactly the same, but you will not get it to work if your first prism is double (or half) the height of your first hexa. Also, turn smoothing off for the prism generation. You should have started with a high quality surface mesh already, so smoothing should not be necessary. If your geometry is quite complex, however, smooth manually after the prism generation with the quads frozen.

Good Luck,

Stu
stuart23 is offline   Reply With Quote

Old   November 21, 2013, 07:41
Default
  #26
Senior Member
 
Andrea
Join Date: Feb 2012
Location: Leeds, UK
Posts: 179
Rep Power: 16
Andrea1984 is on a distinguished road
Hi Stuart,

Thank you for the advice; I can see your point but one of the requirements for generating the prisms also in the hexa region is that the overall prisms height should be less than the first hexa height; so if, for example, I want to generate three layers of prisms there is no way to make the first prism height similar to the first hexa height.

Am I right or something is wrong in my reasoning?

Andrea
Andrea1984 is offline   Reply With Quote

Old   November 21, 2013, 08:11
Default
  #27
Senior Member
 
Stuart Buckingham
Join Date: May 2010
Location: United Kingdom
Posts: 267
Rep Power: 26
stuart23 will become famous soon enoughstuart23 will become famous soon enough
Hi Andrea,

I should clarify, what was suggested earlier and my method are completely different. For my method with the "Using Quad Elements" enabled, you do not create the prisms in the hexa region, they are only created in the unstructured region before it is filled with tets. I developed this method for complex hexa geometries where creating the required distribution (large first layer then smaller second layer) required for running prism on hexas was not feasible.

It is up to you which method you choose. I used my method to create the below image.

Stu
Attached Images
File Type: jpg Conformal tet-prism-hexa.jpg (49.7 KB, 149 views)
stuart23 is offline   Reply With Quote

Old   November 21, 2013, 08:15
Default
  #28
Senior Member
 
Andrea
Join Date: Feb 2012
Location: Leeds, UK
Posts: 179
Rep Power: 16
Andrea1984 is on a distinguished road
Now it is clear, I think my first option is going to be your method, because it seems more reasonable to not create the prism layer in the structured domain.

Thank you again

Andrea
Andrea1984 is offline   Reply With Quote

Old   November 21, 2013, 09:42
Default
  #29
Senior Member
 
Andrea
Join Date: Feb 2012
Location: Leeds, UK
Posts: 179
Rep Power: 16
Andrea1984 is on a distinguished road
Hi Stuart,

just to let you and the others know that your method worked for me on a simple pipe with a single layer of prisms (attached picture); now let's do the hard work on the "real" thing.
Thank you so much for sharing it (and maybe I should bother you again in the future )

Andrea

Quote:
Originally Posted by stuart23 View Post
Conforming hexas into prisms is doable, but not easy. If you are not familiar with ICEM, just stick with a non-conformal interface.

The trick is that you must build the tetra/prism zone bottom-up to be conformal. Firstly create conformal surface mesh in the unstructured region using PD or PI with respect line elements. Then inflate prisms off the surface with the Advanced Prism Param: "Using Quad Elements" enabled. Finally fill the rest of the void with Delaunay to connect the prisms, quads and whatever other tris are in your domain.

You can only do this using the Pre Inflation technique. "Using Quad Elements" will not work if there is already tetras/pyras in your domain.

Once again, if you did not understand these instructions, I would suggest using a non-conformal interface.

Good Luck,

Stu
Attached Images
File Type: jpg test_interface.jpg (104.6 KB, 133 views)
Andrea1984 is offline   Reply With Quote

Old   November 25, 2013, 09:39
Default
  #30
Senior Member
 
Andrea
Join Date: Feb 2012
Location: Leeds, UK
Posts: 179
Rep Power: 16
Andrea1984 is on a distinguished road
Hi Stuart,

as promised I am here to bother you again
I am able to use your technique in simple test cases but I am really struggling to use it in my actual geometry.
The main problem is that I am not able to generate the Prisms with the Pre Inflation Technique starting from my conformal surface mesh.
(notice that I can successfully use the same surface mesh with Delaunay and then inflate the prism in my volume mesh but, as you mentioned, this is of no help if you want to create a conformal interface with the prisms).

The log is the following:

"completed smoothing
extruding prism layer 1
there is a problem with the shell with vertices
(-67.9916,-0.437414,-85.9903) (-67.1629,-0.433143,-85.9903) (-67.9384,2.80371,-85.9903)
stopping prism and writing mesh
performing cleanup smoothing
Created inflation elements:
Layer 1: 0 prisms, 0 pyramids, 0 hexas
Layer 2: 0 prisms, 0 pyramids, 0 hexas
Layer 3: 0 prisms, 0 pyramids, 0 hexas
failed to create any inflation elements
prism finished"


...and the three points listed in the log does not define any shell element!

Do you have any idea of what the problem may be?

Thanks

Andrea
Andrea1984 is offline   Reply With Quote

Old   November 25, 2013, 09:47
Default
  #31
Senior Member
 
Stuart Buckingham
Join Date: May 2010
Location: United Kingdom
Posts: 267
Rep Power: 26
stuart23 will become famous soon enoughstuart23 will become famous soon enough
Hi Andrea,

When inflating stand alone surface mesh, ICEM Prism uses the surface element normal to indicate the direction of inflation. You should check that the normals are pointing into the direction of the fluid volume. The easiest way (I think) to check this is to right click the shells in the Model Tree and select show normal arrows. All the arrows should be pointing into the fluid zone.

Another possible reason Prism failed is because of bad quality surface mesh. As a rough guide, you should try and smooth your surface mesh up to at least 0.4 before inflating prisms.

Stu
stuart23 is offline   Reply With Quote

Old   November 28, 2013, 06:30
Default
  #32
Senior Member
 
Andrea
Join Date: Feb 2012
Location: Leeds, UK
Posts: 179
Rep Power: 16
Andrea1984 is on a distinguished road
Hi Stuart,

the normals orientation is ok and so is the shell mesh quality (lowest quality at about 0.45) but I still get the same problem.
I am trying to run my simulation using another meshing technique, but when I will have a little bit of spare time I will come back to your approach.

Thank you again for sharing your method

Andrea
Andrea1984 is offline   Reply With Quote

Old   July 28, 2014, 10:24
Default
  #33
Senior Member
 
Andrea
Join Date: Feb 2012
Location: Leeds, UK
Posts: 179
Rep Power: 16
Andrea1984 is on a distinguished road
Just a quick update on this topic as someone may be interested: finally, I managed to create a beautiful conformal interface between a tetra-with-prisms and an hexa mesh for a quite complex geometry (an industrial gas turbine combustor) following Stuart's approach (thanks again for sharing it).

If anyone else is interested please feel free to ask for details.

Andrea
Andrea1984 is offline   Reply With Quote

Old   February 26, 2015, 05:32
Default
  #34
New Member
 
Markus Schlipf
Join Date: Feb 2015
Location: University of Stuttgart
Posts: 2
Rep Power: 0
MarkusIHS is on a distinguished road
Hi Andrea,

I know this thread is a few months old, but I try to follow your and Stuart's approach since a few days and don't even manage to get a hybrid mesh with prism layer in the unstructured part in a tube. Not to mention my real case in a turbomachinery runner's channel.
Here is my procedure:
*Creating structured O-Grid in one part (pipe inlet, first half of the pipe wall and interface plane) and "load mesh from blocking"
*Creating unstructured surface-mesh on other part of the pipe wall and outlet with "respect line elements" to get a fitting surface-mesh
*Setting mesh parameters for prism to fit the first layer of the structured grid (only one layer or more layers with same height ratio doesn't make any difference). "Use Existing Quad Layers" in Advanced Parameters is chosen.
*Try to compute the prism layer
ICEM says at this point with:

create_bfcart_inflation -inflate 1 -cleanup
Total Num. tris = 906
creating offset layer...
No new vertices created in offset layer


and actually nothing happens... Error message works

Can you tell me if there are more special settings to do or do you see any mistake in my procedure?
I would be very happy if you could help me with this problem!

Thank you in advance!
Markus
MarkusIHS is offline   Reply With Quote

Old   February 26, 2015, 09:30
Default
  #35
Senior Member
 
Andrea
Join Date: Feb 2012
Location: Leeds, UK
Posts: 179
Rep Power: 16
Andrea1984 is on a distinguished road
Hi Markus,

the steps to create the conformal interface are:
1) create the hexa mesh in the structured region and a full tetra mesh (i.e. without prisms) in the unstructured region
2) create a conformal interface between these two meshes
3) delete all the volume elements and all the surface elements in the structured region (but make sure you retain the quads at the interface)
4) if necessaray smooth the surface mesh freezing the quads
5) inflate prism layers from the surface mesh using the Existing quad layers option and making sure that the prisms layers match the nodes distribution of the structured mesh
6) fill the empty volume with Delaunay mesh
7) load the structured mesh
8) merge the nodes at the interface with a small tolerance
9) delete the quad elements in the interface part
10) check the mesh and hopefully everything should be ok!

The crucial part is the prisms inflation step. You prism distribution should match the existing quads very precisely in order for this technique to work correctly.

Good luck
Andrea
Andrea1984 is offline   Reply With Quote

Old   February 26, 2015, 10:56
Default
  #36
New Member
 
Markus Schlipf
Join Date: Feb 2015
Location: University of Stuttgart
Posts: 2
Rep Power: 0
MarkusIHS is on a distinguished road
Yeah, that works! Thank you very much!
MarkusIHS is offline   Reply With Quote

Old   February 5, 2019, 11:14
Default
  #37
New Member
 
Hilton
Join Date: Dec 2016
Location: Rio de Janeiro
Posts: 5
Rep Power: 9
HBetta is on a distinguished road
Hi guys,

I'm doing a mesh similar to discussed here, but I'm still not able to do so. Could anyone give me another tip?

Thank you!
HBetta is offline   Reply With Quote

Old   February 11, 2019, 14:21
Default
  #38
Member
 
Vish
Join Date: Dec 2016
Location: Purdue University, IN, USA.
Posts: 59
Rep Power: 13
anand32 will become famous soon enough
What is your problem? Please explain in a little more details

Thanks

Vishal
Learn ICEM From Scratch
https://www.youtube.com/channel/UCdP..._as=subscriber
anand32 is offline   Reply With Quote

Old   February 12, 2019, 10:28
Default
  #39
New Member
 
Mohammadreza
Join Date: Feb 2019
Posts: 3
Rep Power: 7
mrhaghighatjoo is on a distinguished road
Hi guys, I have a question.
I am gonna generate a hexa/tetra or even tetra/tetra mesh in two domains. when my mesh is coarse, I get to merge them properly and at the interface, there is no problem. BUT, in case I am gonna refine the mesh, unfortunately, a few bad, damaged elements would be appeared at the interface. WHY???
I have even used Edit Mesh-Check Mesh to find out the reason or fix them or ignore them or even create a subset for them. Afterwards, I have used Smooth Mesh Globally too.
The problem is that if I fail to fix these a few damaged elements, they are gonna be appeared in my boundary conditions in Fluent and I would not be able to set them 'interior' in Fluent.

PLEASE Help me. Please shed light on this issue.
Thank you so much.
mrhaghighatjoo is offline   Reply With Quote

Old   February 12, 2019, 11:38
Default
  #40
New Member
 
Hilton
Join Date: Dec 2016
Location: Rio de Janeiro
Posts: 5
Rep Power: 9
HBetta is on a distinguished road
Hi Anand32,

I'm trying to merge a hex and tetra mesh as discussed in the topic. I'm able to accomplish the method described by stuart23 when only one side of my unstructured domain is connected to a structured.

But, in my real case, both sides are connected to a strucuted mesh. Following the steps showed by andrea, I try to delete all the volume elements (after merge meshes) but ICEM is not able to delete tetrahedas, then, I cannot create my Prism layer.

Thanks

Quote:
Originally Posted by anand32 View Post
What is your problem? Please explain in a little more details

Thanks

Vishal
Learn ICEM From Scratch
https://www.youtube.com/channel/UCdP..._as=subscriber
HBetta is offline   Reply With Quote

Reply

Tags
icem, merge meshes, prism


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] Creation of hexa dominant mesh and prism layer gnuboard ANSYS Meshing & Geometry 7 January 11, 2018 05:13
[ICEM] Prism for quad mesh rikio ANSYS Meshing & Geometry 5 December 10, 2016 03:53
[ICEM] Problem when I try to merge hexa & prism pipolaki ANSYS Meshing & Geometry 7 December 4, 2012 09:44
[ICEM] Hexa Prism layer NOT USING hexa (Blocking tab) la7low ANSYS Meshing & Geometry 5 January 29, 2012 00:50
ICEM - Prism Tool Problem carpe85 CFX 0 February 10, 2009 13:25


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