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

[snappyHexMesh] castelatedMesh failure

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 17, 2014, 13:17
Default castelatedMesh failure
  #1
New Member
 
Join Date: Mar 2014
Posts: 9
Rep Power: 12
Heremus is on a distinguished road
Hello,
I am new to CFD and openFOAM I am actually trying to set up my first case. But have already problems in Meshingprocess. I googled so far but didn't find an answer jet. Maybe i didn't found the right keywords...

I tried to generate a Mesh after this tutorial:
http://www.hydroniumion.de/posts/sna...mesh-tutorial/

SHM gives out following errormessage:
Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.2.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.2.0-5be49240882f
Exec   : snappyHexMesh
Date   : Mar 17 2014
Time   : 17:37:02
Host   : "Laptop-V1S"
PID    : 30436
Case   : /home/tofu/OpenFOAM/Test/strgb3
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Read mesh in = 0.16 s

Overall mesh bounding box  : (-20 0 -9.012) (6 5 10.988)
Relative tolerance         : 1e-06
Absolute matching distance : 3.31813e-05

Reading refinement surfaces.
Read refinement surfaces in = 0.75 s

Reading refinement shells.
Refinement level according to distance to hull.stl
    level 5 for all cells within 0.1 meter.
    level 4 for all cells within 0.4 meter.
    level 2 for all cells within 1 meter.
Read refinement shells in = 0 s

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

Reading features.


--> FOAM FATAL IO ERROR: 
keyword features is undefined in dictionary "/home/tofu/OpenFOAM/Test/strgb3/system/snappyHexMeshDict.castellatedMeshControls"

file: /home/tofu/OpenFOAM/Test/strgb3/system/snappyHexMeshDict.castellatedMeshControls from line 37 to line 72.

    From function dictionary::lookupEntry(const word&, bool, bool) const
    in file db/dictionary/dictionary.C at line 402.

FOAM exiting
My snappyHexMeshDict:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.2.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
        version 2.0;
        format ascii;
        root "";
        case "";
        instance "";
        local "";
        class dictionary;
        object autoHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

// Which of the steps to run
castellatedMesh true;
snap            true;
addLayers       true;

geometry
{
     hull.stl
     {
         type triSurfaceMesh;
         name DIFUSOR;
     }
}

castellatedMeshControls
{
    maxLocalCells 10000000;
    maxGlobalCells 20000000;
    minRefinementCells 0;
    nCellsBetweenLevels 1;


    refinementSurfaces
    {
       DIFUSOR
    {
        level (4 5);
    }
    }

    resolveFeatureAngle 30;


    // Region-wise refinement
    // ~~~~~~~~~~~~~~~~~~~~~~

    refinementRegions
    {
    DIFUSOR
    {
        mode distance;
        levels ((0.1 5) (0.4 4) (1 2));
    }
    }


    // Mesh selection
    // ~~~~~~~~~~~~~~

    locationInMesh (6.011 8.012 3.01);

    allowFreeStandingZoneFaces true;
}



// Settings for the snapping.
snapControls
{
    nSmoothPatch 3;

    tolerance 2.0;

    nSolveIter 30;

    nRelaxIter 5;

        nFeatureSnapIter 10;

        implicitFeatureSnap true;

        explicitFeatureSnap false;
}

// Settings for the layer addition.

addLayersControls
{
layers
    {
    hull.stl_hulls
        {
        nSuraceLayers 12;
        }
    }
expansionRatio 1.2;
minThickness 0.0005;
}

meshQualityControls
{

}

// Advanced

// Flags for optional output
// 0 : only write final meshes
// 1 : write intermediate meshes
// 2 : write volScalarField with cellLevel for postprocessing
// 4 : write current intersections as .obj files
// debug 0;


// Merge tolerance. Is fraction of overall bounding box of initial mesh.
// Note: the write tolerance needs to be higher than this.
mergeTolerance 1e-6;


// ************************************************************************* //
After this error Message I can't find the word features. Or did I set some wrong Properties?
I also don't understand the command locationInMesh.

Thanks for any help!
Heremus is offline   Reply With Quote

Old   March 19, 2014, 11:53
Default
  #2
Senior Member
 
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16
cutter is on a distinguished road
Hi,

have a look at http://www.openfoam.org/docs/user/snappyHexMesh.php (Section 5.4.3) and one of the tutorial cases to learn the correct usage of the subdictionary 'features'.

'locationInMesh' is a point within your fluid domain. It allows snappyHexMesh to decide whether to mesh inside or outside the STL surface. See section 5.4.4!

Cutter
cutter is offline   Reply With Quote

Reply

Tags
castellated, mesh, snappyh


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
Error running openfoam in parallel fede32 OpenFOAM Programming & Development 5 October 4, 2018 17:38
P1 and DT Radiation Model Failure Birnensuppe CFX 6 November 13, 2017 07:06
The fluent stopped and errors with "Warning: License server connection lost.poll: pro yuyuxuan FLUENT 4 January 9, 2014 06:20
NEW failure to compile redistributeMeshPar pasinari OpenFOAM Bugs 2 December 31, 2007 05:56
what is zero face area failure?? DON Siemens 5 June 1, 2007 02:09


All times are GMT -4. The time now is 21:30.