|
[Sponsors] |
[snappyHexMesh] SnappyHexMesh Ship Hull with Appendages Problem |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 3, 2017, 22:46 |
SnappyHexMesh Ship Hull with Appendages Problem
|
#1 |
New Member
Join Date: Nov 2014
Posts: 11
Rep Power: 12 |
Dear Community,
I am writing my Master's Thesis with OpenFOAM. Therefore I would like to use SnappyHexMesh as Mesher. But after several days of trying I can not overcome the following problem. In the internal field, there are many little faces freely hanging. Please see the image attached. Maybe you faced a problem like this and can help me. Best regards Code:
FoamFile { version 2.0; format ascii; class dictionary; object snappyHexMeshDict; } // Auswahl der durchzufuehrenden Meshing-Schritte castellatedMesh true; snap true; addLayers true; /* ------------------------------ */ /* 0. SCHRITT: Geomterie einlesen */ /* ------------------------------ */ geometry { hull_appended_sc.stl { type triSurfaceMesh; name hull; } refinementBox { type searchableBox; min (-999 -999 -0.2); max (999 999 0.2); } rudder_sc.stl { type triSurfaceMesh; name rudder; } shaft_sc.stl { type triSurfaceMesh; name shaft; } stabi_sc.stl { type triSurfaceMesh; name stabi; } }; /* --------------------------------------- */ /* 1. SCHRITT: Mesh mit Bloecken annaehern */ /* --------------------------------------- */ castellatedMeshControls { locationInMesh (-0.1 0.0 0.0); maxLocalCells 1000000; maxGlobalCells 7000000; minRefinementCells 1; // Std.: 3 nCellsBetweenLevels 1; resolveFeatureAngle 5; // Alle Winkel kleiner als NICHT aufloesen features ( { file "hull_appended_sc.eMesh"; level 0; } ); refinementSurfaces { hull { level (0 0); patchInfo { type wall; } } } refinementRegions { hull { mode distance; levels ((0.01 4)); } refinementBox { mode inside; levels ((1E15 1)); } rudder { mode distance; levels ((0.01 7)); } shaft { mode distance; levels ((0.01 7)); } stabi { mode distance; levels ((0.01 7)); } } allowFreeStandingZoneFaces false; } /* -------------------------------------------- */ /* 2. SCHRITT: Bloecke auf die Flaeche druecken */ /* -------------------------------------------- */ snapControls { nSmoothPatch 3; tolerance 1; nSolveIter 100; nRelaxIter 5; // Folgende Einstellungen sorgen for Explizites Feature-Snapping // Wichtig, um die Kanten genau zu erfassen! nFeatureSnapIter 10; implicitFeatureSnap true; explicitFeatureSnap false; multiRegionFeatureSnap false; } /* --------------------------------------- */ /* 3. SCHRITT: Aufloesung der Grenzschicht */ /* --------------------------------------- */ addLayersControls { layers { hull { nSurfaceLayers 1; } } relativeSizes true; expansionRatio 1; finalLayerThickness 1; //firstLayerThickness 0.02; minThickness 0.0001; nGrow 0; featureAngle 180; // hoeher, um BL-Collapsing zu vermeiden nRelaxIter 5; nSmoothSurfaceNormals 0; nSmoothNormals 0; nSmoothThickness 0; maxFaceThicknessRatio 1; maxThicknessToMedialRatio 1; minMedianAxisAngle 90; nBufferCellsNoExtrude 0; nLayerIter 50; // Std.: 50 } meshQualityControls { maxNonOrtho 75; maxBoundarySkewness 20; maxInternalSkewness 5; minTwist 0.05; // maxConcave 80; minVol 1e-13; minTetQuality 1e-30; minArea -1; minDeterminant 0.001; minFaceWeight 0.05; minVolRatio 0.01; minTriangleTwist -1; // nSmoothScale 4; errorReduction 0.75; } writeFlags ( scalarLevels // write volScalarField with cellLevel for postprocessing layerSets // write cellSets, faceSets of faces in layer layerFields // write volScalarField for layer coverage ); debug 0; mergeTolerance 0; |
|
December 4, 2017, 04:59 |
|
#2 |
Member
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 17 |
You have quite a few strange values in there.
I suggest you go to the motorBike tutorial and copy the snap, mesh quality and layer controls into your case. It will immediately look much better. After that you can start the fine tuning.
__________________
www.MantiumCAE.com |
|
December 4, 2017, 13:16 |
|
#3 |
New Member
Join Date: Nov 2014
Posts: 11
Rep Power: 12 |
Thanks for your answer but unfortunately it did not help. Any other ideas?
|
|
December 5, 2017, 06:34 |
|
#4 |
Senior Member
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 14 |
can you send us checkMesh -allTopology -allGeometry results?
It (qualitatively) seems you have lots of warped faces. |
|
December 5, 2017, 13:54 |
|
#5 | |
New Member
Join Date: Nov 2014
Posts: 11
Rep Power: 12 |
There you go...
Quote:
|
||
December 6, 2017, 05:29 |
|
#6 |
Senior Member
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 14 |
The wisest advice is to start learning snappyHexMesh while there are conflicting settings in your snappyHexMeshDict, e.g. the features were extracted; yet implicitFeature was on, and there is no subtle way to fix the problems of this particular mesh as you should have seen this by yourself from checkMesh output.
One educated guess is that your STL files are likely crude, and needs to be considerably improved whilst snappyHexMesh is known to operate well on quantitatively good surface mesh. |
|
December 6, 2017, 05:53 |
|
#7 |
Member
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 17 |
Yes, you should try once more to run with the motorbike tutorial setting. What sense does one surface layer with final layer thickness being one make?
Also I would try using refinement in the refinementSurfaces section, even if you are using it later in the refinementRegions. And creating a mesh with the tutorial settings, you should have a good look at the rest of your settings.
__________________
www.MantiumCAE.com |
|
December 14, 2017, 17:22 |
|
#8 |
New Member
Join Date: Nov 2014
Posts: 11
Rep Power: 12 |
I think it was just a sort of visualization problem. My simulations crashed due to another problem, which I could overcome by using "MeshLab" to clean the STL file. Another very important step was to adjust the "mergeTolerance" setting in SHM to an appropriate value. Now my simulations run very good and stable.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Problem with snappyHexMesh overwrite | Manideep Reddy | OpenFOAM Meshing & Mesh Conversion | 6 | July 29, 2023 02:05 |
#important#_two phase analysis around a ship hull | jamil048 | FLUENT | 0 | November 14, 2017 13:14 |
[snappyHexMesh] Problem with snappyHexMesh command | zino12 | OpenFOAM Meshing & Mesh Conversion | 0 | February 18, 2016 09:02 |
[snappyHexMesh] Ship hull using snappyHexMesh | nuovodna | OpenFOAM Meshing & Mesh Conversion | 1 | June 28, 2011 11:45 |
[ICEM] Structured mesh on ship hull | nuovodna | ANSYS Meshing & Geometry | 4 | March 4, 2010 11:19 |