|
[Sponsors] |
November 13, 2014, 04:43 |
how to use meshrefinement
|
#1 |
Member
Yu CAO
Join Date: May 2013
Posts: 76
Rep Power: 13 |
Hi:
In meshrefinementdict there are dynamicRefineFvMeshCoeffs { refineInterval 1; field alpha1; lowerRefineLevel 0.001; upperRefineLevel 0.999; unrefineLevel 10; nBufferLayers 1; maxRefinement 2; maxCells 200000; correctFluxes ( ( phi U ) ); dumpLevel true; } I am not sure if a cell would slit when the value lower than the lowerRefineLevel or larger than it. In addition, I am wondering what the exat use of unrefineLevel. Does it means cells would unrefine when the value is larger or smaller than unrefineLevel? Thank you for your help Yu |
|
January 9, 2015, 08:48 |
|
#2 | |
Member
|
Quote:
The cell will be refined if the current value is in between the lower and upper bound. If the value is smaller than the unrefine value, the cells will be unrefined. When I looked in the constant/dynamicMeshDict of the interDyMFoam tutorial cases, these values where commented like this: 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; class dictionary; location "constant"; object dynamicMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dynamicFvMesh dynamicRefineFvMesh; dynamicRefineFvMeshCoeffs { // How often to refine refineInterval 1; // Field to be refinement on field alpha1; // Refine field inbetween lower..upper lowerRefineLevel 0.001; upperRefineLevel 0.999; // If value < unrefineLevel unrefine unrefineLevel 10; // Have slower than 2:1 refinement nBufferLayers 1; // Refine cells only up to maxRefinement levels maxRefinement 2; // Stop refinement if maxCells reached maxCells 200000; // Flux field and corresponding velocity field. Fluxes on changed // faces get recalculated by interpolating the velocity. Use 'none' // on surfaceScalarFields that do not need to be reinterpolated. correctFluxes ( (phi Urel) (phiAbs U) (phiAbs_0 U_0) (nHatf none) (rho*phi none) (ghf none) ); // Write the refinement level as a volScalarField dumpLevel true; } // ************************************************************************* // |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Implementation of adaptive Meshrefinement for 2D for rhoCentralFoam | Henning86 | OpenFOAM Running, Solving & CFD | 0 | September 13, 2013 08:33 |