2015-09-30 08:48:55 +00:00
|
|
|
/*--------------------------------*- C++ -*----------------------------------*\
|
|
|
|
| ========= | |
|
|
|
|
| \\ / F ield | foam-extend: Open Source CFD |
|
2018-05-29 07:35:20 +00:00
|
|
|
| \\ / O peration | Version: 4.1 |
|
2015-09-30 08:48:55 +00:00
|
|
|
| \\ / A nd | Web: http://www.foam-extend.org |
|
2016-06-21 12:50:08 +00:00
|
|
|
| \\/ M anipulation | |
|
2015-09-30 08:48:55 +00:00
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
FoamFile
|
|
|
|
{
|
|
|
|
version 2.0;
|
|
|
|
format ascii;
|
|
|
|
class dictionary;
|
|
|
|
object dynamicMeshDict;
|
|
|
|
}
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
|
|
|
|
// dynamicFvMesh staticFvMesh;
|
2018-05-16 11:27:19 +00:00
|
|
|
// dynamicFvMesh immersedBoundarySolidBodyMotionFvMesh;
|
|
|
|
dynamicFvMesh immersedBoundaryDynamicRefineSolidBodyMotionFvMesh;
|
2015-09-30 08:48:55 +00:00
|
|
|
|
2018-05-17 12:11:22 +00:00
|
|
|
|
|
|
|
immersedBoundaryDynamicRefineSolidBodyMotionFvMeshCoeffs
|
2018-05-16 11:27:19 +00:00
|
|
|
{
|
2018-05-17 13:52:46 +00:00
|
|
|
// Immersed boundary controls
|
2018-05-16 11:27:19 +00:00
|
|
|
motionFunctions
|
|
|
|
(
|
|
|
|
ibCylinder
|
|
|
|
{
|
2015-09-30 08:48:55 +00:00
|
|
|
solidBodyMotionFunction linearOscillation;
|
|
|
|
linearOscillationCoeffs
|
|
|
|
{
|
|
|
|
amplitude (0.5 0 0);
|
|
|
|
period 2.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|
2018-05-17 12:11:22 +00:00
|
|
|
|
|
|
|
// Dynamic mesh procedure controls
|
|
|
|
|
|
|
|
// Refine every refineInterval step
|
2018-05-17 13:52:46 +00:00
|
|
|
refineInterval 2;
|
2018-05-17 12:11:22 +00:00
|
|
|
|
|
|
|
// Unrefine every unrefineInterval step
|
2018-05-17 13:52:46 +00:00
|
|
|
unrefineInterval 2;
|
2018-05-16 11:27:19 +00:00
|
|
|
|
2018-05-17 12:11:22 +00:00
|
|
|
// Separate refinement/unrefinement steps. In case this is switched on,
|
|
|
|
// if both refinement and unrefinement should have been performed in a
|
|
|
|
// single step, unrefinement is skipped. Switched off by default, meaning
|
|
|
|
// that it should be safe to perform both at the same time
|
|
|
|
separateUpdates false;
|
|
|
|
|
|
|
|
// Refinement selection criteria
|
2018-05-16 18:24:50 +00:00
|
|
|
refinementSelection
|
|
|
|
{
|
2018-05-17 12:11:22 +00:00
|
|
|
type immersedBoundaryRefinement;
|
2018-05-17 13:52:46 +00:00
|
|
|
refinementDistance 0.08;
|
|
|
|
unrefinementDistance 0.08;
|
2018-05-16 18:24:50 +00:00
|
|
|
}
|
2018-05-16 11:27:19 +00:00
|
|
|
|
2018-05-17 12:11:22 +00:00
|
|
|
// Polyhedral refinement engine controls
|
|
|
|
active yes;
|
|
|
|
|
|
|
|
// Maximum number of cells to allow (not strictly controlled)
|
|
|
|
maxCells 20000;
|
2018-05-16 11:27:19 +00:00
|
|
|
|
2018-05-17 12:11:22 +00:00
|
|
|
// Maximum refinement level
|
|
|
|
maxRefinementLevel 2;
|
|
|
|
|
|
|
|
// Number of buffer layers between refinement levels
|
2018-05-17 13:52:46 +00:00
|
|
|
nRefinementBufferLayers 1;
|
2018-05-17 12:11:22 +00:00
|
|
|
|
|
|
|
// Number of buffer layers for unrefinement in order to run away from the
|
|
|
|
// region that is getting refined at the same time in order to avoid point
|
|
|
|
// level inconsistencies
|
2018-05-17 13:52:46 +00:00
|
|
|
nUnrefinementBufferLayers 3;
|
2018-05-17 12:11:22 +00:00
|
|
|
|
|
|
|
// Whether to use edge based consistency check. Needed when one allows more
|
|
|
|
// than 2 refinement levels (automatically switched on)
|
|
|
|
edgeBasedConsistency true;
|
2015-09-30 08:48:55 +00:00
|
|
|
}
|
|
|
|
|
2018-05-29 07:35:20 +00:00
|
|
|
|
2015-09-30 08:48:55 +00:00
|
|
|
// ************************************************************************* //
|