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
104 if constexpr (!is_rotational_vectorspace_v<Type>)
116 tmp<Field<Type>> tvalues
118 transform(rot, this->patchInternalField())
122 auto& iF =
const_cast<Field<Type>&
>(this->primitiveField());
124 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.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Abstract base class for point-mesh patch fields.
static const Identity< scalar > I
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.
refinementData transform(const tensor &, const refinementData val)
No-op rotational transform for base types.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Basic pointPatch represents a set of points from the mesh.
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.
label index() const noexcept
The index of this patch in the boundaryMesh.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...