41 void Foam::hemisphereToCell::combine(topoSet& set,
const bool add)
const
45 const scalar radSquared = radius_*radius_;
49 const scalar projection =
offset & (axis_ - centre_);
105 Info<<
" Adding cells with centre within sphere, with centre = "
106 << centre_ <<
" and radius = " << radius_ <<
endl;
112 Info<<
" Removing cells with centre within sphere, with centre = "
113 << centre_ <<
" and radius = " << radius_ <<
endl;
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
A list of keyword definitions, which are a keyword followed by any number of values (e....
A topoSetSource to select cells based on cell centres inside a hemisphere.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
virtual ~hemisphereToCell()
Destructor.
hemisphereToCell(const polyMesh &mesh, const vector ¢re, const scalar radius, const vector &axis)
Construct from components.
Mesh consisting of general polyhedral cells.
const vectorField & cellCentres() const
Base class of a source for a topoSet.
void addOrDelete(topoSet &set, const label celli, const bool) const
Add (if bool) celli to set or delete celli from set.
setAction
Enumeration defining the valid actions.
General set of labels of mesh quantity (points, cells, faces).
A class for handling words, derived from string.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimless
const dimensionSet dimLength
vectorField pointField
pointField is a vectorField.
Vector< scalar > vector
A scalar version of the templated Vector.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
defineTypeNameAndDebug(combustionModel, 0)
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)
void offset(label &lst, const label o)
dimensioned< scalar > magSqr(const dimensioned< Type > &)