48 if (n_ == vector::rootMax)
57 n_ =
gSum(areas).normalise(ROOTVSMALL);
61 Info<<
"Patch " <<
name() <<
" calculated average normal " 69 const scalar a =
mag(areas[facei]);
74 const vector nf(areas[facei]/a);
76 if (
magSqr(n_ - nf) > SMALL)
79 <<
"Symmetry plane '" <<
name()
80 <<
"' is not planar." <<
endl 81 <<
"At local face at " 83 <<
" the normal " << nf
84 <<
" differs from the average normal " << n_
86 <<
"Either split the patch into planar parts" 87 <<
" or use the " << symmetryPolyPatch::typeName
106 const polyBoundaryMesh& bm,
107 const word& patchType
121 const word& patchType
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.
symmetryPlanePolyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType)
Construct from components.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
Type gSum(const FieldField< Field, Type > &f)
virtual void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
const Field< point_type > & faceCentres() const
Return face centres for patch.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO...
const word & name() const noexcept
The patch name.
const vectorField::subField faceAreas() const
Return face normals.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
int debug
Static debugging option.
defineTypeNameAndDebug(combustionModel, 0)
Buffers for inter-processor communications streams (UOPstream, UIPstream).
messageStream Info
Information stream (stdout output on master, null elsewhere)
A patch is a list of labels that address the faces in the global face list.
bool returnReduceOr(const bool value, const label comm=UPstream::worldComm)
Perform logical (or) MPI Allreduce on a copy. Uses UPstream::reduceOr.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)