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;
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.
A class for handling file names.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void noParallel()
Remove the parallel options.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
Helper class to search on triSurface.
const vectorField & cellCentres() const
A collection of cell labels.
virtual Ostream & write(const token &)=0
Write next token to stream.
static void addNote(const string &)
Add extra notes for the usage information.
Triangulated surface description with patch information.
Foam::argList args(argc, argv)