CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Dynamic mesh (AMR), dynamicRefineFvMesh

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   August 24, 2020, 16:32
Default Dynamic mesh (AMR), dynamicRefineFvMesh
nikhil108's Avatar
Join Date: May 2020
Location: Freiburg
Posts: 43
Rep Power: 4
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.

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.

castellatedMesh true;
snap            false; 
addLayers       false;

	type	triSurfaceMesh;
	name	walls;
	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);

    maxLocalCells 100000;
    maxGlobalCells 2000000;
    minRefinementCells 10;
    maxLoadUnbalance 0.10;
    nCellsBetweenLevels 1; 


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

    resolveFeatureAngle 30;

          mode inside;
          levels ((0 2));         
          mode inside;
          levels ((0 2));         

    locationInMesh (0.15 0.12 0.11);  
    allowFreeStandingZoneFaces true;

    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;
    relativeSizes true;

    expansionRatio 1.0;

    finalLayerThickness 0.3;

    minThickness 0.1;

    #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?


nikhil108 is offline   Reply With Quote

Old   December 29, 2022, 06:33
New Member
Join Date: Sep 2021
Location: India
Posts: 2
Rep Power: 0
srikanthdeti is on a distinguished road
Hi Nikhil,
Have you resolved this issue?

I ran a simulation considering dynamicmesh. I've run it successfully up to a particular time & reconstructed it. Now, I'm trying to start the simulation from the latest time. At this point, I'm also facing the same issue as you were facing.

Thanks in advance ....!
srikanthdeti is offline   Reply With Quote


dynamic mesh adaption, dynamicrefinefvmesh, meshing 3d, snappyhexmesh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[Other] Dynamic mesh (AMR), snappyhex nikhil108 OpenFOAM Meshing & Mesh Conversion 0 August 24, 2020 16:31
Sliding / Dynamic Mesh in heat transfer problem platzhalter FLUENT 0 May 7, 2018 05:25
dynamic mesh case: dynamicRefineFvMesh razi.me05 OpenFOAM 1 October 25, 2016 05:21

All times are GMT -4. The time now is 08:11.