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

[snappyHexMesh] snappyHexMesh beginner problems

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 16, 2009, 09:14
Default snappyHexMesh beginner problems
  #1
Member
 
Join Date: Nov 2009
Location: Munich
Posts: 43
Rep Power: 17
sErik is on a distinguished road
Hello everyone,

I'm a beginner with OF and trying to sHM a little test file, but i have several problems.

# 1
How can I specify apropriate boundary-, faces-, neighbour-, points- and owner-files for my specail case?
They won't be created by sHM, right? But how can I then get the right entries, e.g. number of vartices (for my case) into those files?

#2
When executing snappyHexMesh, I reviece following error message:

__________________________________________________ ________________

Create time

Create mesh for time = 0

Read mesh in = 0.41 s

Overall mesh bounding box : (-0.05 -0.025 -0.02) (0.05 0.025 0.02)
Relative tolerance : 1e-06
Absolute matching distance : 1.18743e-07

Reading refinement surfaces.
Read refinement surfaces in = 0 s

Reading refinement shells.
Refinement level 4 for all cells inside box.stl
shellSurfaces : Flipped orientation of surface box.stl so point (150 75 60) is outside.
Read refinement shells in = 0.01 s

Setting refinement level of surface to be consistent with shells.
Checked shell refinement in = 0 s


Determining initial surface intersections
-----------------------------------------

Edge intersection testing:
Number of edges : 58750
Number of edges to retest : 58750
Number of intersected edges : 0
Calculated surface intersections in = 0.43 s

Initial mesh : cells:18750 faces:58750 points:21346
Cells per refinement level:
0 18750

Adding patches for surface regions
----------------------------------

Patch Region
----- ------
refinementBox:

8 refinementBox_region0

Added patches in = 0 s

Selecting decompositionMethod hierarchical

Refinement phase
----------------

Point (3 3 0.43) is not inside the mesh or on a face or edge.
Bounding box of the mesh-0.05 -0.025 -0.02) (0.05 0.025 0.02)

From function refinementParameters::findCells(const polyMesh&) const
in file autoHexMesh/autoHexMeshDriver/refinementParameters/refinementParameters.C at line 104.

FOAM exiting

__________________________________________________ ________________


Does this mean, my original blockMesh is too smal? Do I have to enlarge it?


Here's my snappyHesMeshDict file:
__________________________________________________ ________________

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

refinementBox
{
type searchableBox;
min (-1.0 -0.7 0.0);
max ( 8.0 0.7 2.5);
}

};


castellatedMeshControls
{
maxLocalCells 1000000;

maxGlobalCells 2000000;

minRefinementCells 100;

nCellsBetweenLevels 1;

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


refinementSurfaces
{
box.stl
{
level (1 3);
}
}

resolveFeatureAngle 60;


refinementRegions
{
box
{
mode inside;
levels ((1.0 4));
}
}
locationInMesh (3 3 0.43);
}

snapControls
{
nSmoothPatch 3;

tolerance 4.0;

nSolveIter 30;

nRelaxIter 5;
}


addLayersControls
{
relativeSizes false;


layers
{
box.stl
{
nSurfaceLayers 3;
}

}


expansionRatio 1.0;

finalLayerThickness 0.5;

minThickness 0.25;

nGrow 0;

featureAngle 60;

nRelaxIter 5;

nSmoothSurfaceNormals 1;

nSmoothNormals 3;

nSmoothThickness 10;

maxFaceThicknessRatio 0.5;

maxThicknessToMedialRatio 0.3;

minMedianAxisAngle 130;

nBufferCellsNoExtrude 0;

nLayerIter 50;
}

meshQualityControls
{
maxNonOrtho 65;

maxBoundarySkewness 20;
maxInternalSkewness 4;

maxConcave 80;

minFlatness 0.5;

minVol 1e-13;

minArea -1;

minTwist 0.05;

minDeterminant 0.001;

minFaceWeight 0.05;

minVolRatio 0.01;

minTriangleTwist -1;

nSmoothScale 4;

errorReduction 0.75;
}

debug 0;

mergeTolerance 1E-6;
__________________________________________________ _______________
sErik is offline   Reply With Quote

Old   November 16, 2009, 09:47
Default
  #2
Member
 
Join Date: Nov 2009
Location: Munich
Posts: 43
Rep Power: 17
sErik is on a distinguished road
All right, I enlarged the blockMes and now sHM basicly running. :-)

Although I think, there need to be more improvement on the sHMDict, because it's working quite long on such an easy surface, I entered.
sErik 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 problems sjtuwjh OpenFOAM Meshing & Mesh Conversion 5 November 25, 2020 19:49
[snappyHexMesh] Problems with scaling meshes when meshing with SnappyHexmesh Bnitter OpenFOAM Meshing & Mesh Conversion 1 November 15, 2018 09:26
[snappyHexMesh] snappyHexMesh - parallel processing problems oldirtybrindley OpenFOAM Meshing & Mesh Conversion 7 March 5, 2014 11:57
Problems about solvers fw407 OpenFOAM Running, Solving & CFD 17 March 5, 2009 08:29
[snappyHexMesh] SnappyhexMesh and Symmetryplane bastil OpenFOAM Meshing & Mesh Conversion 10 October 7, 2008 18:07


All times are GMT -4. The time now is 15:26.