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()
static void addNote(const string ¬e)
Add extra notes for the usage information.
A class for handling file names.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
T returnReduce(const T &value, const BinaryOp &bop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Perform reduction on a copy, using specified binary operation.
#define forAll(list, i)
Loop across all elements in list.
Helper class to search on triSurface.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
const globalMeshData & globalData() const
Return parallel info (demand-driven)
const vectorField & cellCentres() const
label nTotalCells() const noexcept
Return total number of cells in decomposed mesh.
T get(const label index) const
Get a value from the argument at index.
A collection of cell labels.
static void addArgument(const string &argName, const string &usage="")
Append a (mandatory) argument to validArgs.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Triangulated surface description with patch information.
Foam::argList args(argc, argv)