63 Info<<
"Patch " <<
name() <<
" calculated average normal "
82 if (maxDeltaN.
data.first() > small)
86 <<
"Symmetry plane '" <<
name()
87 <<
"' is not planar" <<
endl;
89 fos <<
"At patch face #" << maxDeltaN.
elementi;
93 fos <<
" on processor #" << maxDeltaN.
proci;
96 fos <<
" with centre " << maxDeltaN.
data.second()
97 <<
" the normal " << maxDeltaN.
data.third()
98 <<
" differs from the average normal " << n_
99 <<
" by " << maxDeltaN.
data.first() <<
nl
100 <<
"Either split the patch into planar parts or use the "
101 << symmetryPolyPatch::typeName <<
" patch type"
116 const word& patchType
130 const word& patchType
158 polyPatch(pp, bm, index, newSize, newStart),
Macros for easy insertion into run-time selection tables.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
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).
Struct for keeping processor, element (cell, face, point) and a piece of data. Used for finding minim...
A 3-tuple for storing three objects of different types.
label size() const
Return the number of elements in the UList.
static bool & parRun()
Is this a parallel run?
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
static const Form rootMax
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const word & name() const
Return name.
A patch is a list of labels that address the faces in the global face list.
label elementi
Element index.
label proci
Processor index.
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)
label findMax(const ListType &, const label start=0)
Find index of max element (and larger than given element).
Ostream & endl(Ostream &os)
Add newline and flush stream.
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)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
void magSqr(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
void combineReduce(const List< UPstream::commsStruct > &comms, T &Value, const CombineOp &cop, const int tag, const label comm)