|
[Sponsors] |
January 9, 2024, 22:38 |
How to add multiple refinement boxes?
|
#1 |
New Member
dengxin
Join Date: Dec 2023
Posts: 5
Rep Power: 2 |
Hello everyone, first of all, please forgive me for my poor English. I am a new OpenFOAMer, I want to add 8 refinement boxes in snappyHexMeshDict, but it looks like the system doesn't recognize each refinement after I name it, here's my refinement box part of snappyHexMeshDict (An error was encountered during the upload, so the entire file could not be uploaded together, sorry):
refinementBox { type box; name box1; min (3.9 0 0); max (16.4 1 1.5); type box; name box2; min (16.4 0.4 0); max (19.7 0.72 1.5); } I've tried unnamed and the resulting grid only encrypts the last box(box2), But when I name each box in the above way, the grid is not encrypted, why is that? I hope someone can help me, please. |
|
January 10, 2024, 04:17 |
|
#2 |
Senior Member
M
Join Date: Dec 2017
Posts: 703
Rep Power: 13 |
You cannot add two "box" objects inside one geometrical entity, instead, create two entities:
Code:
box1 { type box; min (3.9 0 0); max (16.4 1 1.5); } box2 { type box; min (16.4 0.4 0); max (19.7 0.72 1.5); } |
|
January 10, 2024, 04:53 |
|
#3 | ||
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
Quote:
Quote:
|
|||
January 10, 2024, 05:21 |
|
#4 |
New Member
dengxin
Join Date: Dec 2023
Posts: 5
Rep Power: 2 |
Thanks to AtoHM and Yann.
|
|
Tags |
refinement box, snappyhexmesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Error in the refinement region generation | rahulcfd10 | OpenFOAM Meshing & Mesh Conversion | 2 | March 3, 2022 17:47 |
sHM doesn't add layers to any surface | Vinzmann | Mesh Generation & Pre-Processing | 0 | March 23, 2021 06:02 |
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops | avinashjagdale | OpenFOAM Meshing & Mesh Conversion | 53 | March 8, 2019 10:42 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 13:21 |
[snappyHexMesh] snappyHexMesh aborting | Tobi | OpenFOAM Meshing & Mesh Conversion | 0 | November 10, 2010 04:23 |