CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Special Topics > Mesh Generation & Pre-Processing

Snappyhexmesh, abberations in mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 29, 2024, 08:46
Default Snappyhexmesh, abberations in mesh
  #1
New Member
 
Tale Egeberg Aasland
Join Date: Aug 2024
Posts: 3
Rep Power: 2
tale_aasland is on a distinguished road
Hi,


I'm new with openFoam, and trying to learn snappyhexmesh. Right now, I'm working on a mesh for the bottom of a pontoon, but strange abberations show up when I run snappyhexmesh. These are mostly outside of the refined regions, as shown in the screenshot (I've included a screenshot of the 3D geometry, for reference).


Clearly, I'm doing something wrong in the setup, though I can't figure out what. Any help is much appreciated.



Here's the dict:


/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 12
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object snappyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


castellatedMesh true;
snap true;
addLayers false;

geometry //stl file, OpenFoam bounding geometry or both
{
pontoon
{
type triSurfaceMesh;
file "pontoon.stl";
}

bigbox
{
type searchableBox;
min (-30 -15 0);
max (40 15 10);
}
box
{
type searchableBox;
min (-27 -9 0);
max (30 9 6);
}

};

castellatedMeshControls
{
maxLocalCells 500000;
maxGlobalCells 5000000;
minRefinementCells 0;
nCellsBetweenLevels 1;

features
(
{
file "pontoon.eMesh";
level 3;
}
);


refinementSurfaces
{
pontoon
{
// Surface-wise min and max refinement level
level (4 4);
}

}


refinementRegions
{
box
{
mode inside;
level 2;
}
bigbox
{
mode inside;
level 1;
}
}

resolveFeatureAngle 30;
planarAngle 30;



allowFreeStandingZoneFaces true;
insidePoint (-30 -20 5);
};


snapControls
{
nSmoothPatch 3;
tolerance 1;
nSolveIter 100;
nRelaxIter 5;

// Feature snapping
nFeatureSnapIter 10;
implicitFeatureSnap false;
explicitFeatureSnap true;
multiRegionFeatureSnap true;
};



meshQualityControls
{
maxNonOrtho 75;
maxBoundarySkewness 20;
maxInternalSkewness 4;
maxConcave 80;

minVol 1.00E-13;
minTetQuality 1e15;

minArea -1;
minTwist 0.02;
minDeterminant 0.001;
minFaceWeight 0.05;
minVolRatio 0.01;
minTriangleTwist -1;
minFlatness 0.5;
nSmoothScale 4;

errorReduction 0.75;
};

mergeTolerance 1e-6;
Attached Images
File Type: jpg castellated1.jpg (124.3 KB, 7 views)
File Type: jpg block.jpg (20.2 KB, 6 views)
tale_aasland is offline   Reply With Quote

Old   September 5, 2024, 04:37
Default
  #2
Senior Member
 
M
Join Date: Dec 2017
Posts: 703
Rep Power: 13
AtoHM is on a distinguished road
Its just a visualization issue. Per default, paraview decomposes the hexahedrons into tetraeder cells. You can see here how to get a representation of the hexahedrons: How to visualize polyhedron mesh in paraview


Furthermore, if you create a slice or clip of the mesh, it can happen that cell layers are cut at weird positions. This leads to the lines you see. You can avoid this in the display options of the filter in the properties, look for a checkbox option saying "crinkle". do Squiggles in snappyHexMesh effect quality
AtoHM is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] snappyHexMesh does not detect highly skewed faces? ptpacheco OpenFOAM Meshing & Mesh Conversion 1 January 4, 2022 13:37
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! divergence OpenFOAM Meshing & Mesh Conversion 0 January 23, 2019 05:17
[snappyHexMesh] snappyHexMesh & Mesh around a missile sasanghomi OpenFOAM Meshing & Mesh Conversion 2 October 15, 2014 20:54
[snappyHexMesh] SnappyHexMesh not generate mesh first time mavimo OpenFOAM Meshing & Mesh Conversion 4 August 26, 2008 08:08


All times are GMT -4. The time now is 10:31.