48Foam::blockVertices::projectVertex::projectVertex
56 pointVertex(
dict, index, geometry, is),
65 if (surfaces_[i] == -1)
68 <<
"Cannot find surface " <<
names[i] <<
" in geometry"
77Foam::blockVertices::projectVertex::operator
point()
const
82 List<pointConstraint> boundaryConstraint;
89 bb.min() =
max(bb.min(),
point(-GREAT, -GREAT, -GREAT));
90 bb.max() =
min(bb.max(),
point(GREAT, GREAT, GREAT));
102 return boundaryNear[0];
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void setSize(label n)
Alias for resize().
void size(const label n)
Older name for setAddressableSize.
blockVertex() noexcept=default
Default construct.
pointVertex(const dictionary &dict, const label index, const searchableSurfaces &geometry, Istream &is)
Construct from Istream setting pointsList.
Projects the vertex onto the selected surfacees of the geometry provided as a searchableSurfaces obje...
A bounding box defined in terms of min/max extrema points.
const point & max() const noexcept
Maximum describing the bounding box.
const point & min() const noexcept
Minimum describing the bounding box.
scalar magSqr() const
The magnitude/length squared of bounding box diagonal.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
static void findNearest(const PtrList< searchableSurface > &, const labelList &surfacesToTest, const pointField &, const scalarField &nearestDistSqr, labelList &surfaces, List< pointIndexHit > &)
Find nearest. Return -1 (and a miss()) or surface and nearest.
static boundBox bounds(const PtrList< searchableSurface > &allSurfaces, const labelUList &surfacesToTest)
Find the boundBox of the selected surfaces.
Container for searchableSurfaces. The collection is specified as a dictionary. For example,...
label findSurfaceID(const word &name) const
Find index of surface. Return -1 if not found.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
List< word > wordList
List of word.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
vector point
Point is a vector.
vectorField pointField
pointField is a vectorField.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define forAll(list, i)
Loop across all elements in list.
Unit conversion functions.