41 void Foam::hemisphereToCell::combine(topoSet& set,
const bool add)
const
45 const scalar radSquared = radius_*radius_;
49 const scalar projection =
offset & (axis_ - centre_);
79 const dictionary&
dict
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.
hemisphereToCell(const polyMesh &mesh, const vector ¢re, const scalar radius, const vector &axis)
Construct from components.
virtual ~hemisphereToCell()
Destructor.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
const vectorField & cellCentres() const
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.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
const dimensionSet dimless
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
void add(GeometricField< typename typeOfSum< Type1, Type2 >::type, GeoMesh, PrimitiveField1 > &gf, const GeometricField< Type1, GeoMesh, PrimitiveField2 > &gf1, const GeometricField< Type2, GeoMesh, PrimitiveField3 > &gf2)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet & dimLength
vectorField pointField
pointField is a vectorField.
vector point
Point is a vector.
Vector< scalar > vector
A scalar version of the templated Vector.
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)
void offset(label &lst, const label o)
tmp< DimensionedField< scalar, GeoMesh, Field > > magSqr(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)