45 int main(
int argc,
char *argv[])
49 "Create a cellSet for cells with their centres inside the defined "
51 "Surface must be closed and singly connected."
66 Info<<
"Reading surface from " << surfName <<
endl;
76 boolList inside(querySurf.calcInside(mesh.cellCentres()));
82 insideCells.insert(celli);
87 Info<<
"Selected " << insideCells.size() <<
" of " << mesh.nCells()
88 <<
" cells" <<
nl <<
nl
89 <<
"Writing selected cells to cellSet " << insideCells.name()
91 <<
"Use this cellSet e.g. with subsetMesh : " <<
nl <<
nl
92 <<
" subsetMesh " << insideCells.name()
#define forAll(list, i)
Loop across all elements in list.
virtual Ostream & write(const char)=0
Write character.
static void addNote(const string &)
Add extra notes for the usage information.
static void noParallel()
Remove the parallel options.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
A collection of cell labels.
A class for handling file names.
Helper class to search on triSurface.
Triangulated surface description with patch information.
int main(int argc, char *argv[])
Ostream & endl(Ostream &os)
Add newline and flush stream.
Foam::argList args(argc, argv)