Jump to content
Sign in to follow this  
td

How to brick mesh pipe for CFD?

Recommended Posts

Hi,

 

I'm trying to brick mesh a straight pipe for OpenFOAM CFD, meaning I need a boundary layer, shell elements on the outer surfaces and a core - all hex elements. My meshing attempts up to now were only partially successful. I created a boundary layer by splitting the solid in an inner and outer pipe, then subtract one from the other, deleting the solid so I've got the inner and outer surfaces, created a surface mesh, then brick elements by using Element offset for the boundary layer. Unfortunately, the shell elements are lost in the process and I don't quite know how to create shells from the existing solids. Project nodes does not seem to be the right tool.

 

If someone could post a general workflow for this type of brick meshing I'd be very grateful. I've only used CFD tetramesh up to now, but OpenFOAM does seem to prefer brick elements. Unfortunately, I can't use hex core with a tetra oder penta boundary layer and transition, OpenFOAM can't handle different element types at once.

 

Edit: Sorry, this should have been posted in the Hypermesh subforum!

Share this post


Link to post
Share on other sites

I just noticed that the shell mesh I use for the element offset is preserved, so my previous post is partially wrong. I used the outer circumference as source meshing surface, thus it's the only surface containing shell elements. Now I need to create a matching surface mesh on the remaining inflow/outflow surface and ensure connectivity between everything.

 

The pipe is 0.5m in length and 0.1m in diameter.

pipe.jpg

hexpipe.hm

Share this post


Link to post
Share on other sites

Thank you, looks promising. But that does not resolve the issue of the surface mesh, unfortunately. How can I get a matching mesh on every outer surface from the solid mesh or vice-versa? OpenFOAM needs those to define the boundary conditions.

Share this post


Link to post
Share on other sites

Hi again,

 

I've got another question concerning biasing towards the middle axis of the pipe. The elements always begin to skew as can be seen in the image. How can I avoid this?

bias.JPG

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...