55 if (!isType<symmetryPlanePointPatch>(
p))
58 <<
"patch " << this->
patch().
index() <<
" not symmetry type. " 59 <<
"Patch type = " << p.type()
68 const symmetryPlanePointPatchField<Type>& ptf,
70 const DimensionedField<Type, pointMesh>& iF,
71 const pointPatchFieldMapper& mapper
74 basicSymmetryPointPatchField<Type>(ptf,
p, iF, mapper),
75 symmetryPlanePatch_(
refCast<const symmetryPlanePointPatch>(
p))
77 if (!isType<symmetryPlanePointPatch>(this->
patch()))
80 <<
"Field type does not correspond to patch type for patch " 82 <<
"Field type: " << typeName <<
endl 83 <<
"Patch type: " << this->
patch().type()
92 const symmetryPlanePointPatchField<Type>& ptf,
93 const DimensionedField<Type, pointMesh>& iF
96 basicSymmetryPointPatchField<Type>(ptf, iF),
97 symmetryPlanePatch_(ptf.symmetryPlanePatch_)
109 if constexpr (!is_rotational_vectorspace_v<Type>)
117 const Field<Type> pif(this->patchInternalField());
120 tmp<Field<Type>> tvalues
126 auto& iF =
const_cast<Field<Type>&
>(this->primitiveField());
128 this->setInInternalField(iF, tvalues());
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.
A Symmetry boundary condition for pointField.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
Ostream & endl(Ostream &os)
Add newline and flush stream.
symmetryPlanePointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Construct from patch and internal field.
static const Identity< scalar > I
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::buffered)
Update the patch field.
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...
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 ...