1 /*--------------------------------*- C++ -*----------------------------------*\
3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4 | \\ / O peration | Version: dev |
5 | \\ / A nd | Web: http://www.OpenFOAM.org |
6 | \\/ M anipulation | |
7 \*---------------------------------------------------------------------------*/
13 object motionProperties;
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17 dynamicFvMesh dynamicRefineFvMesh;
20 dynamicRefineFvMeshCoeffs
22 // Refine every refineInterval timesteps
25 // volScalarField to base refinement on
29 // 1. interpolate field
31 // - using a point value >minLevel <maxLevel
32 // - level < maxRefinement
34 // 3. if too many cells determine cost function:
35 // - lowest level wins
36 // - cell closest to (0.5*minLevel + 0.5*maxLevel) wins
38 // Which cells to un/refine: based on point values (simple averaging).
39 // - refine pointCells of point value > refineLevel
40 // - unrefine pointCells of point value < unrefineLevel and that
41 // are not within nBufferLayers of points marked for refinement.
43 // All cells (neighbouring a cell with) gamma get refined
44 lowerRefineLevel 0.001;
45 upperRefineLevel 0.999;
46 // All points are candidates for unrefining (gamma always <1)
50 // Maximum refinement level (starts from 0)
53 // Maximum cell limit (approximate)
56 // Fluxes to correct and variable they can be interpolated from
57 correctFluxes ((phi U));
63 // ************************************************************************* //