mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Tried to sort out the scripts in the tutorials but found it is messed up. Will start again from a new version from Mattijs
This commit is contained in:
@ -1,74 +0,0 @@
|
||||
/*---------------------------------------------------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.4 |
|
||||
| \\ / A nd | Web: http://www.openfoam.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
|
||||
root "";
|
||||
case "";
|
||||
instance "";
|
||||
local "";
|
||||
|
||||
class dictionary;
|
||||
object motionProperties;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dynamicFvMesh dynamicRefineFvMesh;
|
||||
|
||||
|
||||
// Refinement
|
||||
dynamicRefineFvMeshCoeffs
|
||||
{
|
||||
// Refine every refineInterval timesteps
|
||||
refineInterval 1;
|
||||
|
||||
// volScalarField to base refinement on
|
||||
field gamma;
|
||||
|
||||
//
|
||||
// 1. interpolate field
|
||||
// 2. mark any cell
|
||||
// - using a point value >minLevel <maxLevel
|
||||
// - level < maxRefinement
|
||||
// - unprotected
|
||||
// 3. if too many cells determine cost function:
|
||||
// - lowest level wins
|
||||
// - cell closest to (0.5*minLevel + 0.5*maxLevel) wins
|
||||
|
||||
|
||||
// Which cells to un/refine: based on point values (simple averaging).
|
||||
// - refine pointCells of point value > refineLevel
|
||||
// - unrefine pointCells of point value < unrefineLevel and that
|
||||
// are not within nBufferLayers of points marked for refinement.
|
||||
|
||||
// All cells (neighbouring a cell with) gamma get refined
|
||||
lowerRefineLevel 0.001;
|
||||
upperRefineLevel 0.999;
|
||||
// All points are candidates for unrefining (gamma always <1)
|
||||
unrefineLevel 10;
|
||||
nBufferLayers 1;
|
||||
|
||||
// Maximum refinement level (starts from 0)
|
||||
maxRefinement 2;
|
||||
|
||||
// Maximum cell limit (approximate)
|
||||
maxCells 200000;
|
||||
|
||||
// Fluxes to correct and variable they can be interpolated from
|
||||
correctFluxes ((phi U));
|
||||
|
||||
// Write cellLevel?
|
||||
dumpLevel true;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user