|
[Sponsors] | |||||
[snappyHexMesh] addLayers directly from blockMesh |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Cristopher Medina Samanez
Join Date: Jul 2023
Posts: 6
Rep Power: 4 ![]() |
Hello guys,
I was wondering if it's possible to use only the addLayers part of snappyHexMesh to a mesh created with blockMesh (so I have no stls in the triSurface folder). Appreciate your help. |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
M
Join Date: Dec 2017
Posts: 724
Rep Power: 13 ![]() |
Uh, not sure, never used it this way. Maybe someone else has?
I just want to add: you can use grading in blockMesh to generate clean perfect layers there even for very low y+ which would likely not be possible in sHM. |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 359
Rep Power: 29 ![]() ![]() |
Should be possible, why don't you just try it?
|
|
|
|
|
|
|
|
|
#4 | |
|
New Member
Cristopher Medina Samanez
Join Date: Jul 2023
Posts: 6
Rep Power: 4 ![]() |
Quote:
I did the grading with blockMesh previously, but I'm modelling steps so the corners are the problem I'm getting big values of y+ in the "riser" part of the step. Maybe I could divide each step in two blocks, but I have more than 10 steps so i'm looking for a workaround. |
||
|
|
|
||
|
|
|
#5 |
|
New Member
Cristopher Medina Samanez
Join Date: Jul 2023
Posts: 6
Rep Power: 4 ![]() |
Apparently it needs to run castellatedMesh first. So I use surfaceMeshExtract to create and stl of my patch but when running snappyHexMesh the surfaces don't seem to align perfectly, so I end up with two surfaces.
|
|
|
|
|
|
|
|
|
#6 | |
|
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,358
Rep Power: 32 ![]() ![]() |
Quote:
Code:
// Which of the steps to run castellatedMesh false; snap false; addLayers true; |
||
|
|
|
||
|
|
|
#7 | |
|
New Member
Cristopher Medina Samanez
Join Date: Jul 2023
Posts: 6
Rep Power: 4 ![]() |
Quote:
|
||
|
|
|
||
|
|
|
#8 |
|
Senior Member
M
Join Date: Dec 2017
Posts: 724
Rep Power: 13 ![]() |
Technically I agree, it should work, but I was vague in my first comment, because I am not totally sure how. We can deactivate the other steps, but I am not sure how to adress the entities from blockMesh.
In the template sHMDict I am always using, we have a comment saying Code:
// Per final patch (so not geometry!) the layer information
layers
{
...
}
|
|
|
|
|
|
|
|
|
#9 | ||
|
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,358
Rep Power: 32 ![]() ![]() |
Quote:
Can you give details of what you tried and why you say it requires to run castellatedMesh previously? (for instance, sharing your blockMeshDict, snappyHexMeshDict and logs, error message...) Quote:
You can add layers on the blockMesh patches, you don't need STL for this. Check the motorBike case for example, where layers are added on the lowerWall, which is a patch created in blockMesh and not from the STL/OBJ surface. Actually you can easily check this by removing all mentions to the motorbike in the motorbile tutorial and only add layers on some of the blockMesh patches. |
|||
|
|
|
|||
|
|
|
#10 | |
|
New Member
Cristopher Medina Samanez
Join Date: Jul 2023
Posts: 6
Rep Power: 4 ![]() |
Quote:
Thanks to everyone. |
||
|
|
|
||
|
|
|
#11 |
|
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,358
Rep Power: 32 ![]() ![]() |
Glad to know it works!
Feel free to post your snappyHexMeshDict here, because you should not have to provide any STL file. (just remove what you may have left defined in the geometry {}, features{}, refinementSurfaces{} and refinementRegions {} sections) |
|
|
|
|
|
|
|
|
#12 |
|
Senior Member
M
Join Date: Dec 2017
Posts: 724
Rep Power: 13 ![]() |
... and blockMeshDict too (or a reduced version showing how it works in principle) for other users coming here with the same question.
|
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [blockMesh] blockMesh coordinate system | pardoa | OpenFOAM Meshing & Mesh Conversion | 5 | October 23, 2023 14:29 |
| [OpenFOAM.org] blockMesh issue on openfoam6 startup - ubuntu 16.04 | bjdarrer | OpenFOAM Installation | 7 | August 25, 2020 20:15 |
| blockMesh wmake error for OpenFOAM5 on ubuntu on windows | rclement | OpenFOAM Programming & Development | 2 | March 5, 2018 17:57 |
| [Discretizer] Discretizer "Run blockmesh" issue | cfdone | OpenFOAM Community Contributions | 1 | March 10, 2012 11:49 |
| Installation/Tutorial - libraries not found (blockMesh) | bernarde | OpenFOAM | 3 | June 19, 2009 13:36 |