Go to the documentation of this file.
53 int 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;
89 insideCells.insert(celli);
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()
A class for handling file names.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
label nTotalCells() const
Return total number of cells in decomposed mesh.
static void addNote(const string ¬e)
Add extra notes for the usage information.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Helper class to search on triSurface.
#define forAll(list, i)
Loop across all elements in list.
static void addArgument(const string &argName, const string &usage="")
Append a (mandatory) argument to validArgs.
Triangulated surface description with patch information.
messageStream Info
Information stream (uses stdout - output is on the master only)
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
A collection of cell labels.
const vectorField & cellCentres() const
const globalMeshData & globalData() const
Return parallel info.
Foam::argList args(argc, argv)