43void Foam::wedgeFaPatch::findAxisPoint()
const
57 if (ptEdges[pointI].
size() == 1)
61 if (r < magL[ptEdges[pointI][0]])
63 axisPoint_ = ptLabels[pointI];
69 axisPointChecked_ =
true;
85 wedgePolyPatchPtr_(nullptr),
87 axisPointChecked_(false)
92 <<
"Neighbour polyPatch index is not specified for faPatch "
101 if (!wedgePolyPatchPtr_)
104 <<
"Neighbour polyPatch is not of type "
105 << wedgePolyPatch::typeName
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Finite area boundary mesh, which is a faPatch list with registered IO, a reference to the associated ...
const faMesh & mesh() const noexcept
Return the mesh reference.
const pointField & points() const
Return local points.
static const faMesh & mesh(const polyMesh &pMesh)
The single-region finite-area region on the polyMesh. Uses lookupObject semantics - Fatal if non-exis...
Finite area patch class. Used for 2-D non-Euclidian finite area method.
virtual label size() const
Patch size is the number of edge labels, but can be overloaded.
const labelListList & pointEdges() const
Return patch point-edge addressing.
const labelList & pointLabels() const
Return patch point labels.
const scalarField & magEdgeLengths() const
Return edge length magnitudes, like the faMesh::magLe() method.
label ngbPolyPatchIndex() const noexcept
The neighbour polyPatch index.
friend class faBoundaryMesh
The faPatch geometry initialisation is called by faBoundaryMesh.
const faBoundaryMesh & boundaryMesh() const noexcept
Return boundaryMesh reference.
label index() const noexcept
The index of this patch in the boundaryMesh.
const word & name() const noexcept
The patch name.
Wedge front and back plane patch.
wedgeFaPatch(const word &name, const dictionary &dict, const label index, const faBoundaryMesh &bm, const word &patchType)
Construct from dictionary.
const vector & axis() const noexcept
Return axis of the wedge.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
List< labelList > labelListList
List of labelList.
List< label > labelList
A List of labels.
static const Identity< scalar > I
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const Type * isA(const U &obj)
Attempt dynamic_cast to Type.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Field< vector > vectorField
Specialisation of Field<T> for vector.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define forAll(list, i)
Loop across all elements in list.