56 parent_bctype(ptf,
p, iF, mapper)
58 if (!isType<wedgeFvPatch>(this->
patch()))
61 <<
"\n patch type '" << p.type()
62 <<
"' not constraint type '" <<
typeName <<
"'" 63 <<
"\n for patch " <<
p.name()
75 const DimensionedField<Type, volMesh>& iF,
76 const dictionary&
dict 79 parent_bctype(
p, iF,
dict)
81 if (!isType<wedgeFvPatch>(
p))
84 <<
"\n patch type '" <<
p.type()
85 <<
"' not constraint type '" <<
typeName <<
"'" 86 <<
"\n for patch " <<
p.name()
122 if constexpr (!is_rotational_vectorspace_v<Type>)
129 const auto& rot = refCast<const wedgeFvPatch>(this->
patch()).cellT();
131 const Field<Type> pif(this->patchInternalField());
133 const auto& dc = this->
patch().deltaCoeffs();
147 if (!this->updated())
149 this->updateCoeffs();
152 if constexpr (!is_rotational_vectorspace_v<Type>)
155 this->extrapolateInternal();
159 const auto& rot = refCast<const wedgeFvPatch>(this->
patch()).faceT();
163 transform(rot, this->patchInternalField())
173 const auto& rot = refCast<const wedgeFvPatch>(this->
patch()).cellT();
177 return tmp<Field<Type>>
::New
errorManipArg< error, int > exit(error &err, const int errNo=1)
commsTypes
Communications types.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
const fvPatch & patch() const noexcept
Return the patch.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
virtual tmp< Field< Type > > snGradTransformDiag() const
Return face-gradient transform diagonal.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
virtual tmp< Field< Type > > snGrad() const
Return gradient at boundary.
wedgeFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
static const char *const typeName
Typename for Field.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
void diag(pointPatchField< vector > &, const pointPatchField< tensor > &)
static const Identity< scalar > I
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::buffered)
Evaluate the patch field.
A FieldMapper for finite-volume patch fields.
This boundary condition is similar to the cyclic condition, except that it is applied to 2-D geometri...
refinementData transform(const tensor &, const refinementData val)
No-op rotational transform for base types.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const DimensionedField< Type, volMesh > & internalField() const noexcept
Return const-reference to the dimensioned internal field.
const std::string patch
OpenFOAM patch number as a std::string.
::Foam::direction rank(const expressions::valueTypeCode) noexcept
The vector-space rank associated with given valueTypeCode.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
A class for managing temporary objects.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...