2010-08-25 21:42:57 +00:00
|
|
|
/*--------------------------------*- C++ -*----------------------------------*\
|
2010-05-12 13:27:55 +00:00
|
|
|
| ========= | |
|
2013-12-11 16:09:41 +00:00
|
|
|
| \\ / F ield | foam-extend: Open Source CFD |
|
2014-06-01 11:15:18 +00:00
|
|
|
| \\ / O peration | Version: 3.1 |
|
2013-12-11 16:09:41 +00:00
|
|
|
| \\ / A nd | Web: http://www.extend-project.de |
|
2010-05-12 13:27:55 +00:00
|
|
|
| \\/ M anipulation | |
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
FoamFile
|
|
|
|
{
|
2010-08-25 21:42:57 +00:00
|
|
|
version 2.0;
|
|
|
|
format ascii;
|
|
|
|
class dictionary;
|
|
|
|
object pointSetDict;
|
2010-05-12 13:27:55 +00:00
|
|
|
}
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
|
|
|
|
// Name of set to operate on
|
|
|
|
name p0;
|
|
|
|
|
|
|
|
// One of clear/new/invert/add/delete|subset/list
|
|
|
|
action new;
|
|
|
|
|
|
|
|
// Actions to apply to pointSet. These are all the topoSetSource's ending
|
|
|
|
// in ..ToPoint (see the meshTools library).
|
|
|
|
topoSetSources
|
|
|
|
(
|
|
|
|
// Copy elements from pointSet
|
2010-08-25 21:42:57 +00:00
|
|
|
pointToPoint
|
2010-05-12 13:27:55 +00:00
|
|
|
{
|
2010-08-25 21:42:57 +00:00
|
|
|
set p1;
|
2010-05-12 13:27:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Select based on cellSet
|
|
|
|
cellToPoint
|
|
|
|
{
|
|
|
|
set c0;
|
|
|
|
option all; // all points of cell
|
|
|
|
}
|
|
|
|
|
|
|
|
// Select based on faceSet
|
|
|
|
faceToPoint
|
|
|
|
{
|
|
|
|
set f0; // name of faceSet
|
|
|
|
option all; // all points of face
|
|
|
|
}
|
|
|
|
|
|
|
|
// Select by explicitly providing point labels
|
|
|
|
labelToPoint
|
|
|
|
{
|
|
|
|
value (12 13 56); // labels of points
|
|
|
|
}
|
|
|
|
|
2010-08-25 21:42:57 +00:00
|
|
|
// All points in pointzone
|
|
|
|
zoneToPoint
|
|
|
|
{
|
|
|
|
name ".*Zone"; // name of pointZone, regular expressions allowed
|
|
|
|
}
|
|
|
|
|
|
|
|
// Points nearest to coordinates
|
|
|
|
nearestToPoint
|
|
|
|
{
|
|
|
|
points ((0 0 0) (1 1 1));
|
|
|
|
}
|
|
|
|
|
2010-05-12 13:27:55 +00:00
|
|
|
// Points with coordinate within box
|
|
|
|
boxToPoint
|
|
|
|
{
|
|
|
|
box (0 0 0) (1 1 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Select based on surface
|
|
|
|
surfaceToPoint
|
|
|
|
{
|
2010-08-25 21:42:57 +00:00
|
|
|
file "www.avl.com-geometry.stl";
|
|
|
|
nearDistance 0.1; // points near to surface
|
|
|
|
includeInside false; // points on inside of surface
|
|
|
|
// (requires closed surface with consistent
|
|
|
|
// normals)
|
|
|
|
includeOutside false; // ,, outside ,,
|
2010-05-12 13:27:55 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
// ************************************************************************* //
|