107 lines
3.5 KiB
C++
107 lines
3.5 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: 2.1.x |
|
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
object createPatchDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
// This application/dictionary controls:
|
|
// - optional: create new patches from boundary faces (either given as
|
|
// a set of patches or as a faceSet)
|
|
// - always: order faces on coupled patches such that they are opposite. This
|
|
// is done for all coupled faces, not just for any patches created.
|
|
// - optional: synchronise points on coupled patches.
|
|
// - always: remove zero-sized (non-coupled) patches (that were not added)
|
|
|
|
// 1. Create cyclic:
|
|
// - specify where the faces should come from
|
|
// - specify the type of cyclic. If a rotational specify the rotationAxis
|
|
// and centre to make matching easier
|
|
// - always create both halves in one invocation with correct 'neighbourPatch'
|
|
// setting.
|
|
// - optionally pointSync true to guarantee points to line up.
|
|
|
|
pointSync false;
|
|
|
|
// Patches to create.
|
|
patches
|
|
(
|
|
{
|
|
// Name of new patch
|
|
name xMin;
|
|
// Dictionary to construct new patch from
|
|
patchInfo
|
|
{
|
|
type cyclic;
|
|
neighbourPatch xMax;
|
|
|
|
transform unknown;
|
|
matchTolerance 0.01;
|
|
}
|
|
// How to construct: either from 'patches' or 'set'
|
|
constructFrom patches;
|
|
|
|
// If constructFrom = patches : names of patches. Wildcards allowed.
|
|
patches (xMi);
|
|
}
|
|
{
|
|
// Name of new patch
|
|
name xMax;
|
|
|
|
// Dictionary to construct new patch from
|
|
patchInfo
|
|
{
|
|
type cyclic;
|
|
neighbourPatch xMin;
|
|
|
|
transform unknown;//rotational;
|
|
matchTolerance 0.01;
|
|
}
|
|
// How to construct: either from 'patches' or 'set'
|
|
constructFrom patches;
|
|
// If constructFrom = patches : names of patches. Wildcards allowed.
|
|
patches (xMi_shadow);
|
|
}
|
|
{
|
|
// Name of new patch
|
|
name yMin;
|
|
// Dictionary to construct new patch from
|
|
patchInfo
|
|
{
|
|
type cyclic;
|
|
neighbourPatch yMax;
|
|
transform unknown;
|
|
matchTolerance 0.01;
|
|
}
|
|
// How to construct: either from 'patches' or 'set'
|
|
constructFrom patches;
|
|
// If constructFrom = patches : names of patches. Wildcards allowed.
|
|
patches (yMi);
|
|
}
|
|
{
|
|
// Name of new patch
|
|
name yMax;
|
|
// Dictionary to construct new patch from
|
|
patchInfo
|
|
{
|
|
type cyclic;
|
|
neighbourPatch yMin;
|
|
transform unknown; //rotational;
|
|
matchTolerance 0.01;
|
|
}
|
|
// How to construct: either from 'patches' or 'set'
|
|
constructFrom patches;
|
|
// If constructFrom = patches : names of patches. Wildcards allowed.
|
|
patches (yMi_shadow);
|
|
}
|
|
);
|
|
// ************************************************************************* //
|