41 void Foam::sphereToCell::combine(topoSet& set,
const bool add)
const
45 const scalar radSquared = radius_*radius_;
101 Info<<
" Adding cells with centre within sphere, with centre = "
102 << centre_ <<
" and radius = " << radius_ <<
endl;
108 Info<<
" Removing cells with centre within sphere, with centre = "
109 << 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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Mesh consisting of general polyhedral cells.
const vectorField & cellCentres() const
A topoSetSource to select cells based on cell centres inside sphere.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
sphereToCell(const polyMesh &mesh, const vector ¢re, const scalar radius)
Construct from components.
virtual ~sphereToCell()
Destructor.
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.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimLength
vectorField pointField
pointField is a vectorField.
defineTypeNameAndDebug(combustionModel, 0)
void magSqr(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
void add(LagrangianPatchField< typename typeOfSum< Type1, Type2 >::type > &f, const LagrangianPatchField< Type1 > &f1, const LagrangianPatchField< Type2 > &f2)
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)
void offset(label &lst, const label o)