|
[Sponsors] |
[snappyHexMesh] creating a mesh for a small object <1m in length |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 14, 2022, 06:29 |
creating a mesh for a small object <1m in length
|
#1 |
New Member
Join Date: Jan 2022
Location: USA
Posts: 8
Rep Power: 4 |
Hello, this is my first time using both OpenFoam and the forum. Please let me know if this question belongs somewhere else. Last edited by SnyderFoam; January 14, 2022 at 06:42. Reason: did not mean to publish |
|
January 17, 2022, 05:28 |
|
#2 |
Senior Member
M
Join Date: Dec 2017
Posts: 703
Rep Power: 13 |
Welcome!
I suggest to write .log files and look through these, when something looks suspicious. We could also help interpret errors. snappyHexMesh &> snappyHexMesh.log At first glance, you are having several references to geometry motorBike, but it is not defined in the geometry subdictionary. I assume this kills the run at some point. There is no other surface refinement defined in refinementSurfaces, therefore it appears like your file is ignored. To get a better view of the mesh, deactivate "decompose polyhedra" at the openfoam node in Paraview and deactivate the "triangulate the slice" option on slices. Crinkle option can also be used for slices and clips to avoid cutting cells. |
|
January 17, 2022, 12:41 |
|
#3 |
New Member
Join Date: Jan 2022
Location: USA
Posts: 8
Rep Power: 4 |
Thanks for the reply, this was helpful. I diff'ed the original snappyhexmesh and compared it to my own. I found that I accidentally reduced the max globa/local cells by an order of magnitude. After adjusting this, I got better results.....but still not good.
As far as your advice with instances of motorBike, these were just patch names. I had already edited the .emesh and .stl lines to point to the proper file. For clarity, I did however fix the patch names to reference the "heaterBlock" Attached is some log files in case that helps diagnose why the mesh is so poor. |
|
January 17, 2022, 12:55 |
|
#4 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
Hi,
Have a look at your snappy log: the warnings show some things are wrong with your snappyHexMeshDict. You need to fix it in order to get back on track. Code:
Reading refinement surfaces. --> FOAM Warning : From function Foam::refinementSurfaces::refinementSurfaces(const Foam::searchableSurfaces&, const Foam::dictionary&, Foam::label) in file refinementSurfaces/refinementSurfaces.C at line 215 Reading "/home/fizics/OpenFOAM/run/heaterBlock/system/snappyHexMeshDict/castellatedMeshControls/refinementSurfaces" from line 115 to line 121 Not all entries in refinementSurfaces dictionary were used. The following entries were not used : 1(heaterBlock) Read refinement surfaces in = 0.06 s Code:
Layer thickness specified as final layer and expansion ratio. --> FOAM Warning : From function Foam::labelHashSet Foam::polyBoundaryMesh::patchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 804 Cannot find any patch or group names matching "(heaterBlock).*" --> FOAM Warning : From function Foam::layerParameters::layerParameters(const Foam::dictionary&, const Foam::polyBoundaryMesh&) in file snappyHexMeshDriver/layerParameters/layerParameters.C at line 279 Reading "/home/fizics/OpenFOAM/run/heaterBlock/system/snappyHexMeshDict/addLayersControls/layers" from line 222 to line 222 Layer specification for "(heaterBlock).*" does not match any patch. Valid patches are 5 ( frontAndBack inlet outlet lowerWall upperWall ) Try to fix it and post your snappyHexMeshDict and snappy log here if you struggle to find what is wrong. |
|
January 17, 2022, 13:52 |
|
#5 |
New Member
Join Date: Jan 2022
Location: USA
Posts: 8
Rep Power: 4 |
I see....... after fixing these errors it seems I got my first successful mesh. It is still too rough to perform any simulations yet, but I am on the right track for sure!!
Most of the warning in the snappy log are now related to displacement errors it seems. |
|
January 18, 2022, 12:33 |
Thanks for the help all
|
#6 |
New Member
Join Date: Jan 2022
Location: USA
Posts: 8
Rep Power: 4 |
Now learning how to incorporate a thermal study. Thanks for the input everyone!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] Installing on Ubuntu 18.04 | samiam1000 | OpenFOAM Installation | 11 | April 27, 2020 01:01 |
[OpenFOAM.com] Issue configuring ./makeParaView - Ubuntu 16.04 | bjdarrer | OpenFOAM Installation | 2 | April 20, 2020 14:50 |
Short shot simulation problems in die casting simulation correlation with test | yanhua.li | FLOW-3D | 12 | August 3, 2016 03:21 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 14:43 |
test cases | Maciej Matyka | Main CFD Forum | 3 | November 24, 2004 09:27 |