53int main(
int argc,
char *argv[])
57 "Create a cellSet for cells with their centres 'inside' the defined"
59 "Surface must be closed and singly connected."
73 Info<<
"Reading surface from " << surfName <<
endl;
83 boolList inside(querySurf.calcInside(
mesh.cellCentres()));
89 insideCells.insert(celli);
95 <<
" of " <<
mesh.globalData().nTotalCells()
96 <<
" cells" <<
nl <<
nl
97 <<
"Writing selected cells to cellSet " << insideCells.name()
99 <<
"Use this cellSet e.g. with subsetMesh : " <<
nl <<
nl
100 <<
" subsetMesh " << insideCells.name()
@ NO_READ
Nothing to be read.
static void addArgument(const string &argName, const string &usage="")
Append a (mandatory) argument to validArgs.
static void addNote(const string ¬e)
Add extra notes for the usage information.
A collection of cell labels.
A class for handling file names.
Helper class to search on triSurface.
Triangulated surface description with patch information.
return returnReduce(nRefine-oldNRefine, sumOp< label >())
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
List< bool > boolList
A List of bools.
constexpr char nl
The newline '\n' character (0x0a).
Foam::argList args(argc, argv)
#define forAll(list, i)
Loop across all elements in list.