33 namespace zoneGenerators
43 inline bool Foam::zoneGenerators::annulus::contains(
const point&
p)
const
46 const scalar magda = d & axis_;
48 if ((magda > 0) && (magda < magAxis2_))
50 const scalar d2 =
magSqr(d) -
sqr(magda)/magAxis2_;
52 if ((d2 < outerRadius2_) && (d2 > innerRadius2_))
76 axis_(point2_ - point1_),
78 outerRadius2_(
sqr(outerRadius_)),
79 innerRadius2_(
sqr(innerRadius_))
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 annulus.
virtual zoneSet generate() const
Generate and return the zoneSet.
annulus(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
virtual ~annulus()
Destructor.
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)