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

[snappyHexMesh] Toposet - select cells that are under a certain size and within a given bounding box

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By jule

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2014, 07:49
Default Toposet - select cells that are under a certain size and within a given bounding box
  #1
New Member
 
Join Date: Oct 2013
Posts: 6
Rep Power: 12
jule is on a distinguished road
Hi Foamers,
I have been trying to use toposet in order to create a set of cells that are both contained within a bounding box (boxToCell) and under a specified size. Is there such a method?
Many thanks for your help!

Last edited by jule; August 4, 2014 at 13:09.
jule is offline   Reply With Quote

Old   August 5, 2014, 16:52
Default
  #2
New Member
 
Join Date: Oct 2013
Posts: 6
Rep Power: 12
jule is on a distinguished road
Quick update on the above:

I have managed to get around that problem by using a different approach in toposetdict (knowing the topology of the existing refinement levels in my domain).

1. action new
source boxtocell

2. action invert

3. action subset
source boxtocell

I use this approach to refine evenly the free surface area (in combination with refinemesh) across a domain in the normal direction.

Hoping it might be of some use to someone!
dupeng likes this.
jule is offline   Reply With Quote

Old   May 5, 2018, 06:18
Default
  #3
New Member
 
Join Date: Mar 2016
Posts: 17
Rep Power: 10
dupeng is on a distinguished road
Hi jule,
I also simulate ships. I am currently having the problem of refining the free surface. How do you select cells under a certain size? Because I just want to refine those large cells in z direction. Without selecting those cells, refineMesh utility will refine all the cells selected so these cells near the ship will also be refined, which is unnecessary and cause mesh quality problem there.

I know it's an old post but i still look forward for your reply. Thanks.

Peng DU
dupeng is offline   Reply With Quote

Reply

Tags
boxtocell, cell size, cellset, toposet


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



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