Can' get stl patch name for addLayers right?
Hello,
I need to add layers to my wing boundary to ultimately resolve the boundary layer. So far I was not able to get the patch name of the wing (wing.stl with the name wing) right so no layers were added. I know other people ran into the same problem but I couldn't find an answer. How is this name defined? What's the correct syntax in the snappyHexMeshDict? Here the relevant sections of snappyHexMeshDict: addLayers true; // true; ... geometry { wing.stl { type triSurfaceMesh; name wing; regions { wing { name wing; } } } ... // Settings for the layer addition. addLayersControls { relativeSizes true; layers { wing { nSurfaceLayers 3; } } Klaus |
Disable layers and note the name of the patches of the output.
It will probably be wing_solid. If you open the stl file the first line will read. solid some_name_here If some_name_here is empty snappy will add _solid to the patch name. If some_name_here is present snappy will add _some_name_here to the patch name. This is the name you have to use for the layers. So its the name of the final output patch, not geometry! |
Name is right but no layers added?!
3 Attachment(s)
Thank you for your feedback,
in my case even so the name defined in the stl file is wing (solid wing ...), the patch name accepted by OpenFoam is just wing - fixed. Nevertheless, the problems remains, no layers are added - see attached picture, snappyHexMeshDict and log file. What's wrong? Klaus |
Most likely it will work when you change the layers definition entry
wing in line 208 of your sHMdict into wing_solid If there is no specific region name specified in the STL then automatically the created patch will get "_solid" at the end of the patch name. |
There IS a specific region name in the stl file!
Hello,
There IS a specific region name in the stl file! It's wing (first line in the file is: solid wing) I am aware of the naming in the first line of stl files. That's why I am struggling with the error identification. Klaus |
1 Attachment(s)
Hi Klaus,
do you work with ascii or binary stl file? You can change the name in the ascii file. In my case its: solid part --- endsolid part You have to define this name in the sHMDict: nameofstl_part But i have the same problems with the layers (see pictures) I changed these values again and again. Code:
finalLayerThickness 1;//0.3 |
Check the log. Here the names of the patches are documented.
In your case it might be now :"wing_wing" |
Hi Again
When you do the regions thing in the snappyDict it does not add _name to the patch name. Try and change the geometry section to this instead Code:
geometry If this does not work its not a naming issue, but some settings. If you want/can share the case using maybe a public dropbox link. EDIT. on a side note you have set relativeSizes true; and the finalLayerThickness 0.002; If relative is set to true its relative to the first cell height as I recall. So 0.002 relative to the first cell height which is already small might get you below the tolerance and it will skip adding the layer. what happens if you use the settings from the SHM flange tutorial? just paste this in I've changed the names. Code:
addLayersControls Best |
All times are GMT -4. The time now is 21:55. |