Go to the documentation of this file.
62 "\n Usage: boxToFace ((minx miny minz) (maxx maxy maxz))\n\n"
63 " Select all face with faceCentre within bounding box\n\n"
75 for (
const auto& bb : bbs_)
77 if (bb.contains(ctrs[elemi]))
79 addOrDelete(set, elemi,
add);
89 Foam::boxToFace::boxToFace
95 topoSetFaceSource(
mesh),
100 Foam::boxToFace::boxToFace
102 const polyMesh&
mesh,
106 topoSetFaceSource(
mesh),
111 Foam::boxToFace::boxToFace
113 const polyMesh&
mesh,
114 const dictionary&
dict
117 topoSetFaceSource(
mesh),
121 if (!
dict.readIfPresent(
"boxes", bbs_))
124 if (!
dict.readIfPresent(
"box", bbs_.first()))
126 dict.readEntry<
point>(
"min", bbs_.first().min());
127 dict.readEntry<
point>(
"max", bbs_.first().max());
133 Foam::boxToFace::boxToFace
135 const polyMesh&
mesh,
139 topoSetFaceSource(
mesh),
140 bbs_(one(), treeBoundBox(checkIs(is)))
146 void Foam::boxToFace::applyToSet
156 Info<<
" Adding faces with centre within boxes "
166 Info<<
" Removing faces with centre within boxes "
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
vectorField pointField
pointField is a vectorField.
Class with constructor to add usage string to table.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
Create a new set and ADD elements to it.
#define forAll(list, i)
Loop across all elements in list.
messageStream Info
Information stream (uses stdout - output is on the master only)
AccessType combine(const UList< T > &lists, AccessOp aop=accessOp< T >())
Combines sub-lists into a single list.
addNamedToRunTimeSelectionTable(topoSetCellSource, badQualityToCell, word, badQuality)
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
Macros for easy insertion into run-time selection tables.
Subtract elements from the set.
vector point
Point is a vector.
List< treeBoundBox > treeBoundBoxList
List of bounding boxes.
defineTypeNameAndDebug(combustionModel, 0)