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)
79 <<
"Field type does not correspond to patch type for patch "
82 <<
"Patch type: " << this->
patch().type()
91 const wedgePointPatchField<Type>& ptf,
92 const DimensionedField<Type, pointMesh>& iF
113 const symmTensor rot(
I - 2.0*
sqr(this->patch().pointNormals()[0]));
116 tmp<Field<Type>> tvalues
118 transform(rot, this->patchInternalField())
122 auto& iF =
const_cast<Field<Type>&
>(this->primitiveField());
124 this->setInInternalField(iF, tvalues());
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
commsTypes
Communications types.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
label index() const noexcept
The index of this patch in the boundaryMesh.
const pointPatch & patch() const noexcept
Return the patch.
Foam::pointPatchFieldMapper.
Abstract base class for point-mesh patch fields.
void patchInternalField(const UList< Type1 > &internalData, const labelUList &addressing, UList< Type1 > &pfld) const
Extract field using specified addressing.
void setInInternalField(Field< Type1 > &iF, const Field< Type1 > &pF, const labelUList &meshPoints) const
Given the internal field and a patch field, set the patch field in the internal field.
const Field< Type > & primitiveField() const noexcept
Return const-reference to the internal field values.
pointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Construct from patch and internal field.
Basic pointPatch represents a set of points from the mesh.
A class for managing temporary objects.
wedgePointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Construct from patch and internal field.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::buffered)
Update the patch field.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
refinementData transform(const tensor &, const refinementData val)
No-op rotational transform for base types.
static const Identity< scalar > I
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
bool isType(const U &obj)
Check if typeid of the object and Type are identical.
constexpr bool is_rotational_vectorspace_v
The is_rotational_vectorspace value of Type.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
errorManipArg< error, int > exit(error &err, const int errNo=1)
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.