fbdcd3712c88167a145b771c114b2c1dd8840dee
[OpenFOAM-1.6.x.git] / applications / utilities / postProcessing / sampling / sample / sampleDict
blobfbdcd3712c88167a145b771c114b2c1dd8840dee
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 \*---------------------------------------------------------------------------*/
9 FoamFile
11     version         2.0;
12     format          ascii;
13     class           dictionary;
14     location        system;
15     object          sampleDict;
18 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
20 // Set output format : choice of
21 //      xmgr
22 //      jplot
23 //      gnuplot
24 //      raw
25 setFormat raw;
27 // Surface output format. Choice of
28 //      null        : suppress output
29 //      foamFile    : separate points, faces and values file
30 //      dx          : DX scalar or vector format
31 //      vtk         : VTK ascii format
32 //      raw         : x y z value format for use with e.g. gnuplot 'splot'.
34 // Note:
35 // other formats such as obj, stl, etc can also be written (by proxy)
36 // but without any values!
37 surfaceFormat vtk;
39 // interpolationScheme. choice of
40 //      cell          : use cell-centre value only; constant over cells (default)
41 //      cellPoint     : use cell-centre and vertex values
42 //      cellPointFace : use cell-centre, vertex and face values.
43 // 1] vertex values determined from neighbouring cell-centre values
44 // 2] face values determined using the current face interpolation scheme
45 //    for the field (linear, gamma, etc.)
46 interpolationScheme cellPoint;
48 // Fields to sample.
49 fields
51     p
52     U
56 // Set sampling definition: choice of
57 //      uniform             evenly distributed points on line
58 //      face                one point per face intersection
59 //      midPoint            one point per cell, inbetween two face intersections
60 //      midPointAndFace     combination of face and midPoint
62 //      curve               specified points, not nessecary on line, uses
63 //                          tracking
64 //      cloud               specified points, uses findCell
66 // axis: how to write point coordinate. Choice of
67 // - x/y/z: x/y/z coordinate only
68 // - xyz: three columns
69 //  (probably does not make sense for anything but raw)
70 // - distance: distance from start of sampling line (if uses line) or
71 //             distance from first specified sampling point
73 // type specific:
74 //      uniform, face, midPoint, midPointAndFace : start and end coordinate
75 //      uniform: extra number of sampling points
76 //      curve, cloud: list of coordinates
77 sets
79     lineX1
80     {
81         type        uniform;
82         axis        distance;
84         //- cavity. Slightly perturbed so not to align with face or edge.
85         start       (0.0201 0.05101 0.00501);
86         end         (0.0601 0.05101 0.00501);
87         nPoints     10;
88     }
90     lineX2
91     {
92         type        face;
93         axis        x;
95         //- flangeHex
96         //start       (0 20  -20);
97         //end         (0 20   10);
99         //- nablaCavity
100         //start       (-1 0.05 0.005);
101         //end         ( 1 0.05 0.005);
103         //- cavity
104         start       (0.001 0.5101  0.00501);
105         end         (2.01 0.5101  0.00501);
106         nPoints     10;
107     }
109     somePoints
110     {
111         type    cloud;
112         axis    xyz;
113         points  ((0.049 0.049 0.00501)(0.051 0.049 0.00501));
114     }
119 // Surface sampling definition: choice of
120 //      plane : values on plane defined by point, normal.
121 //      patch : values on patch.
123 // 1] patches are not triangulated by default
124 // 2] planes are always triangulated
125 // 3] iso-surfaces are always triangulated
126 surfaces
128     constantPlane
129     {
130         type            plane;    // always triangulated
131         basePoint       (0.0501 0.0501 0.005);
132         normalVector    (0.1 0.1 1);
134         //- Optional: restrict to a particular zone
135         // zoneName        zone1;
136     }
138     interpolatedPlane
139     {
140         type            plane;    // always triangulated
141         // make plane relative to the coordinateSystem (Cartesian)
142         coordinateSystem
143         {
144             origin      (0.0501 0.0501 0.005);
145         }
146         basePoint       (0 0 0);
147         normalVector    (0.1 0.1 1);
148         interpolate     true;
149     }
151     movingWall_constant
152     {
153         type            patch;
154         patchName       movingWall;
155         // Optional: whether to leave as faces (=default) or triangulate
156         // triangulate     false;
157     }
159     movingWall_interpolated
160     {
161         type            patch;
162         patchName       movingWall;
163         interpolate     true;
164         // Optional: whether to leave as faces (=default) or triangulate
165         // triangulate     false;
166     }
168     interpolatedIso
169     {
170         // Iso surface for interpolated values only
171         type            isoSurface;    // always triangulated
172         isoField        rho;
173         isoValue        0.5;
174         interpolate     true;
176         //zone            ABC;          // Optional: zone only
177         //exposedPatchName fixedWalls;  // Optional: zone only
179         // regularise      false;    // Optional: do not simplify
180     }
181     constantIso
182     {
183         // Iso surface for constant values.
184         // Triangles guaranteed not to cross cells.
185         type            isoSurfaceCell;    // always triangulated
186         isoField        rho;
187         isoValue        0.5;
188         interpolate     false;
189         regularise      false;              // do not simplify
190     }
192     triangleCut
193     {
194         // Cutingplane using iso surface
195         type            cuttingPlane;
196         planeType       pointAndNormal;
197         pointAndNormalDict
198         {
199             basePoint       (0.4 0 0.4);
200             normalVector    (1 0.2 0.2);
201         }
202         interpolate     true;
204         //zone            ABC;          // Optional: zone only
205         //exposedPatchName fixedWalls;  // Optional: zone only
207         // regularise      false;    // Optional: do not simplify
208     }
213 // *********************************************************************** //