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

[Other] Dynamic mesh (AMR), snappyhex

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 24, 2020, 16:31
Question Dynamic mesh (AMR), snappyhex
  #1
Member
 
nikhil108's Avatar
 
Nikhil
Join Date: May 2020
Location: Freiburg
Posts: 43
Rep Power: 5
nikhil108 is on a distinguished road
Hallo foamers,

I am trying to run a case, the domain is created using blockMesh, then using snappyhex, geometry of the body is captured with stl. I didn't used any refinement levels too. I tried using different settings in snappyHex, but I keep on getting this following error.

Code:
--> FOAM FATAL ERROR:
Celllevel does not satisfy 2:1 constraint.
On face 76826 owner cell 25718 has refinement 0 neighbour cell 26964 has refinement 2

    From function void Foam::hexRef8::checkRefinementLevels(Foam::label, const labelList&) const
    in file polyTopoChange/polyTopoChange/hexRef8/hexRef8.C at line 4851.
everything runs fine when I just use renumber mesh and run the solver from latest time step, but when I use renumbermesh -overwrite then I am getting above error. Below is my snappyhexdict. Please share your thoughts.

Code:
castellatedMesh true;
snap            false; 
addLayers       false;

geometry
{
     pump.stl
       {
	type	triSurfaceMesh;
	name	walls;
      }
     inlet1.stl
       {
	type	triSurfaceMesh;
	name	inlet;
      }
    box1 //refine porous
	 {
		type searchableBox;
		min (-0.47 -0.27 -0.47);
		max  (0.47 -0.22 0.47);
	}
    box2 //refine hole
	 {
		type searchableBox;
		min (-0.05 -0.05 -0.58); 
		max  (0.05 0.05 -0.48);
	}
};

castellatedMeshControls
{   
    maxLocalCells 100000;
    maxGlobalCells 2000000;
    minRefinementCells 10;
    maxLoadUnbalance 0.10;
    nCellsBetweenLevels 1; 
   features
    (

    );

    refinementSurfaces
    {
		inlet { level (1 2); patchInfo { type patch; }}
		walls { level (1 2); patchInfo { type wall; }}
    }

    resolveFeatureAngle 30;

    refinementRegions
    {
      /*box1
      {
          mode inside;
          levels ((0 2));         
      }
      box2
      {
          mode inside;
          levels ((0 2));         
      }*/
    }

    locationInMesh (0.15 0.12 0.11);  
    allowFreeStandingZoneFaces true;
}
/*--------------------------------------------------------*/
snapControls
{

    nSmoothPatch 3;
    tolerance 2.0;
    nSolveIter 30;
    nRelaxIter 5;
    nFeatureSnapIter 10;

        implicitFeatureSnap false;

        //- Use castellatedMeshControls::features (default = true)
        explicitFeatureSnap true;

        //- Detect points on multiple surfaces (only for explicitFeatureSnap)
        multiRegionFeatureSnap false;
}
/*--------------------------------------------------------*/
addLayersControls
{
    relativeSizes true;
    layers
    {

    }
    expansionRatio 1.0;

    finalLayerThickness 0.3;

    minThickness 0.1;
}




meshQualityControls
{
    #include "meshQualityDict"


    // Advanced

    //- Number of error distribution iterations
    nSmoothScale 4;
    //- Amount to scale back displacement at error points
    errorReduction 0.75;
}

I tried turning snap on, and used refinements, did changes in geometry.
I am out of ideas, what am I doing wrong, any ideas to troubleshoot this?

Thankyou,

cheers,
nikhil.
nikhil108 is offline   Reply With Quote

Reply

Tags
dynamic mesh adaption, meshing 3d, 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
Ship resistance shows wiggles when using Overset mesh and dynamic mesh in Fluent Qingsong FLUENT 2 March 21, 2022 15:08
Dynamic Mesh on Pintle type injector. herntan FLUENT 16 September 4, 2020 08:27
[ICEM] Dynamic mesh setup with ICEM David121284 ANSYS Meshing & Geometry 0 April 11, 2014 04:19
Dynamic Mesh "Shadow Wall" thezack FLUENT 0 June 4, 2013 22:09
dynamic mesh for drop interface IndrajitW FLUENT 0 March 30, 2013 08:03


All times are GMT -4. The time now is 03:00.