|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Roman
Join Date: Oct 2025
Posts: 1
Rep Power: 0 ![]() |
Hi guys Im a CFD beginner and I'm trying to mesh a hull of a ship and Im having serious problems meshing de bow y post a photo of my problem. I have tried to add a refinament box including only the bow to try to refine it but it was even worst. I also tried to refine de featureEdges uploading the surfaces of my hull one by one to my snappy but it wasnt succesful. When my snappy ends appear all the parameters of the meshquality at zero which is a good indicator, I dont Know what could be wrong with my snappy so ask for help (i also uplaod my shm).
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 10 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { format ascii; class dictionary; object snappyHexMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // Which of the steps to run castellatedMesh true; snap true; addLayers false; // Geometry. Definition of all surfaces. All surfaces are of class // searchableSurface. // Surfaces are used // - to specify refinement for any mesh cell intersecting it // - to specify refinement for any mesh cell inside/outside/near // - to 'snap' the mesh boundary to the surface geometry { hull { type triSurfaceMesh; file "DTC-scaled.stl"; patchInfo { type wall; } } box1 { type searchableBox; min (-85.71 -51.426 -25.713); max ( 85.71 0.000 25.713); } box2 { type searchableBox; min (-42.855 -25.713 -21.428); max ( 77.14 0.000 18.142); } box3 { type searchableBox; min (-25.713 -12.86 -8.571); max ( 68.568 0.000 14.271); } box4 { type searchableBox; min (-17.142 -8.571 -5.1426); max ( 60.000 0.000 10.843); } box5 { type searchableBox; min (-8.571 -5.1426 -2.5713); max (55.7115 0.000 8.272); } box6 { type searchableBox; min (-4.29 -4.714 -1.286); max (53.57 0.000 6.986); } box7 { type searchableBox; min (-2.021 -4.396 -0.600); max (52.578 0.000 2.85); } box8 { type searchableBox; min (-1 -5 0); max (1.413 0 6); } box9 { type searchableBox; min (49.5 -3 0); max (52.5 0 6); } top { type triSurfaceMesh; file "s1.stl"; } popa { type triSurfaceMesh; file "s2.stl"; } cuņa { type triSurfaceMesh; file "s3.stl";; } costado { type triSurfaceMesh; file "s456.stl"; } quillacostado { type triSurfaceMesh; file "s7.stl";; } quillabaja { type triSurfaceMesh; file "s8.stl"; } proa { type triSurfaceMesh; file "s9.stl"; } }; // Castellated mesh settings castellatedMeshControls { maxLocalCells 100000000; maxGlobalCells 2000000000; minRefinementCells 1; nCellsBetweenLevels 10; // Edge refinement from eMesh file features ( { file "DTC-scaled.eMesh"; level 5; } { file "s1.eMesh"; level 4; } { file "s2.eMesh"; level 4; } { file "s3.eMesh"; level 6; } { file "s456.eMesh"; level 4; } { file "s7.eMesh"; level 6; } { file "s8.eMesh"; level 6; } { file "s9.eMesh"; level 6; } ); // Surface refinement refinementSurfaces { hull { level (4 5); } } // Region-based refinement refinementRegions { box1 { mode inside; levels ((1 1)); } box2 { mode inside; levels ((1 1)); } box3 { mode inside; levels ((2 2)); } box4 { mode inside; levels ((3 3)); } box5 { mode inside; levels ((4 4)); } box6 { mode inside; levels ((4 4)); } box7 { mode inside; levels ((5 5)); } box8 { mode inside; levels ((6 6)); } box9 { mode inside; levels ((6 6)); } top { mode distance; levels ((0.01 5)); } popa { mode distance; levels ((1 5)); } cuņa { mode distance; levels ((1 5)); } costado { mode distance; levels ((1 5)); } //quillacostado { mode distance; levels ((2 5)); } //quillabaja { mode distance; levels ((2 5)); } proa { mode distance; levels ((1 5)); } } resolveFeatureAngle 10; insidePoint (-0.7 0 0); allowFreeStandingZoneFaces false; } // Snapping settings snapControls { nSmoothPatch 10; tolerance 3.0; nSolveIter 50; nRelaxIter 5; nFeatureSnapIter 10; implicitFeatureSnap false; explicitFeatureSnap true; multiRegionFeatureSnap true; } // Layer addition settings addLayersControls { relativeSizes false; layers { hull { nSurfaceLayers 2; } } expansionRatio 1.014; finalLayerThickness 0.1; minThickness 0.00001; nGrow 0; featureAngle 160; nRelaxIter 10; nSmoothSurfaceNormals 10; nSmoothNormals 5; nSmoothThickness 10; maxFaceThicknessRatio 0.5; maxThicknessToMedialRatio 0.3; minMedianAxisAngle 75; nBufferCellsNoExtrude 0; nLayerIter 20; nRelaxedIter 20; } // Mesh quality controls meshQualityControls { #include "meshQualityDict" } // Output/debug settings debug 0; mergeTolerance 1e-6; // ************************************************** *********************** // Last edited by Jaroma; October 1, 2025 at 15:21. Reason: upload my shm |
|
|
|
|
|
![]() |
| Tags |
| bow, feature edge handling, ship, snappyhexmesh |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [snappyHexMesh] generating cylinder sharpedges for snappyHexMesh without stl | AlxB | OpenFOAM Meshing & Mesh Conversion | 0 | January 28, 2025 03:25 |