2015-09-30 08:48:55 +00:00
|
|
|
/*--------------------------------*- C++ -*----------------------------------*\
|
|
|
|
| ========= | |
|
|
|
|
| \\ / F ield | foam-extend: Open Source CFD |
|
2016-06-20 15:00:40 +00:00
|
|
|
| \\ / O peration | Version: 4.0 |
|
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
|
|
|
immersedBoundarySolidBodyMotionFvMeshCoeffs
|
|
|
|
{
|
|
|
|
motionFunctions
|
|
|
|
(
|
|
|
|
ibCylinder
|
|
|
|
{
|
|
|
|
solidBodyMotionFunction linearOscillation;
|
|
|
|
linearOscillationCoeffs
|
|
|
|
{
|
|
|
|
amplitude (0.5 0 0);
|
|
|
|
period 2.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
2018-05-16 18:24:50 +00:00
|
|
|
|
2018-05-17 12:11:22 +00:00
|
|
|
|
|
|
|
immersedBoundaryDynamicRefineSolidBodyMotionFvMeshCoeffs
|
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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
dynamicPolyRefinementFvMeshCoeffs
|
|
|
|
{
|
|
|
|
// Dynamic mesh procedure controls
|
|
|
|
|
|
|
|
// Refine every refineInterval step
|
|
|
|
refineInterval 1;
|
|
|
|
|
|
|
|
// Unrefine every unrefineInterval step
|
|
|
|
unrefineInterval 1;
|
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;
|
|
|
|
refinementDistance 0.1;
|
|
|
|
coarseningDistance 0.1;
|
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
|
|
|
|
nRefinementBufferLayers 0;
|
|
|
|
|
|
|
|
// 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
|
|
|
|
nUnrefinementBufferLayers 2;
|
|
|
|
|
|
|
|
// Whether to use edge based consistency check. Needed when one allows more
|
|
|
|
// than 2 refinement levels (automatically switched on)
|
|
|
|
edgeBasedConsistency true;
|
|
|
|
|
|
|
|
// Motion functions for IBM
|
|
|
|
motionFunctions
|
|
|
|
(
|
|
|
|
ibCylinder
|
|
|
|
{
|
|
|
|
solidBodyMotionFunction linearOscillation;
|
|
|
|
linearOscillationCoeffs
|
|
|
|
{
|
|
|
|
amplitude (0.5 0 0);
|
|
|
|
period 2.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|
2015-09-30 08:48:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ************************************************************************* //
|