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

[cfMesh] Refine mesh inside auxiliary STL

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 7, 2018, 09:42
Post Refine mesh inside auxiliary STL
  #1
Member
 
Marc
Join Date: May 2017
Posts: 42
Rep Power: 8
Dreoasteh is on a distinguished road
Hi,

I'm trying to mesh a nozzle geometry with cfmesh and have a question regarding refinement with external STLs.

In snappy you can access an auxiliary STL and refine inside it using "refinementRegions" and "mode inside".

However in cfmesh I only see two options:

  1. Use the primitive shapes in "objectRefinements" from which I cannot produce the complex shape I'm looking for.

    OR
  2. Use "surfaceMeshRefinements" which only refines the region of the mesh intersected by the auxiliary surface.
Is there a way to do the same thing as in snappyHexMesh (importing a surface mesh in STL and refine inside it?).
Dreoasteh is offline   Reply With Quote

Old   April 1, 2020, 11:10
Default
  #2
New Member
 
Lei
Join Date: Oct 2018
Posts: 3
Rep Power: 7
MichaelXPS is on a distinguished road
Have you found an answer to this? I am thinking of using patch for overlapping faces of different regions but am also trying to figure out how to get a refinement in an arbitrary region, e.g. described by another stl file.

Quote:
Originally Posted by Dreoasteh View Post
Hi,

I'm trying to mesh a nozzle geometry with cfmesh and have a question regarding refinement with external STLs.

In snappy you can access an auxiliary STL and refine inside it using "refinementRegions" and "mode inside".

However in cfmesh I only see two options:

  1. Use the primitive shapes in "objectRefinements" from which I cannot produce the complex shape I'm looking for.

    OR
  2. Use "surfaceMeshRefinements" which only refines the region of the mesh intersected by the auxiliary surface.
Is there a way to do the same thing as in snappyHexMesh (importing a surface mesh in STL and refine inside it?).
MichaelXPS is offline   Reply With Quote

Old   April 1, 2020, 11:31
Default
  #3
Member
 
Marc
Join Date: May 2017
Posts: 42
Rep Power: 8
Dreoasteh is on a distinguished road
Hi,

From out testing cfMesh is not ideal because, although it achieves great boundary layer coverage, it retains bad quality cells which causes cases to eventually diverge. My recommendation would be to go back to sHM which does not have this critical issue and enables you to have arbitary refinement regions
Dreoasteh is offline   Reply With Quote

Old   April 1, 2020, 15:06
Default Catchup discussion
  #4
New Member
 
Lei
Join Date: Oct 2018
Posts: 3
Rep Power: 7
MichaelXPS is on a distinguished road
Hi, Dreoasteh,

thanks for your comment on cfMesh. By bad quality cell you mean the degree of skewness? I don't know yet but maybe there's some options to regulate this like in blockMesh? Ok, I would try sHM that you suggested and the only problem is that I don't know what is a sHM? Could you inform a full name?

Quote:
Originally Posted by Dreoasteh View Post
Hi,

From out testing cfMesh is not ideal because, although it achieves great boundary layer coverage, it retains bad quality cells which causes cases to eventually diverge. My recommendation would be to go back to sHM which does not have this critical issue and enables you to have arbitary refinement regions
MichaelXPS is offline   Reply With Quote

Old   April 1, 2020, 15:17
Default
  #5
Member
 
Marc
Join Date: May 2017
Posts: 42
Rep Power: 8
Dreoasteh is on a distinguished road
The bad quality cells come from different types, skewness, cell volume, etc. There's no option to tighten tolerances or improve mesh quality as the whole idea of cfMesh is to have an automatic mesher with a small numer of degrees of freedom. In our experience it is always a good idea to try out cfMesh but be aware that your case can blow up with no aparent reason and with little in the way of fixing it.

By sHM I ment snappyHexMesh which is an automatic mesher that comes with OpenFOAM.
Dreoasteh 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
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 03:36
Gambit problems Althea FLUENT 22 January 4, 2017 04:19
[snappyHexMesh] SHM problem : KVLCC2 with appendage mesh sc.park OpenFOAM Meshing & Mesh Conversion 1 March 13, 2016 14:28
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 22:11


All times are GMT -4. The time now is 17:01.