Go to the documentation of this file.
57 Info<<
"Patch " <<
name() <<
" calculated average normal "
70 <<
"Wedge patch '" <<
name() <<
"' is not planar." <<
nl
71 <<
"At local face at "
73 <<
" the normal " << nf[faceI]
74 <<
" differs from the average normal " <<
n_
76 <<
"Either correct the patch or split it into planar parts"
92 const scalar cnCmptSum =
95 if (
mag(cnCmptSum) < (1 - SMALL))
99 <<
" centre plane does not align with a coordinate plane by "
100 << 1 -
mag(cnCmptSum)
110 <<
"wedge " <<
name()
111 <<
" plane aligns with a coordinate plane." <<
nl
112 <<
" The wedge plane should make a small angle (~2.5deg)"
113 " with the coordinate plane" <<
nl
114 <<
" and the the pair of wedge planes should be symmetric"
115 <<
" about the coordinate plane." <<
nl
116 <<
" Normal of wedge plane is " <<
n_
117 <<
" , implied coordinate plane direction is " <<
centreNormal_
138 const word& patchType
157 const word& patchType
195 polyPatch(pp, bm, index, newSize, newStart),
214 polyPatch(pp, bm, index, mapAddressing, newStart),
virtual void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
vector centreNormal_
Centre normal between the wedge boundaries.
A class for handling words, derived from string.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
Wedge front and back plane patch.
#define forAll(list, i)
Loop across all elements in list.
Type gAverage(const FieldField< Field, Type > &f)
scalar cosAngle_
Cosine of the wedge angle.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
Buffers for inter-processor communications streams (UOPstream, UIPstream).
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< scalar > mag(const dimensioned< Type > &)
dimensionedScalar sign(const dimensionedScalar &ds)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
A patch is a list of labels that address the faces in the global face list.
tensor cellT_
Neighbour-cell transformation tensor.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
Vector< scalar > vector
A scalar version of the templated Vector.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const Field< PointType > & faceNormals() const
Return face normals for patch.
const Field< PointType > & faceCentres() const
Return face centres for patch.
vector n_
Normal to the patch.
static const Vector rootMax
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
tensor faceT_
Face transformation tensor.
wedgePolyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType)
Construct from components.
tensor rotationTensor(const vector &n1, const vector &n2)
vector axis_
Axis of the wedge.
defineTypeNameAndDebug(combustionModel, 0)
const word & name() const
Return name.
#define WarningInFunction
Report a warning using Foam::Warning.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
word name(const complex &)
Return a string representation of a complex.