Go to the documentation of this file.
42 sphereToCell::typeName,
43 "\n Usage: sphereToCell (centreX centreY centreZ) radius\n\n"
44 " Select all cells with cellCentre within bounding sphere\n\n"
59 if (offset <= radSquared)
102 centre_(checkIs(is)),
123 Info<<
" Adding cells with centre within sphere, with centre = "
124 << centre_ <<
" and radius = " << radius_ <<
endl;
130 Info<<
" Removing cells with centre within sphere, with centre = "
131 << centre_ <<
" and radius = " << radius_ <<
endl;
virtual ~sphereToCell()
Destructor.
#define forAll(list, i)
Loop across all elements in list.
static addToUsageTable usage_
Add usage string.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
AccessType combine(const List< T > &, AccessOp aop=accessOp< T >())
Combines sublists into one big list.
Class with constructor to add usage string to table.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
void combine(topoSet &set, const bool add) const
Mesh consisting of general polyhedral cells.
Pre-declare SubField and related Field type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
General set of labels of mesh quantity (points, cells, faces).
A list of keyword definitions, which are a keyword followed by any number of values (e....
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
Macros for easy insertion into run-time selection tables.
Base class of a source for a topoSet.
sphereToCell(const polyMesh &mesh, const vector ¢re, const scalar radius)
Construct from components.
const vectorField & cellCentres() const
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
defineTypeNameAndDebug(combustionModel, 0)
dimensioned< scalar > magSqr(const dimensioned< Type > &)
void addOrDelete(topoSet &set, const label cellI, const bool) const
Add (if bool) cellI to set or delete cellI from set.