55 if (!isType<wedgePointPatch>(
p))
58 <<
"patch " << this->
patch().
index() <<
" not wedge type. " 59 <<
"Patch type = " << p.type()
68 const wedgePointPatchField<Type>& ptf,
70 const DimensionedField<Type, pointMesh>& iF,
71 const pointPatchFieldMapper& mapper
74 pointPatchField<Type>(ptf,
p, iF, mapper)
76 if (!isType<wedgePointPatch>(this->
patch()))
79 <<
"Field type does not correspond to patch type for patch " 81 <<
"Field type: " << typeName <<
endl 82 <<
"Patch type: " << this->
patch().type()
91 const wedgePointPatchField<Type>& ptf,
92 const DimensionedField<Type, pointMesh>& iF
106 const vector& nHat = this->
patch().pointNormals()[0];
109 transform(
I - nHat*nHat, this->patchInternalField());
114 this->setInInternalField(iF, tvalues());
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::buffered)
Update the patch field.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const pointPatch & patch() const noexcept
Return the patch.
commsTypes
Communications types.
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Abstract base class for point-mesh patch fields.
static const Identity< scalar > I
Generic templated field type.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Basic pointPatch represents a set of points from the mesh.
virtual label index() const =0
Return the index of this patch in the pointBoundaryMesh.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
wedgePointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Construct from patch and internal field.
A class for managing temporary objects.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...