CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] Bulges in mesh when using snappyHexMesh

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Yann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 10, 2022, 04:10
Default Bulges in mesh when using snappyHexMesh
  #1
New Member
 
bruno Vanderschelden
Join Date: Sep 2022
Posts: 2
Rep Power: 0
bvdrsch is on a distinguished road
Hello Foamers,

I'm trying to perform a wind study on buildings. Therefore a build my 3D model in sketchup and converted it via blender to an .stl file. See attachement.

I'm using snappyHexMesh for the mesh. However when I use the addlayers possibility, some bulges arise on the edge of the surfaces.
I noticed some mid surface bulges as well.

Can somebody explain how this can occur or what a solution could be?

kr
Bruno

Quote:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object snappyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

#includeEtc "caseDicts/mesh/generation/snappyHexMeshDict.cfg"

castellatedMesh on;
snap on;
addLayers yes;

geometry
{
cube.stl
{
type triSurfaceMesh;
name cube;
}

};

castellatedMeshControls
{
features
(
{ file "cube.eMesh"; level 0; }
);

refinementSurfaces
{
cube
{
level (2 5);
patchInfo { type wall; }
}
}

refinementRegions
{
refinementBox
{
mode inside;
levels ((1E15 2));
}
}

locationInMesh (1 1 1);
}

snapControls
{
explicitFeatureSnap true;
implicitFeatureSnap false;
}

addLayersControls
{
layers
{
cube
{
nSurfaceLayers 3;
}
}

relativeSizes true;
expansionRatio 1.3;
finalLayerThickness 0.5;
minThickness 1e-3;
}

meshQualityControls
{}

writeFlags
(
noRefinement
// scalarLevels
// layerSets
// layerFields
);

mergeTolerance 1e-6;

// ************************************************** *********************** //

Quote:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object surfaceFeatureExtractDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

cube.stl
{
#includeEtc "caseDicts/surface/surfaceFeatureExtractDict.cfg"
}

// ************************************************** *********************** //
bvdrsch is offline   Reply With Quote

Old   November 14, 2022, 04:41
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello,

It would help if you could post a screenshot showing the issue you are talking about.

Regards,
Yann
Yann is offline   Reply With Quote

Old   November 14, 2022, 05:45
Default Issues
  #3
New Member
 
bruno Vanderschelden
Join Date: Sep 2022
Posts: 2
Rep Power: 0
bvdrsch is on a distinguished road
Hello,

Thank you for your help.
These bulges on the edge are the ones I was talking about:


kr
Bruno
Attached Images
File Type: png bulges.png (24.1 KB, 15 views)
bvdrsch is offline   Reply With Quote

Old   November 14, 2022, 06:40
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Thanks.
Try to add this parameter do you addLayersControls:

Code:
addLayersControls
{
	layers
	{
		cube
		{
			nSurfaceLayers 3;
		}
	}

	relativeSizes true;
	expansionRatio 1.3;
	finalLayerThickness 0.5;
	minThickness 1e-3;
	
	mergePatchFacesAngle 45;
}
Does it change something?
How is your layer coverage on your geometry, especially on these areas?

Regards,
Yann
cibanez likes this.
Yann is offline   Reply With Quote

Reply

Tags
bulges, meshes, qualitymesh, snappyhexmesh


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] Creating very fine, high accuracy mesh with snappyHexMesh JD_Welch OpenFOAM Meshing & Mesh Conversion 10 July 5, 2023 12:50
[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] 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 14:09.