33 namespace zoneGenerators
43 inline bool Foam::zoneGenerators::hemisphere::contains(
const point&
p)
const
46 return magSqr(r) <= radiusSqr_ && (r & (axis_ - centre_)) >= 0;
63 radiusSqr_(
sqr(radius_))
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.
A class for handling words, derived from string.
Abstract base class for all zoneGenerators, providing runtime selection.
A zoneGenerator which selects points, cells or faces with centres either inside or outside a hemisphe...
virtual zoneSet generate() const
Generate and return the zoneSet.
virtual ~hemisphere()
Destructor.
hemisphere(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
A zoneGenerator which looks-up and returns a zoneSet containing point, and/or cell and/or faces zones...
A zoneGenerator which converts the point, cell and face zones from a list of zoneGenerators into a po...
Abstract zoneGenerator which selects points, cells or faces with centres either inside a volume.
virtual zoneSet generate() const =0
Generate and return the zoneSet.
Zone container returned by zoneGenerator::generate.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
defineTypeNameAndDebug(cylinderHeadPoints, 0)
addToRunTimeSelectionTable(zoneGenerator, cylinderHeadPoints, dictionary)
const dimensionSet dimLength
vector point
Point is a vector.
Vector< scalar > vector
A scalar version of the templated Vector.
void sqr(LagrangianPatchField< typename outerProduct< Type, Type >::type > &f, const LagrangianPatchField< Type > &f1)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
void magSqr(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)