Go to the documentation of this file.
65 dict.lookup(
"origin"),
70 points_ = transform_.globalPosition(box_.points());
84 return box_.regions();
90 return transform_.globalPosition(box_.coordinates());
100 box_.boundingSpheres(centres, radiusSqr);
101 centres = transform_.globalPosition(centres);
140 const edge&
e = edges[edgeI];
143 if (treeBb.
intersects(points_[
e[0]], points_[
e[1]], inter))
155 const face&
f = fcs[faceI];
156 point fc =
f.centre(points_);
160 const edge&
e = edges[edgeI];
185 const scalar nearestDistSqr
192 transform_.localPosition(sample),
225 transform_.localPosition(start),
226 transform_.localPosition(end)
242 return findLine(start, end);
257 info[i] = findNearest(
samples[i], nearestDistSqr[i]);
273 info[i] = findLine(start[i], end[i]);
289 info[i] = findLineAny(start[i], end[i]);
317 +
vector(ROOTVSMALL,ROOTVSMALL,ROOTVSMALL)
332 while (((pt-start[pointI])&dirVec[pointI]) <= magSqrDirVec[pointI])
342 || (inter.
index() == hits.last().index())
349 pt = inter.
hitPoint() + smallVec[pointI];
356 info[pointI].
clear();
380 box_.getNormal(info,
normal);
392 box_.getVolumeType(transform_.localPosition(
points), volType);
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
label index() const
Return index.
virtual const wordList & regions() const
Names of regions.
bool hit() const
Is there a hit.
virtual tmp< pointField > points() const
Get the points that define the surface.
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
This class describes the interaction of a face and a point. It carries the info of a successful hit a...
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
pointIndexHit findLineAny(const point &start, const point &end) const
Find any intersection of line between start and end.
Standard boundBox + extra functionality for use in octree.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
bool hit() const
Is there a hit.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
virtual void getRegion(const List< pointIndexHit > &, labelList ®ion) const
From a set of points and indices get the region.
virtual void getNormal(const List< pointIndexHit > &, vectorField &normal) const
From a set of points and indices get the normal.
static const edgeList edges
Edge to point addressing.
const fileName & instance() const
writeOption writeOpt() const
virtual tmp< pointField > coordinates() const
Get representative set of element coordinates.
const objectRegistry & db() const
Return the local objectRegistry.
scalarField samples(nIntervals, 0)
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
This class describes the interaction of (usually) a face and a point. It carries the info of a succes...
const Point & rawPoint() const
Return point with no checking.
scalar distance() const
Return distance to hit.
virtual bool overlaps(const boundBox &bb) const
Does any part of the surface overlap the supplied bound box?
Pre-declare SubField and related Field type.
readOption readOpt() const
bool intersects(const point &overallStart, const vector &overallVec, const point &start, const point &end, point &pt, direction &ptBits) const
Intersects segment; set point to intersection position and face,.
bool overlaps(const boundBox &) const
Overlaps/touches boundingBox?
const Point & hitPoint() const
Return hit point.
static const faceList faces
Face to point addressing.
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
void clear()
Clear the addressed list, i.e. set the size to zero.
pointIndexHit findNearest(const point &sample, const scalar nearestDistSqr) const
Calculate nearest point on surface.
const word & name() const
Return name.
bool containsAny(const UList< point > &) const
Contains any of the points? (inside or on edge)
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
virtual ~searchableRotatedBox()
Destructor.
const double e
Elementary charge.
Vector< scalar > vector
A scalar version of the templated Vector.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
pointIndexHit findLine(const point &start, const point &end) const
Find nearest intersection of line between start and end.
virtual void boundingSpheres(pointField ¢res, scalarField &radiusSqr) const
Get bounding spheres (centre and radius squared), one per element.
void setSize(const label)
Reset size of List.
PointIndexHit< point > pointIndexHit
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
dimensionedScalar sqrt(const dimensionedScalar &ds)
void clear()
Clear the list, i.e. set size to zero.
A bounding box defined in terms of the points at its extremities.
searchableRotatedBox(const searchableRotatedBox &)
Disallow default bitwise copy construct.
bool ln(const fileName &src, const fileName &dst)
Create a softlink. dst should not exist. Returns true if successful.
virtual void getVolumeType(const pointField &, List< volumeType > &) const
Determine type (inside/outside/mixed) for point. unknown if.
A face is a list of labels corresponding to mesh vertices.
void size(const label)
Override size to be inconsistent with allocated storage.
tmp< pointField > points() const
Return corner points in an order corresponding to a 'hex' cell.
defineTypeNameAndDebug(combustionModel, 0)
const fileName & local() const
dimensioned< scalar > magSqr(const dimensioned< Type > &)
virtual void findLineAll(const pointField &start, const pointField &end, List< List< pointIndexHit > > &) const
Get all intersections in order from start to end.
A normal distribution model.