initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / applications / utilities / mesh / manipulation / createPatch / createPatchDict
blob2ab9a8b3ccb8fc39b2188ef86e62b8ade9952fb8
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========                 |                                                 |
3 | \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
4 |  \\    /   O peration     | Version:  1.6                                   |
5 |   \\  /    A nd           | Web:      http://www.OpenFOAM.org               |
6 |    \\/     M anipulation  |                                                 |
7 \*---------------------------------------------------------------------------*/
8 FoamFile
10     version     2.0;
11     format      ascii;
12     class       dictionary;
13     object      createPatchDict;
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
18 // This application/dictionary controls:
19 // - optional: create new patches from boundary faces (either given as
20 //   a set of patches or as a faceSet)
21 // - always: order faces on coupled patches such that they are opposite. This
22 //   is done for all coupled faces, not just for any patches created.
23 // - optional: synchronise points on coupled patches.
25 // 1. Create cyclic:
26 // - specify where the faces should come from
27 // - specify the type of cyclic. If a rotational specify the rotationAxis
28 //   and centre to make matching easier
29 // - pointSync true to guarantee points to line up.
31 // 2. Correct incorrect cyclic:
32 // This will usually fail upon loading:
33 //  "face 0 area does not match neighbour 2 by 0.0100005%"
34 //  " -- possible face ordering problem."
35 // - change patch type from 'cyclic' to 'patch' in the polyMesh/boundary file.
36 // - loosen match tolerance to get case to load
37 // - regenerate cyclic as above
40 // Tolerance used in matching faces. Absolute tolerance is span of
41 // face times this factor. To load incorrectly matches meshes set this
42 // to a higher value.
43 matchTolerance 1E-3;
45 // Do a synchronisation of coupled points after creation of any patches.
46 pointSync true;
48 // Patches to create.
49 patches
51     {
52         // Name of new patch
53         name sidePatches;
55         // Type of new patch
56         dictionary
57         {
58             type cyclic;
60             // Optional: explicitly set transformation tensor.
61             // Used when matching and synchronising points.
62             //transform translational;
63             //separationVector (-2289 0 0);
64             transform rotational;
65             rotationAxis (1 0 0);
66             rotationCentre (0 0 0);
67         }
69         // How to construct: either from 'patches' or 'set'
70         constructFrom patches;
72         // If constructFrom = patches : names of patches. Wildcards allowed.
73         patches ("periodic.*");
75         // If constructFrom = set : name of faceSet
76         set f0;
77     }
79     {
80         name bottom;
82         // Type of new patch
83         dictionary
84         {
85             type wall;
86         }
88         constructFrom set;
90         patches ();
92         set bottomFaces;
93     }
97 // ************************************************************************* //