|
[Sponsors] |
[snappyHexMesh] Layers Damaging Initially Well Snapped Edges |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 8, 2020, 12:02 |
Layers Damaging Initially Well Snapped Edges
|
#1 |
Member
Conor Crickmore
Join Date: Jan 2020
Location: Leicestershire, United Kingdom
Posts: 36
Rep Power: 6 |
Hello everyone,
In what seems to be a rite of passage for OpenFOAM and snappyHexMesh I am currently having an argument with prism layers. I see a lot of problems relating to layers not fully covering sharp edges, but I've yet to find an example of my own problem, where the layers are seemingly pulling the initially well-snapped mesh away from the surface. I'm not really sure how best to explain it, so I've included a few images. Here you can see the mesh without layer addition, with the cells well snapped to the surface of the .stl representing my domain. I know such a domain could be made using blockMesh, but I was experiencing some other issues using that method so am attempting this as an alternative. Here you can see the result following the addition of prism layers. You can see that where there was original a sharp corner, a tapered edge has been produces, and downstream, a large number of malformed cells are visible on the lower edges. Due to the pandemic I am working from home which is significantly increasing the time required to produce each mesh. I have been playing around with the settings in both 'snapControls' and 'addLayerControls', most notably the smoothing operations and primary iteration settings (including 'nFeatureSnapIter') but to no avail. As a slight aside, one of the problems I was facing when using blockMesh to explicitly define my domain was that my prism layers were 'bulging' across the faces of the domain and 'compressing' (but not collapsing) towards the edges. I think it is to do with the fact that the domain has a slight divergence in width across its length, but had no luck counteracting that either. I hope everyone is staying safe in these crazy times, and would me immensely grateful if any of the snappy wizards out there could shed some light on these issues.
__________________
Conor Crickmore PhD Researcher in Automotive Aerodynamics Aeronautical and Automotive Engineering Loughborough University LE11 3TU |
|
May 8, 2020, 13:29 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12 |
Hi,
- I assume the castellated and snap controls in the first and second meshes are the same? Therefore, you only turn on the addLayer controls for the second mesh, and it somehow moves the patch faces as shown in the second figure. Would you mind to confirm? - Is there any chance for you to attach the relevant dictionaries to be able to reproduce the problem? - I am not really an expert on meshing, but would some of the fine tuning settings help for your addLayer control?: https://www.openfoam.com/documentati...sh-layers.html - I am surprised that the addLayer distorts the already existing patches. Interesting.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
May 8, 2020, 13:51 |
|
#3 | |
Member
Conor Crickmore
Join Date: Jan 2020
Location: Leicestershire, United Kingdom
Posts: 36
Rep Power: 6 |
Quote:
Yes, exactly that, the only changed made between the two images was turning on layer addition! I'll be honest, I keep forgetting how good the documentation on openfoam.com can be at times and hadn't stumbled across those keyword sections, that will definitely be tomorrow's job! I've attached the relevant working directory, I tried to remove all the useless fluff relevant to my actual work, and may have forgotten to properly remove a reference or something so let me know if it doesn't run at all!
__________________
Conor Crickmore PhD Researcher in Automotive Aerodynamics Aeronautical and Automotive Engineering Loughborough University LE11 3TU |
||
May 8, 2020, 13:59 |
|
#4 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12 |
Thanks,
So the order of execution for the reproduction: "blockMesh + snappyHexMesh" or directly "snappyHexMesh"?
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
May 8, 2020, 14:03 |
|
#5 | |
Member
Conor Crickmore
Join Date: Jan 2020
Location: Leicestershire, United Kingdom
Posts: 36
Rep Power: 6 |
Quote:
The version I sent over will probably produce a mesh in the region of about 5m cells with the layers enabled, so you'll need at least 16GB of RAM and I'd recommend running snappy in parallel
__________________
Conor Crickmore PhD Researcher in Automotive Aerodynamics Aeronautical and Automotive Engineering Loughborough University LE11 3TU |
||
May 8, 2020, 14:18 |
|
#6 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12 |
Oh, thanks for warning. Then I will need a proper machine for which I will have an access to on next Tuesday. I'm sorry for this (hope you resolve the issue till then).
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
May 8, 2020, 14:21 |
|
#7 |
Member
Conor Crickmore
Join Date: Jan 2020
Location: Leicestershire, United Kingdom
Posts: 36
Rep Power: 6 |
No worries bud, I appreciate it is a fairly hefty case, it will ultimately be for external aerodynamics calculations for which I have access to HPC hardware
__________________
Conor Crickmore PhD Researcher in Automotive Aerodynamics Aeronautical and Automotive Engineering Loughborough University LE11 3TU |
|
May 8, 2020, 15:03 |
|
#8 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12 |
- I have managed to reproduce the issue, but difficult to proceed to analyse it without a proper machine, so Tuesday (again
- So one potential problem is that the blockMesh boundingBox is similar to that of "Tunnel.stl". Typically, blockMesh domain would be larger than the surface meshes you would like to snap in each direction. Assuming you would like to simulate the flow inside "Tunnel.stl" only, could you please create a much larger blockMesh, and then snap onto the STL files you have created? - One observation: the STL files (i.e. surface meshes) are pretty coarse (e.g. Tunnel_Inlet_Section.stl has 8 triangles in total, it seems). To my experience, snappyHexMesh does not like to work on coarse surface meshes in general. Is it possible to create a finer surface mesh for you? - Could you please visually check the feature edges produced by surfaceFeatures (*.eMesh files)? - More potential observations on Tuesday, or a bit even later, depending on my workload. Thanks for your understanding.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
May 8, 2020, 15:13 |
|
#9 | |
Member
Conor Crickmore
Join Date: Jan 2020
Location: Leicestershire, United Kingdom
Posts: 36
Rep Power: 6 |
Quote:
Thanks so much for your time HPE. It's just gone 8pm here in the UK so I think I'm going to call it a night, go for a run and clear my head but I will be sure to have a tinker in the morning. You are certainly right about the files being pretty coarse, I just assumed that since they were such simple shapes, it wouldn't be a problem, but I'll export them at a higher quality and see. The blockMesh bounding box is more or less 1m larger than the 'tunnel' in each direction, so is ~ 0.5m away from each patch. Given the standard (level 0) cells are 0.04m do you really think it is too small? It obviously isn't a big deal to extend it, but I am surprised this could be part of the issue.
__________________
Conor Crickmore PhD Researcher in Automotive Aerodynamics Aeronautical and Automotive Engineering Loughborough University LE11 3TU |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] snappyHexMesh sticking point | natty_king | OpenFOAM Meshing & Mesh Conversion | 11 | February 20, 2024 09:12 |
[snappyHexMesh] Help with Snappy: no layers growing | GianF | OpenFOAM Meshing & Mesh Conversion | 2 | September 23, 2020 08:26 |
SimpleFoam & Theater | jipai | OpenFOAM Running, Solving & CFD | 3 | June 18, 2019 10:11 |
[snappyHexMesh] sHM layer process keeps getting killed | MBttR | OpenFOAM Meshing & Mesh Conversion | 4 | August 15, 2016 03:21 |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 09:38 |