1 /*--------------------------------*- C++ -*----------------------------------*\
3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4 | \\ / O peration | Version: 2.0.0 |
5 | \\ / A nd | Web: www.OpenFOAM.org |
6 | \\/ M anipulation | |
7 \*---------------------------------------------------------------------------*/
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17 // Set output format : choice of
26 // Surface output format. Choice of
27 // null : suppress output
28 // ensight : Ensight Gold format, one field per case file
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'.
35 // other formats such as obj, stl, etc can also be written (by proxy)
36 // but without any values!
39 // optionally define extra controls for the output formats
48 // interpolationScheme. choice of
49 // cell : use cell-centre value only; constant over cells (default)
50 // cellPoint : use cell-centre and vertex values
51 // cellPointFace : use cell-centre, vertex and face values.
52 // pointMVC : use point values only (Mean Value Coordinates)
53 // cellPatchConstrained : use cell-centre except on boundary faces where
54 // it uses the boundary value. For use with e.g. patchCloudSet.
55 // 1] vertex values determined from neighbouring cell-centre values
56 // 2] face values determined using the current face interpolation scheme
57 // for the field (linear, gamma, etc.)
58 interpolationScheme cellPoint;
67 // Set sampling definition: choice of
68 // uniform evenly distributed points on line
69 // face one point per face intersection
70 // midPoint one point per cell, inbetween two face intersections
71 // midPointAndFace combination of face and midPoint
73 // polyLine specified points, not nessecary on line, uses
75 // cloud specified points, uses findCell
76 // triSurfaceMeshPointSet points of triSurface
78 // axis: how to write point coordinate. Choice of
79 // - x/y/z: x/y/z coordinate only
80 // - xyz: three columns
81 // (probably does not make sense for anything but raw)
82 // - distance: distance from start of sampling line (if uses line) or
83 // distance from first specified sampling point
86 // uniform, face, midPoint, midPointAndFace : start and end coordinate
87 // uniform: extra number of sampling points
88 // polyLine, cloud: list of coordinates
89 // patchCloud: list of coordinates and set of patches to look for nearest
97 //- cavity. Slightly perturbed so not to align with face or edge.
98 start (0.0201 0.05101 0.00501);
99 end (0.0601 0.05101 0.00501);
109 start (0.0001 0.0525 0.00501);
110 end (0.0999 0.0525 0.00501);
117 points ((0.049 0.049 0.00501)(0.051 0.049 0.00501));
122 // Sample nearest points on selected patches. Looks only up to
123 // maxDistance away. Any sampling point not found will get value
124 // pTraits<Type>::max (usually VGREAT)
125 // Use with interpolations:
126 // - cell (cell value)
127 // - cellPatchConstrained (boundary value)
128 // - cellPoint (interpolated boundary value)
131 points ((0.049 0.099 0.005)(0.051 0.054 0.005));
132 maxDistance 0.1; // maximum distance to search
133 patches (".*Wall.*");
138 // Surface sampling definition
140 // 1] patches are not triangulated by default
141 // 2] planes are always triangulated
142 // 3] iso-surfaces are always triangulated
147 type plane; // always triangulated
148 basePoint (0.0501 0.0501 0.005);
149 normalVector (0.1 0.1 1);
151 //- Optional: restrict to a particular zone
157 type plane; // always triangulated
158 // make plane relative to the coordinateSystem (Cartesian)
161 origin (0.0501 0.0501 0.005);
164 normalVector (0.1 0.1 1);
171 patches ( ".*Wall.*" );
172 // Optional: whether to leave as faces (=default) or triangulate
173 // triangulate false;
179 patches ( ".*Wall.*" );
181 // Optional: whether to leave as faces (=default) or triangulate
182 // triangulate false;
185 nearWalls_interpolated
187 // Sample cell values off patch. Does not need to be the near-wall
188 // cell, can be arbitrarily far away.
189 type patchInternalField;
190 patches ( ".*Wall.*" );
194 // Optional: specify how to obtain sampling points from the patch
195 // face centres (default is 'normal')
197 // //- Specify distance to offset in normal direction
201 // //- Specify single uniform offset
202 // offsetMode uniform;
203 // offset (0 0 0.0001);
205 // //- Specify offset per patch face
206 // offsetMode nonuniform;
207 // offsets ((0 0 0.0001) (0 0 0.0002));
210 // Optional: whether to leave as faces (=default) or triangulate
211 // triangulate false;
216 // Iso surface for interpolated values only
217 type isoSurface; // always triangulated
222 //zone ABC; // Optional: zone only
223 //exposedPatchName fixedWalls; // Optional: zone only
225 // regularise false; // Optional: do not simplify
226 // mergeTol 1e-10; // Optional: fraction of mesh bounding box
227 // to merge points (default=1e-6)
231 // Iso surface for constant values.
232 // Triangles guaranteed not to cross cells.
233 type isoSurfaceCell; // always triangulated
237 regularise false; // do not simplify
238 // mergeTol 1e-10; // Optional: fraction of mesh bounding box
239 // to merge points (default=1e-6)
244 // Cutingplane using iso surface
246 planeType pointAndNormal;
249 basePoint (0.4 0 0.4);
250 normalVector (1 0.2 0.2);
254 //zone ABC; // Optional: zone only
255 //exposedPatchName fixedWalls; // Optional: zone only
257 // regularise false; // Optional: do not simplify
258 // mergeTol 1e-10; // Optional: fraction of mesh bounding box
259 // to merge points (default=1e-6)
264 // Isosurface from signed/unsigned distance to surface
265 type distanceSurface;
268 // Definition of surface
269 surfaceType triSurfaceMesh;
270 surfaceName integrationPlane.stl;
271 // Distance to surface
275 //regularise false; // Optional: do not simplify
276 // mergeTol 1e-10; // Optional: fraction of mesh bounding box
277 // to merge points (default=1e-6)
282 // Sampling on triSurface
283 type sampledTriSurfaceMesh;
284 surface integrationPlane.stl;
285 source boundaryFaces; // sample cells or boundaryFaces
291 // *********************************************************************** //