/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.7.1 | | \\ / A nd | Web: www.OpenFOAM.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object dynamicMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dynamicFvMesh dynamicRefineFvMesh; dynamicRefineFvMeshCoeffs { // How often to refine refineInterval 10; // Field to be refinement on field MagnitudeVel; // Refine field inbetween lower..upper lowerRefineLevel 20; upperRefineLevel 400; // If value < unrefineLevel unrefine unrefineLevel 0; // Have slower than 2:1 refinement nBufferLayers 1; // Refine cells only up to maxRefinement levels maxRefinement 2; // Stop refinement if maxCells reached maxCells 5000000; // Flux field and corresponding velocity field. Fluxes on changed // faces get recalculated by interpolating the velocity. correctFluxes ( ( phi U ) ( phi Udrop ) ); // Write the refinement level as a volScalarField dumpLevel true; } // ************************************************************************* //