43 void 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 " 96 const auto* wedgePtr = isA<wedgePolyPatch>
103 wedgePolyPatchPtr_ = wedgePtr;
108 <<
"Neighbour polyPatch is not of type " 109 << wedgePolyPatch::typeName
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const vector & axis() const
Return axis of the wedge.
const labelList & pointLabels() const
Return patch point labels.
virtual label size() const
Patch size is the number of edge labels, but can be overloaded.
const scalarField & magEdgeLengths() const
Return edge length magnitudes, like the faMesh::magLe() method.
List< labelList > labelListList
List of labelList.
static const faMesh & mesh(const polyMesh &pMesh)
The single-region finite-area region on the polyMesh. Uses lookupObject semantics - Fatal if non-exis...
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
static const Identity< scalar > I
A class for handling words, derived from Foam::string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const pointField & points() const
Return local points.
const faMesh & mesh() const noexcept
Return the mesh reference.
const word & name() const noexcept
The patch name.
defineTypeNameAndDebug(combustionModel, 0)
Finite area patch class. Used for 2-D non-Euclidian finite area method.
wedgeFaPatch(const word &name, const dictionary &dict, const label index, const faBoundaryMesh &bm, const word &patchType)
Construct from dictionary.
Finite area boundary mesh.
const labelListList & pointEdges() const
Return patch point-edge addressing.
Field< vector > vectorField
Specialisation of Field<T> for vector.
List< label > labelList
A List of labels.
const faBoundaryMesh & boundaryMesh() const noexcept
Return boundaryMesh reference.
label ngbPolyPatchIndex() const noexcept
The neighbour polyPatch index.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)