54 Info<<
"Patch " <<
name() <<
" calculated average normal "
62 if (
magSqr(n_ - nf[facei]) > small)
65 <<
"Symmetry plane '" <<
name() <<
"' is not planar."
67 <<
"At local face at "
69 <<
" the normal " << nf[facei]
70 <<
" differs from the average normal " << n_
72 <<
"Either split the patch into planar parts"
73 <<
" or use the " << symmetryPolyPatch::typeName
106 const word& patchType
134 polyPatch(pp, bm, index, newSize, newStart),
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
const Field< PointType > & faceNormals() const
Return face normals for patch.
const Field< PointType > & faceCentres() const
Return face centres for patch.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
label size() const
Return the number of elements in the UList.
static const Form rootMax
A list of keyword definitions, which are a keyword followed by any number of values (e....
const word & name() const
Return name.
A patch is a list of labels that address the faces in the global face list.
virtual void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
symmetryPlanePolyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType)
Construct from components.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
defineTypeNameAndDebug(combustionModel, 0)
Type gAverage(const FieldField< Field, Type > &f)
dimensioned< scalar > magSqr(const dimensioned< Type > &)